* config/srclist.txt: Add glibc bug 1240.
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Aug 2005 05:08:59 +0000 (05:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Aug 2005 05:08:59 +0000 (05:08 +0000)
* lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
* lib/regex.h (regerror): Likewise.

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

index 7b99b72..46a59f5 100644 (file)
@@ -1,7 +1,7 @@
 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
 
        * srclist.txt: Remove glibc bug 1233 and add 1236, which supersedes it.
-       Add glibc bugs 1237 and 1238.  Comment out lib/regex.c.
+       Add glibc bugs 1237, 1238, 1240.  Comment out lib/regex.c.
 
 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
 
index 725b3ad..5889f2d 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.84 2005-08-24 23:43:00 eggert Exp $
+# $Id: srclist.txt,v 1.85 2005-08-25 05:09:01 eggert Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -100,6 +100,7 @@ $LIBCSRC/stdlib/getsubopt.c         lib gpl
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1223
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1224
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1237
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1240
 #$LIBCSRC/posix/regcomp.c              lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1238
@@ -110,6 +111,7 @@ $LIBCSRC/stdlib/getsubopt.c         lib gpl
 # 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=1236
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1240
 #$LIBCSRC/posix/regex.h                        lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1215
index 21ed46e..50ec523 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
+       * regex.h (regerror): Likewise.
+
        * regex.c: Do not include <sys/types.h>, as POSIX no longer
        requires this.  (The code never needed it.)
 
index d9c4511..6c8aea4 100644 (file)
@@ -496,7 +496,8 @@ weak_alias (__regcomp, regcomp)
    from either regcomp or regexec.   We don't use PREG here.  */
 
 size_t
-regerror (int errcode, const regex_t *preg, char *errbuf, size_t errbuf_size)
+regerror (int errcode, const regex_t *__restrict preg,
+         char *__restrict errbuf, size_t errbuf_size)
 {
   const char *msg;
   size_t msg_size;
index d1b6897..5c957c0 100644 (file)
@@ -614,8 +614,8 @@ extern int regexec (const regex_t *__restrict __preg,
                    regmatch_t __pmatch[__restrict_arr],
                    int __eflags);
 
-extern size_t regerror (int __errcode, const regex_t *__preg,
-                       char *__errbuf, size_t __errbuf_size);
+extern size_t regerror (int __errcode, const regex_t *__restrict __preg,
+                       char *__restrict __errbuf, size_t __errbuf_size);
 
 extern void regfree (regex_t *__preg);