提交 c3626941 编写于 作者: J Jim Meyering

tests: recognize more uses of strcmp.

* Makefile.maint (sc_prohibit_strcmp): Relax regexp.
上级 b1f791ad
......@@ -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.
......
......@@ -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; } || :
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册