>From 11ff607ecad1b1f06b6f6966ee989db9d079cc9d Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 23 Feb 2020 12:20:35 +0100 Subject: [PATCH 08/29] xmemcoll: Use 'restrict'. * lib/xmemcoll.h (xmemcoll): Use 'restrict'. * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT. --- ChangeLog | 4 ++++ lib/xmemcoll.h | 2 +- modules/xmemcoll | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b1ffa89..161c3d6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2020-02-23 Bruno Haible + xmemcoll: Use 'restrict'. + * lib/xmemcoll.h (xmemcoll): Use 'restrict'. + * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT. + memcoll: Use 'restrict'. * lib/memcoll.h (memcoll): Use 'restrict'. * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT. diff --git a/lib/xmemcoll.h b/lib/xmemcoll.h index 4170b9b..1ac2325 100644 --- a/lib/xmemcoll.h +++ b/lib/xmemcoll.h @@ -1,3 +1,3 @@ #include -int xmemcoll (char *, size_t, char *, size_t); +int xmemcoll (char *restrict, size_t, char *restrict, size_t); int xmemcoll0 (char const *, size_t, char const *, size_t); diff --git a/modules/xmemcoll b/modules/xmemcoll index 9724945..3ef5491 100644 --- a/modules/xmemcoll +++ b/modules/xmemcoll @@ -13,6 +13,7 @@ quotearg exitfail configure.ac: +AC_REQUIRE([AC_C_RESTRICT]) Makefile.am: lib_SOURCES += xmemcoll.h xmemcoll.c -- 2.7.4