From 3697ec5ca140f686643d204a54181a5ddbf9a799 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 15 Jul 2010 23:12:49 +0300 Subject: Moved to gawk 2.11. --- regex.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'regex.h') diff --git a/regex.h b/regex.h index 27f963f9..7ad5da24 100644 --- a/regex.h +++ b/regex.h @@ -143,15 +143,16 @@ what you give them. Help stamp out software-hoarding! */ *, +, ? - only special when not after the beginning, (, or | */ #define RE_CONTEXT_INDEP_OPS 32 -/* 0 means that \ before a ] inside [ and ] is taken as a real \. - 1 means that such a \ escapes the following ]. This is a - special case for AWK. Other \ inside [ ] seem to work ok. */ +/* 0 means that \ before anything inside [ and ] is taken as a real \. + 1 means that such a \ escapes the following character This is a + special case for AWK. */ #define RE_AWK_CLASS_HACK 64 /* Now define combinations of bits for the standard possibilities. */ -#define RE_SYNTAX_AWK (RE_NO_BK_PARENS | RE_NO_BK_VBAR \ - | RE_CONTEXT_INDEP_OPS | RE_AWK_CLASS_HACK) -#define RE_SYNTAX_EGREP (RE_SYNTAX_AWK | RE_NEWLINE_OR) +#define RE_SYNTAX_POSIX_EGREP (RE_NO_BK_PARENS | RE_NO_BK_VBAR \ + | RE_CONTEXT_INDEP_OPS) +#define RE_SYNTAX_AWK (RE_SYNTAX_POSIX_EGREP | RE_AWK_CLASS_HACK) +#define RE_SYNTAX_EGREP (RE_SYNTAX_POSIX_EGREP | RE_NEWLINE_OR) #define RE_SYNTAX_GREP (RE_BK_PLUS_QM | RE_NEWLINE_OR) #define RE_SYNTAX_EMACS 0 -- cgit v1.2.3