summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-04-28 22:44:56 +0200
committerJim Meyering <meyering@redhat.com>2008-04-28 22:44:56 +0200
commited30cd94e3172e60d76f79a091c19a9ac288a7b5 (patch)
treeaed4ab83fd650cf644509279b2fb2057a22bbaf5
parenteef629eea132fa3619f508102430ac8dd1de5372 (diff)
downloadcoreutils-ed30cd94e3172e60d76f79a091c19a9ac288a7b5.tar.xz
tests: slightly relax sc_cast_of_argument_to_free syntax check
* maint.mk (sc_cast_of_argument_to_free): Relax regexp slightly. (sc_no_have_config_h): Add a comment.
-rw-r--r--maint.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/maint.mk b/maint.mk
index 66f6d5d6f..e8671bd38 100644
--- a/maint.mk
+++ b/maint.mk
@@ -102,7 +102,7 @@ sc_avoid_if_before_free:
exit 1; } || :
sc_cast_of_argument_to_free:
- @grep -nE '\<free \(\(' $$($(VC_LIST_EXCEPT)) && \
+ @grep -nE '\<free *\( *\(' $$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): don'\''t cast free argument' 1>&2; \
exit 1; } || :
@@ -150,6 +150,7 @@ sc_file_system:
'rewrite to use "file system"' 1>&2; \
exit 1; } || :
+# Don't use cpp tests of this symbol. All code assumes config.h is included.
sc_no_have_config_h:
@grep -n '^# *if.*HAVE''_CONFIG_H' $$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): found use of HAVE''_CONFIG_H; remove' \