diff options
author | Jim Meyering <jim@meyering.net> | 2001-04-02 08:31:28 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2001-04-02 08:31:28 +0000 |
commit | 3c0e576c6d920c2a5e8626bfe3c45b9c14ae0ab7 (patch) | |
tree | c5e63a57de100a49d8dec7522a095beb67698bc8 /lib/regex.h | |
parent | e1aa041f5e6c67ac4ac98f184259cc9f43f3f02b (diff) | |
download | coreutils-3c0e576c6d920c2a5e8626bfe3c45b9c14ae0ab7.tar.xz |
Update from GNU libc.
Diffstat (limited to 'lib/regex.h')
-rw-r--r-- | lib/regex.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/regex.h b/lib/regex.h index 91a356067..63c2fef69 100644 --- a/lib/regex.h +++ b/lib/regex.h @@ -160,6 +160,11 @@ typedef unsigned long int reg_syntax_t; this bit set, and it won't affect anything in the normal case. */ #define RE_DEBUG (RE_NO_GNU_OPS << 1) +/* If this bit is set, a syntactically invalid interval is treated as + a string of ordinary characters. For example, the ERE 'a{1' is + treated as 'a\{1'. */ +#define RE_INVALID_INTERVAL_ORD (RE_DEBUG << 1) + /* This global variable defines the particular regexp syntax to use (for some interfaces). When a regexp is compiled, the syntax used is stored in the pattern buffer, so changing this does not affect @@ -199,7 +204,8 @@ extern reg_syntax_t re_syntax_options; | RE_NO_BK_VBAR) #define RE_SYNTAX_POSIX_EGREP \ - (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES) + (RE_SYNTAX_EGREP | RE_INTERVALS | RE_NO_BK_BRACES \ + | RE_INVALID_INTERVAL_ORD) /* P1003.2/D11.2, section 4.20.7.1, lines 5078ff. */ #define RE_SYNTAX_ED RE_SYNTAX_POSIX_BASIC |