Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
254c06a8
Commit
254c06a8
authored
Mar 05, 2010
by
Stefan Monnier
Browse files
* regex.c (regex_compile): Setup gl_state as well.
parent
618db430
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
src/ChangeLog
src/ChangeLog
+2
-0
src/regex.c
src/regex.c
+7
-0
No files found.
src/ChangeLog
View file @
254c06a8
2010-03-05 Stefan Monnier <monnier@iro.umontreal.ca>
* regex.c (regex_compile): Setup gl_state as well.
* syntax.c (skip_chars): Setup gl_state (bug#3823).
(in_classes): Use CONSP before XCAR/XCDR.
...
...
src/regex.c
View file @
254c06a8
...
...
@@ -3065,6 +3065,13 @@ regex_compile (pattern, size, syntax, bufp)
don't need to handle them for multibyte.
They are distinguished by a negative wctype. */
/* Setup the gl_state object to its buffer-defined
value. This hardcodes the buffer-global
syntax-table for ASCII chars, while the other chars
will obey syntax-table properties. It's not ideal,
but it's the way it's been done until now. */
SETUP_SYNTAX_TABLE
(
BEGV
,
0
);
for
(
ch
=
0
;
ch
<
256
;
++
ch
)
{
c
=
RE_CHAR_TO_MULTIBYTE
(
ch
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment