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().
This commit is contained in:
Jason Molenda
1998-06-11 22:08:46 +00:00
parent 764668738f
commit 46ccc6bfc9
6 changed files with 115 additions and 250 deletions

View File

@ -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;