]> Savannah Git Hosting - gnulib.git/commitdiff
memcoll: Use 'restrict'.
authorBruno Haible <bruno@clisp.org>
Sun, 23 Feb 2020 11:19:28 +0000 (12:19 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 23 Feb 2020 11:19:28 +0000 (12:19 +0100)
* lib/memcoll.h (memcoll): Use 'restrict'.
* m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.

ChangeLog
lib/memcoll.h
m4/memcoll.m4

index 5154229df2879de70131ef65b2b0611fbe30d51c..b1ffa89ddad1ba7a50f9625cefe80aa6e878a79e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2020-02-23  Bruno Haible  <bruno@clisp.org>
 
+       memcoll: Use 'restrict'.
+       * lib/memcoll.h (memcoll): Use 'restrict'.
+       * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
+
        vasnprintf: Use 'restrict'.
        * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
        * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
index add096851b9a4b3641f0cd789b2a6c23ff06f9da..907ca1fb8d36e6217d7cae5703aac3d41758f201 100644 (file)
@@ -22,7 +22,7 @@
 
 # include <stddef.h>
 
-int memcoll (char *, size_t, char *, size_t);
+int memcoll (char *restrict, size_t, char *restrict, size_t);
 int memcoll0 (char const *, size_t, char const *, size_t);
 
 #endif /* MEMCOLL_H_ */
index d3d1132d3ce0989cd986e8f6ec0ce758c79d80e0..e6eb77eb1eaab8fe273f0bbe4da8cde8ddfd93d4 100644 (file)
@@ -1,8 +1,12 @@
-# memcoll.m4 serial 10
+# memcoll.m4 serial 11
 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2020 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
-AC_DEFUN([gl_MEMCOLL], [:])
+AC_DEFUN([gl_MEMCOLL],
+[
+  AC_REQUIRE([AC_C_RESTRICT])
+  :
+])