]> Savannah Git Hosting - gnulib.git/commitdiff
regex: port to Sun C
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Jun 2016 08:46:35 +0000 (01:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Jun 2016 08:47:04 +0000 (01:47 -0700)
Reported by Daiki Ueno.
* lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
__restrict, in prototype.  This fixes a problem I introduced in
the 2016-02-19 merge from glibc.

ChangeLog
lib/regcomp.c

index a6df98ad48d20945a31d5b3d899ded7e39c260a0..4e935dad0a03a058153e0e0f33a381ae9cbb6caf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
+
+       regex: port to Sun C
+       Reported by Daiki Ueno.
+       * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
+       __restrict, in prototype.  This fixes a problem I introduced in
+       the 2016-02-19 merge from glibc.
+
 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
 
        stdbool: Restore __bool_true_false_are_defined check
index 74267292d67a4a1ab4f1ce70c82a8f3c4d5c2f89..6c4db27cf8af3b09348614121b4ae5e5bf02fb06 100644 (file)
@@ -464,7 +464,7 @@ re_compile_fastmap_iter (regex_t *bufp, const re_dfastate_t *init_state,
    the return codes and their meanings.)  */
 
 int
-regcomp (regex_t *__restrict preg, const char *__restrict pattern, int cflags)
+regcomp (regex_t *_Restrict_ preg, const char *_Restrict_ pattern, int cflags)
 {
   reg_errcode_t ret;
   reg_syntax_t syntax = ((cflags & REG_EXTENDED) ? RE_SYNTAX_POSIX_EXTENDED
@@ -523,7 +523,7 @@ weak_alias (__regcomp, regcomp)
    from either regcomp or regexec.   We don't use PREG here.  */
 
 size_t
-regerror (int errcode, const regex_t *__restrict preg, char *__restrict errbuf,
+regerror (int errcode, const regex_t *_Restrict_ preg, char *_Restrict_ errbuf,
          size_t errbuf_size)
 {
   const char *msg;