Commit d451e4db authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(compile_pattern_1): Don't declare val with CONST.

parent 539b4d41
...@@ -121,7 +121,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte) ...@@ -121,7 +121,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte)
int posix; int posix;
int multibyte; int multibyte;
{ {
CONST char *val; char *val;
reg_syntax_t old; reg_syntax_t old;
cp->regexp = Qnil; cp->regexp = Qnil;
...@@ -131,7 +131,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte) ...@@ -131,7 +131,7 @@ compile_pattern_1 (cp, pattern, translate, regp, posix, multibyte)
BLOCK_INPUT; BLOCK_INPUT;
old = re_set_syntax (RE_SYNTAX_EMACS old = re_set_syntax (RE_SYNTAX_EMACS
| (posix ? 0 : RE_NO_POSIX_BACKTRACKING)); | (posix ? 0 : RE_NO_POSIX_BACKTRACKING));
val = (CONST char *) re_compile_pattern ((char *) XSTRING (pattern)->data, val = (char *) re_compile_pattern ((char *) XSTRING (pattern)->data,
XSTRING (pattern)->size, &cp->buf); XSTRING (pattern)->size, &cp->buf);
re_set_syntax (old); re_set_syntax (old);
UNBLOCK_INPUT; UNBLOCK_INPUT;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment