diff options
author | Jim Meyering <meyering@redhat.com> | 2008-04-30 11:57:06 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-05-06 08:21:28 +0200 |
commit | f02102211e3ead3e4318e88eb0f0bedd702bf0a2 (patch) | |
tree | 8cd266d0aed965bf798a41c8166da0ae84db2c97 | |
parent | 209850fd7e1e89cf8937310878bd22d70e3588a5 (diff) | |
download | coreutils-f02102211e3ead3e4318e88eb0f0bedd702bf0a2.tar.xz |
tests: detect and check more uses of strcmp
* maint.mk (sc_prohibit_strcmp): Relax regexp to recognize other
formatting styles.
-rw-r--r-- | maint.mk | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -131,7 +131,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; } || : |