From 29757e0e9014e2b1ed26fac4228e849c3728bc32 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 5 Jul 2011 10:32:30 +0200 Subject: 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 { ... } --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fcc73f6a38..4722647ec3 100644 --- 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 -- cgit v1.2.1