3 ms·
Purely out of curiosity — the indentation style is very unusual. Where did you pick it up?
by eqvinox 3y ago
Purely out of curiosity — the indentation style is very unusual. Where did you pick it up?
- colejohnson66 3y agoIt looks like nothing more than 1TBS[0] plus no line breaks inside functions. [0]: https://softwareengineering.stackexchange.com/a/99546/54480 https://softwareengineering.stackexchange.com/a/99546/54480
- thenewwazoo 3y agoIt looks like bog-standard K&R style[0] to me. Exceedingly common, in my experience. What about it strikes you as odd? [0] https://en.wikipedia.org/wiki/Indentation_style#K&R_style https://en.wikipedia.org/wiki/Indentation_style#K&R_style
- eqvinox 3y agoIt's not K&R; the function opening brace is off, there's no empty lines inside functions, and goto labels are indented. (And indent is 4 spaces, most K&R is Tabs.) Combined with the absence of any comments, the source looks very "optically dense" in this style.
- antirez 3y agoThat's effectively the most obvious indentation style used for C.