* config/srclist.txt: Add glibc bug 1233.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Aug 2005 20:37:24 +0000 (20:37 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 23 Aug 2005 20:37:24 +0000 (20:37 +0000)
* lib/regex.h (REG_NOSYS)
[!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
Define, since POSIX requires it as of 2001.
(_REG_ENOSYS) [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
New private symbol, used to keep the enum signed in all cases.

config/ChangeLog
config/srclist.txt
lib/ChangeLog
lib/regex.h

index 3ffe3ca..fe364d5 100644 (file)
@@ -1,6 +1,6 @@
 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
-       * srclist.txt: Add glibc bugs 1231, 1232.
+       * srclist.txt: Add glibc bugs 1231-1233.
 
 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
 
index 76007a6..5d64ea8 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.80 2005-08-23 19:11:46 eggert Exp $
+# $Id: srclist.txt,v 1.81 2005-08-23 20:37:24 eggert Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -107,6 +107,7 @@ $LIBCSRC/posix/regex.c                      lib gpl
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1207
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1222
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1232
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1233
 #$LIBCSRC/posix/regex.h                        lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1215
index 336b1f5..b1c6ea8 100644 (file)
@@ -1,5 +1,10 @@
 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * regex.h (REG_NOSYS)
+       [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
+       Define, since POSIX requires it as of 2001.
+       (_REG_ENOSYS) [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
+       New private symbol, used to keep the enum signed in all cases.
        * regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James Youngman
        in <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
 
index c31095a..1885779 100644 (file)
@@ -309,8 +309,10 @@ extern reg_syntax_t re_syntax_options;
    `re_error_msg' table in regex.c.  */
 typedef enum
 {
-#ifdef _XOPEN_SOURCE
+#if defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE
   REG_ENOSYS = -1,     /* This will never happen for this implementation.  */
+#else
+  _REG_ENOSYS = -1,    /* This is so that reg_errcode_t is always signed.  */
 #endif
 
   REG_NOERROR = 0,     /* Success.  */