diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-09-23 05:33:43 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-09-23 05:33:43 +0000 |
commit | ce85933261d37a0cd5345687acc948fe5bfdabd0 (patch) | |
tree | 05c0cc43281b8575000f0e249b88bb944be22af0 /posix/regex.h | |
parent | 571f2090f876fee3eb99fd141d6595e6bc45549c (diff) | |
download | glibc-ce85933261d37a0cd5345687acc948fe5bfdabd0.tar glibc-ce85933261d37a0cd5345687acc948fe5bfdabd0.tar.gz glibc-ce85933261d37a0cd5345687acc948fe5bfdabd0.tar.bz2 glibc-ce85933261d37a0cd5345687acc948fe5bfdabd0.zip |
Upate.
2003-09-20 Paolo Bonzini <bonzini@gnu.org>
* posix/regcomp.c (peek_token): Don't look back for ( or |
to check whether to treat a caret as special. It fails
for the (extended) regex \(^.
(parse, parse_reg_exp): Pass RE_CARET_ANCHORS_HERE to fetch_token.
* posix/regex.h: Define RE_CARET_ANCHORS_HERE.
* posix/regexec.c: Check out of bounds value before shifting.
* posix/regex_internal.h: Define __attribute for non-gcc.
Diffstat (limited to 'posix/regex.h')
-rw-r--r-- | posix/regex.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/posix/regex.h b/posix/regex.h index e251962cef..1ab3e243a7 100644 --- a/posix/regex.h +++ b/posix/regex.h @@ -170,6 +170,11 @@ typedef unsigned long int reg_syntax_t; If not set, then case is significant. */ #define RE_ICASE (RE_INVALID_INTERVAL_ORD << 1) +/* This bit is used internally like RE_CONTEXT_INDEP_ANCHORS but only + for ^, because it is difficult to scan the regex backwards to find + whether ^ should be special. */ +#define RE_CARET_ANCHORS_HERE (RE_ICASE << 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 |