• marko's avatar
    Reindent the code base (except for ha_innodb.{cc,h} and generated parser · e8435b3e
    marko authored
    and lexer files).  From now on, the following Emacs cc-mode settings apply
    when indenting C function bodies in InnoDB:
    
    (setq c-basic-offset 8)
    (setq c-label-minimum-indentation 0)
    (add-to-list 'c-offsets-alist '(c . 0))
    (add-to-list 'c-offsets-alist '(label . [0]))
    
    The indentation rules for function declarations still have not been
    formalized, and they must be formatted manually.
    
    Try to limit all lines to at most 79 characters (assuming TAB stops every
    8 characters) by splitting lines before opening parenthesis, or at
    string constants.
    
    Fix some grammar mistakes in diagnostic output:
     match to, match with -> match
     found from -> found in
     trying rename -> trying to rename
    
    Fix an error in page_check_dir(): it said "supremum not pointed to"
    when the infimum was not pointed to.
    
    Enclose commented-out code snippets in #if 0 ... #endif instead of /* ... */.
    Add (void*) casts to some %p parameters in fprintf() calls.  Try to
    split lines before a binary operator, not after one.  (These three fixes
    were not made everywhere.)
    e8435b3e
trx0rec.c 36.5 KB