Permalink
Browse files

build: don't reject definition of STREQ

* 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...
1 parent 847ab6a commit d6a62182f07766296244ccc4f8c2d1a800e987bd Jim Meyering committed Nov 28, 2008
Showing with 2 additions and 2 deletions.
  1. +0 −1 .x-sc_prohibit_strcmp
  2. +2 −1 maint.mk
View
@@ -1,2 +1 @@
-^src/system\.h
ChangeLog
View
@@ -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; } || :

0 comments on commit d6a6218

Please sign in to comment.