author | Jonathan Nieder <jrnieder@gmail.com> | |
Wed, 16 Mar 2011 07:08:34 +0000 (02:08 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 16 Mar 2011 19:49:02 +0000 (12:49 -0700) | ||
commit | 9cba13ca5d233a4e1a7068f3f5ed5836a081dcc0 | |
tree | 434a9b6b6df083e8c340541def4c29c4896b0721 | tree | snapshot |
parent | c6c8d0b797e33ce1f22d50b46d9c6eba91ed2cbc | commit | diff |
standardize brace placement in struct definitions
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: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
17 files changed:
builtin/add.c | diff | blob | history | |
builtin/blame.c | diff | blob | history | |
builtin/grep.c | diff | blob | history | |
builtin/index-pack.c | diff | blob | history | |
commit.h | diff | blob | history | |
config.c | diff | blob | history | |
diff.c | diff | blob | history | |
fast-import.c | diff | blob | history | |
fetch-pack.h | diff | blob | history | |
generate-cmdlist.sh | diff | blob | history | |
http-push.c | diff | blob | history | |
http-walker.c | diff | blob | history | |
http.h | diff | blob | history | |
merge-recursive.c | diff | blob | history | |
pack-check.c | diff | blob | history | |
string-list.h | diff | blob | history | |
transport-helper.c | diff | blob | history |