Skip to content
  • Jonathan Nieder's avatar
    standardize brace placement in struct definitions · 9cba13ca
    Jonathan Nieder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    In a struct definitions, unlike functions, the prevailing style is for
    the opening brace to go on the same line as the struct name, like so:
    
     struct foo {
    	int bar;
    	char *baz;
     };
    
    Indeed, grepping for 'struct [a-z_]* {$' yields about 5 times as many
    matches as 'struct [a-z_]*$'.
    
    Linus sayeth:
    
     Heretic people all over the world have claimed that this inconsistency
     is ...  well ...  inconsistent, but all right-thinking people know that
     (a) K&R are _right_ and (b) K&R are right.
    
    Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    9cba13ca