summary refs log tree commit diff
path: root/posix/regex_internal.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-09-23 05:33:43 +0000
committerUlrich Drepper <drepper@redhat.com>2003-09-23 05:33:43 +0000
commitce85933261d37a0cd5345687acc948fe5bfdabd0 (patch)
tree05c0cc43281b8575000f0e249b88bb944be22af0 /posix/regex_internal.h
parent571f2090f876fee3eb99fd141d6595e6bc45549c (diff)
downloadglibc-ce85933261d37a0cd5345687acc948fe5bfdabd0.tar.gz
glibc-ce85933261d37a0cd5345687acc948fe5bfdabd0.tar.xz
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_internal.h')
-rw-r--r--posix/regex_internal.h6
1 files changed, 6 insertions, 0 deletions
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;