diff options
author | Bruno Haible <bruno@clisp.org> | 2011-03-08 10:09:47 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-03-08 10:09:47 +0100 |
commit | fbfced515f325dd000c80fa35ade86e567d0ea3c (patch) | |
tree | 15edd13725f7da5660cd80cd1d968df9a7d24569 /NEWS | |
parent | 6ff7b70e24f0e84e9f65ef6d021ff239cad0b2b4 (diff) | |
download | gnulib-fbfced515f325dd000c80fa35ade86e567d0ea3c.tar.gz |
regex-quote: New API.
* lib/regex-quote.h: Include <stdbool.h>.
(struct regex_quote_spec): New type.
(regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
New declarations.
(regex_quote_length, regex_quote_copy, regex_quote): Take a
'const struct regex_quote_spec *' argument.
* lib/regex-quote.c (RE_*, PCRE_*): New macros.
(pcre_special): New constant.
(regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
New functions.
(regex_quote_length, regex_quote_copy, regex_quote): Take a
'const struct regex_quote_spec *' argument.
* modules/regex-quote (Depends-on): Add stdbool.
* tests/test-regex-quote.c (check): Update for new API. Add test for
anchored results.
* NEWS: Mention the API change.
Reported by Reuben Thomas and Eric Blake.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -12,6 +12,10 @@ User visible incompatible changes Date Modules Changes +2011-03-08 regex-quote The last argument is no longer an 'int cflags' + but instead a pointer to a previously constructed + 'struct regex_quote_spec'. + 2011-02-25 dirname These modules no longer put #defines for the dirname-lgpl following symbols into <config.h>: ISSLASH, backupfile FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX, |