# HG changeset patch # User Jim Meyering # Date 1309854750 -7200 # Node ID 7c4560676bcd0c9809eedce2ac77ec47fe7b1cfa # Parent 03e2cd1cbbe82e5a9ff7b101b3315a785716d1e5 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 { ... } diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2011-07-05 Jim Meyering + + 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 maint: indent with spaces, not TABs, and add a rule to check this diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -105,7 +105,7 @@ $$(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