diff options
author | Jim Meyering <meyering@redhat.com> | 2012-10-03 12:24:16 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2012-10-03 12:24:16 +0200 |
commit | f97be96b2dcea51605b143fa1695b4ea5c75bddc (patch) | |
tree | 4b1f4f29fe8012f5541eef64d49600982d6ef6f9 /src | |
parent | 3b14aaa4ddefb86e1bff782fc4575eec6186ca49 (diff) | |
download | grep-f97be96b2dcea51605b143fa1695b4ea5c75bddc.tar.gz |
maint: factor out STREQ definition
* src/main.c (STREQ): Remove definition.
* src/pcresearch.c: (STREQ): Likewise.
* src/system.h (STREQ): Define it here instead.
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 | ||||
-rw-r--r-- | src/pcresearch.c | 2 | ||||
-rw-r--r-- | src/system.h | 3 |
3 files changed, 3 insertions, 4 deletions
@@ -52,8 +52,6 @@ #define SEP_CHAR_REJECTED '-' #define SEP_STR_GROUP "--" -#define STREQ(a, b) (strcmp (a, b) == 0) - #define AUTHORS \ proper_name ("Mike Haertel"), \ _("others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>") diff --git a/src/pcresearch.c b/src/pcresearch.c index a15f598d..2e95f2df 100644 --- a/src/pcresearch.c +++ b/src/pcresearch.c @@ -29,8 +29,6 @@ # include <langinfo.h> #endif -#define STREQ(a, b) (strcmp (a, b) == 0) - #if HAVE_LIBPCRE /* Compiled internal form of a Perl regular expression. */ static pcre *cre; diff --git a/src/system.h b/src/system.h index 426d8937..95208dff 100644 --- a/src/system.h +++ b/src/system.h @@ -52,4 +52,7 @@ enum { EXIT_TROUBLE = 2 }; #endif #include "unlocked-io.h" + +#define STREQ(a, b) (strcmp (a, b) == 0) + #endif |