diff options
author | Jim Meyering <meyering@redhat.com> | 2011-07-05 10:32:30 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2011-07-05 10:32:30 +0200 |
commit | 29757e0e9014e2b1ed26fac4228e849c3728bc32 (patch) | |
tree | 50c6eef83c9cfd8bd137dcfb899d9d1e95afbdbf | |
parent | 00a195984d09dcd5ac84866740d35ad322f2578b (diff) | |
download | gnulib-29757e0e9014e2b1ed26fac4228e849c3728bc32.tar.gz |
maint: exempt stdio-read.c and stdio-write.c from the cppi check
* Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
per Bruno's request, to accommodate this idiom (no space after "#")
even when the function is inside an #if block:
char *
gets (char *s)
#undef gets
{
...
}
-rw-r--r-- | ChangeLog | 13 | ||||
-rw-r--r-- | Makefile | 2 |
2 files changed, 14 insertions, 1 deletions
@@ -1,3 +1,16 @@ +2011-07-05 Jim Meyering <meyering@redhat.com> + + maint: exempt stdio-read.c and stdio-write.c from the cppi check + * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c + per Bruno's request, to accommodate this idiom (no space after "#") + even when the function is inside an #if block: + char * + gets (char *s) + #undef gets + { + ... + } + 2011-07-04 Jim Meyering <meyering@redhat.com> maint: indent with spaces, not TABs, and add a rule to check this @@ -105,7 +105,7 @@ sc_cpp_indent_check: $$(cd ./modules; grep -ilrE '(meyering|blake)' .) \ | sort -u \ | grep '\.c$$' \ - | grep -v '/getloadavg\.c$$' \ + | grep -vE '/(stdio-(read|write)|getloadavg)\.c$$' \ | xargs cppi -c # Ensure that the list of symbols checked for by the |