Skip to content

Re-indent C code #187

Closed
Closed
@JanWielemaker

Description

@JanWielemaker

Current style is from Anjo Anjewierden, the guru who teached me to program in C. I don't think it is a bad style, but it is not supported by modern tools. Considering that quite some attention has been paid to have a consistent layout where values are often nicely displayed as tables, a general reformat is (I think) undesirable.

What about this?

  • Keep indentiation increment of 2 (otherwise all will break)
  • Re-format to
     if ( .... ) {
       body
     } else {
      ...
     }
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions