maint: exempt stdio-read.c and stdio-write.c from the cppi check
authorJim Meyering <meyering@redhat.com>
Tue, 5 Jul 2011 08:32:30 +0000 (10:32 +0200)
committerJim Meyering <meyering@redhat.com>
Tue, 5 Jul 2011 08:32:30 +0000 (10:32 +0200)
* 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
{
  ...
}

ChangeLog
Makefile

index 88eca79..e56cd80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index fcc73f6..4722647 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -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