From ce85933261d37a0cd5345687acc948fe5bfdabd0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 23 Sep 2003 05:33:43 +0000 Subject: Upate. 2003-09-20 Paolo Bonzini * 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. --- posix/regex_internal.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'posix/regex_internal.h') diff --git a/posix/regex_internal.h b/posix/regex_internal.h index bf84ad6270..9dd3fe55b3 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -106,6 +106,12 @@ # define attribute_hidden #endif /* not _LIBC */ +#ifdef __GNUC__ +# define __attribute __attribute__ +#else +# define __attribute +#endif + extern const char __re_error_msgid[] attribute_hidden; extern const size_t __re_error_msgid_idx[] attribute_hidden; -- cgit v1.2.3