Skip to content

Commit

Permalink
build: don't reject definition of STREQ
Browse files Browse the repository at this point in the history
* maint.mk (sc_prohibit_strcmp): Tighten rule: exclude
macro definitions like the one in system.h.
* .x-sc_prohibit_strcmp: Don't exempt src/system.h.
  • Loading branch information
Jim Meyering committed Nov 30, 2008
1 parent 847ab6a commit d6a6218
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .x-sc_prohibit_strcmp
@@ -1,2 +1 @@
^src/system\.h
ChangeLog
3 changes: 2 additions & 1 deletion maint.mk
Expand Up @@ -132,7 +132,8 @@ sc_prohibit_atoi_atof:
# Use STREQ rather than comparing strcmp == 0, or != 0.
sc_prohibit_strcmp:
@grep -nE '! *str''cmp *\(|\<str''cmp *\([^)]+\) *==' \
$$($(VC_LIST_EXCEPT)) && \
$$($(VC_LIST_EXCEPT)) \
| grep -vE ':# *define STREQ\(' && \
{ echo '$(ME): use STREQ in place of the above uses of str''cmp' \
1>&2; exit 1; } || :

Expand Down

0 comments on commit d6a6218

Please sign in to comment.