tests: recognize more uses of strcmp.

* Makefile.maint (sc_prohibit_strcmp): Relax regexp.
This commit is contained in:
Jim Meyering 2008-04-29 14:25:19 +00:00
parent b1f791adb0
commit c3626941c7
2 changed files with 4 additions and 1 deletions

View File

@ -15,6 +15,9 @@ Tue Apr 29 09:46:00 EST 2008 Daniel P. Berrange <berrange@redhat.com>
Tue Apr 29 15:20:12 CEST 2008 Jim Meyering <meyering@redhat.com>
Recognize more uses of strcmp.
* Makefile.maint (sc_prohibit_strcmp): Relax regexp.
Avoid "make syntax-check" failures.
* src/memory.c: Include "config.h".
Remove trailing blanks.

View File

@ -91,7 +91,7 @@ sc_prohibit_atoi_atof:
# Use STREQ rather than comparing strcmp == 0, or != 0.
sc_prohibit_strcmp:
@grep -nE '! *str''cmp \(|\<str''cmp \([^)]+\) *==' \
@grep -nE '! *str''cmp *\(|\<str''cmp *\([^)]+\) *==' \
$$($(VC_LIST_EXCEPT)) && \
{ echo '$(ME): use STREQ in place of the above uses of str''cmp' \
1>&2; exit 1; } || :