* lib/system-quote.h (system_quote_copy): Use 'restrict'.
* modules/system-quote (configure.ac): Require AC_C_RESTRICT.
2020-02-23 Bruno Haible <bruno@clisp.org>
+ system-quote: Use 'restrict'.
+ * lib/system-quote.h (system_quote_copy): Use 'restrict'.
+ * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
+
sh-quote: Use 'restrict'.
* lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
* modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
/* Copies the quoted string to p and returns the incremented p.
There must be room for system_quote_length (string) + 1 bytes at p. */
extern char *
- system_quote_copy (char *p,
+ system_quote_copy (char *restrict p,
enum system_command_interpreter interpreter,
const char *string);
xalloc
configure.ac:
+AC_REQUIRE([AC_C_RESTRICT])
Makefile.am:
lib_SOURCES += system-quote.h system-quote.c