Mercurial > gnulib
changeset 15339:7c4560676bcd
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
{
...
}
author | Jim Meyering <meyering@redhat.com> |
---|---|
date | Tue, 05 Jul 2011 10:32:30 +0200 |
parents | 03e2cd1cbbe8 |
children | 03a50862ef09 |
files | ChangeLog Makefile |
diffstat | 2 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Mon Jul 04 12:31:05 2011 +0200 +++ b/ChangeLog Tue Jul 05 10:32:30 2011 +0200 @@ -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
--- a/Makefile Mon Jul 04 12:31:05 2011 +0200 +++ b/Makefile Tue Jul 05 10:32:30 2011 +0200 @@ -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