aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-regex.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-06-11 22:08:46 +0000
committerJason Molenda <jmolenda@apple.com>1998-06-11 22:08:46 +0000
commit46ccc6bfc90d764bbc6f3dda5b588e37887cd918 (patch)
tree0ceab6f6b492527026c218d7db85f6ccd469d0ff /gdb/gnu-regex.c
parent764668738f19680b3b4aed04fd30a13d4368b88a (diff)
downloadgdb-46ccc6bfc90d764bbc6f3dda5b588e37887cd918.zip
gdb-46ccc6bfc90d764bbc6f3dda5b588e37887cd918.tar.gz
gdb-46ccc6bfc90d764bbc6f3dda5b588e37887cd918.tar.bz2
Thu Jun 11 15:05:10 1998 Jason Molenda (crash@bugshack.cygnus.com)
* btowc.c: Removed. * configure.in: Don't see if we need to replace btowc(). * Makefile.in: Don't include LIBOBJS. * configure: Regenerated. * gnu-regex.c (regex_compile): Only support i18n [:foo:] if we have btowc().
Diffstat (limited to 'gdb/gnu-regex.c')
-rw-r--r--gdb/gnu-regex.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gnu-regex.c b/gdb/gnu-regex.c
index 844d71d..1c9b6fb 100644
--- a/gdb/gnu-regex.c
+++ b/gdb/gnu-regex.c
@@ -142,6 +142,9 @@ char *realloc ();
/* How many characters in the character set. */
# define CHAR_SET_SIZE 256
+/* CYGNUS LOCAL: define _REGEX_RE_COMP to get BSD style re_comp and re_exec */
+#define _REGEX_RE_COMP
+
# ifdef SYNTAX_TABLE
extern char *re_syntax_table;
@@ -2198,7 +2201,10 @@ regex_compile (pattern, size, syntax, bufp)
the leading `:' and `[' (but set bits for them). */
if (c == ':' && *p == ']')
{
-#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
+/* CYGNUS LOCAL: Skip this code if we don't have btowc(). btowc() is */
+/* defined in the 1994 Amendment 1 to ISO C and may not be present on */
+/* systems where we have wchar.h and wctype.h. */
+#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H && defined HAVE_BTOWC)
boolean is_lower = STREQ (str, "lower");
boolean is_upper = STREQ (str, "upper");
wctype_t wt;