summaryrefslogtreecommitdiff
path: root/lib/regex-quote.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2020-02-23 12:33:37 +0100
committerBruno Haible <bruno@clisp.org>2020-02-23 12:33:37 +0100
commit0423ac9fe82acd56e3b4108738cb3426c6216d6e (patch)
tree92fb24f1b2dee280be3fee08eb99cd6d5ae8aec8 /lib/regex-quote.h
parent4c37dd4ab504ba644fbcfdb47375398bf0d97b4f (diff)
downloadgnulib-0423ac9fe82acd56e3b4108738cb3426c6216d6e.tar.gz
regex-quote: Use 'restrict'.
* lib/regex-quote.h (regex_quote_copy): Use 'restrict'. * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
Diffstat (limited to 'lib/regex-quote.h')
-rw-r--r--lib/regex-quote.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/regex-quote.h b/lib/regex-quote.h
index 185f9fea25..b6b299f52f 100644
--- a/lib/regex-quote.h
+++ b/lib/regex-quote.h
@@ -77,7 +77,7 @@ extern size_t
/* Copies the quoted string to p and returns the incremented p.
There must be room for regex_quote_length (string, spec) + 1 bytes at p. */
extern char *
- regex_quote_copy (char *p,
+ regex_quote_copy (char *restrict p,
const char *string, const struct regex_quote_spec *spec);
/* Returns the freshly allocated quoted string. */