>From c279a25680129b5525a6ee0f7112f5fb0061ce96 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 4 Jul 2015 08:35:58 -0700 Subject: [PATCH 6/6] grep: use recent gnulib syntax bits * src/grep.c (Gcompile, Ecompile): Use plain RE_SYNTAX_GREP and RE_SYNTAX_EGREP, now that we assume a recent-enough gnulib. --- src/grep.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/grep.c b/src/grep.c index 9b38cf5..a735ea5 100644 --- a/src/grep.c +++ b/src/grep.c @@ -1861,18 +1861,13 @@ if any error occurs and -q is not given, the exit status is 2.\n")); static void Gcompile (char const *pattern, size_t size) { - GEAcompile (pattern, size, - ((RE_SYNTAX_GREP | RE_DOT_NEWLINE | RE_NO_EMPTY_RANGES) - & ~RE_HAT_LISTS_NOT_NEWLINE)); + GEAcompile (pattern, size, RE_SYNTAX_GREP); } static void Ecompile (char const *pattern, size_t size) { - GEAcompile (pattern, size, - ((RE_SYNTAX_POSIX_EGREP | RE_DOT_NEWLINE - | RE_NO_EMPTY_RANGES | RE_UNMATCHED_RIGHT_PAREN_ORD) - & ~RE_HAT_LISTS_NOT_NEWLINE)); + GEAcompile (pattern, size, RE_SYNTAX_EGREP); } static void -- 2.1.0