* lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
* lib/regex.h (regerror): Likewise.
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>
-# $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.
# 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
# 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
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.)
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;
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);