diff options
| author | Michal Nazarewicz | 2016-07-27 22:53:57 +0200 |
|---|---|---|
| committer | Michal Nazarewicz | 2016-08-02 15:39:10 +0200 |
| commit | da9c55ddbbd08fc07ab36dc8bdc740e352eeab2c (patch) | |
| tree | 597b4d4f7e7a0d784e26b5f114a035b4c068e1f0 /src/regex.h | |
| parent | 04d96eca08ff797c0cd93c33fe8589f4623fc449 (diff) | |
| download | emacs-da9c55ddbbd08fc07ab36dc8bdc740e352eeab2c.tar.gz emacs-da9c55ddbbd08fc07ab36dc8bdc740e352eeab2c.zip | |
Get rid of re_set_whitespace_regexp
* src/regex.h (re_set_whitespace_regexp): Delete.
(re_compile_pattern): Add whitespace_regexp argument #ifdef emacs.
* src/regex.c (re_set_whitespace_regexp, whitespace_regexp): Delete.
(regex_compile): Add whitespace_regexp argument #ifdef emacs and wrap
whitespace_regexp-related code in an #ifdef emacs so it’s compiled out
unless building Emacs.
(re_compile_pattern): Pass whitespace_regexp argument to regex_compile
* src/search.c (compile_pattern_1): Don’t use re_set_whitespace_regexp,
pass the regex as argument to re_compile_pattern instead.
Diffstat (limited to 'src/regex.h')
| -rw-r--r-- | src/regex.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/regex.h b/src/regex.h index 4497333500a..af9480d583c 100644 --- a/src/regex.h +++ b/src/regex.h | |||
| @@ -474,6 +474,7 @@ extern reg_syntax_t re_set_syntax (reg_syntax_t __syntax); | |||
| 474 | extern const char *re_compile_pattern (const char *__pattern, size_t __length, | 474 | extern const char *re_compile_pattern (const char *__pattern, size_t __length, |
| 475 | #ifdef emacs | 475 | #ifdef emacs |
| 476 | reg_syntax_t syntax, | 476 | reg_syntax_t syntax, |
| 477 | const char *whitespace_regexp, | ||
| 477 | #endif | 478 | #endif |
| 478 | struct re_pattern_buffer *__buffer); | 479 | struct re_pattern_buffer *__buffer); |
| 479 | 480 | ||
| @@ -627,8 +628,6 @@ extern re_wctype_t re_wctype_parse (const unsigned char **strp, unsigned limit); | |||
| 627 | 628 | ||
| 628 | typedef int re_wchar_t; | 629 | typedef int re_wchar_t; |
| 629 | 630 | ||
| 630 | extern void re_set_whitespace_regexp (const char *regexp); | ||
| 631 | |||
| 632 | #endif /* not WIDE_CHAR_SUPPORT */ | 631 | #endif /* not WIDE_CHAR_SUPPORT */ |
| 633 | 632 | ||
| 634 | #endif /* regex.h */ | 633 | #endif /* regex.h */ |