aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1998-01-16 17:56:40 +0000
committerRichard M. Stallman1998-01-16 17:56:40 +0000
commit92432794c1275da935cac061027dbe4b28deeffa (patch)
treee8e9df8e6fb8edde18693cc8bf8746857f89caff /src
parentc292db29eb2df4d3cee5908342a501f0a86e3693 (diff)
downloademacs-92432794c1275da935cac061027dbe4b28deeffa.tar.gz
emacs-92432794c1275da935cac061027dbe4b28deeffa.zip
(re_match_2_internal): Use SYNTAX_TABLE_BYTE_TO_CHAR.
(re_match_2_internal) <wordbeg, wordend>: Call UPDATE_SYNTAX_TABLE properly with a charpos.
Diffstat (limited to 'src')
-rw-r--r--src/regex.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/regex.c b/src/regex.c
index 56aeb23a8e2..a997402a15d 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -5324,7 +5324,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5324 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); 5324 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2);
5325 GET_CHAR_AFTER_2 (c2, d, string1, end1, string2, end2); 5325 GET_CHAR_AFTER_2 (c2, d, string1, end1, string2, end2);
5326#ifdef emacs 5326#ifdef emacs
5327 charpos = BYTE_TO_CHAR (pos1 ? pos1 : 1); 5327 charpos = SYNTAX_TABLE_BYTE_TO_CHAR (pos1 ? pos1 : 1);
5328 UPDATE_SYNTAX_TABLE (charpos); 5328 UPDATE_SYNTAX_TABLE (charpos);
5329#endif 5329#endif
5330 s1 = SYNTAX (c1); 5330 s1 = SYNTAX (c1);
@@ -5361,7 +5361,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5361 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); 5361 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2);
5362 GET_CHAR_AFTER_2 (c2, d, string1, end1, string2, end2); 5362 GET_CHAR_AFTER_2 (c2, d, string1, end1, string2, end2);
5363#ifdef emacs 5363#ifdef emacs
5364 charpos = BYTE_TO_CHAR (pos1); 5364 charpos = SYNTAX_TABLE_BYTE_TO_CHAR (pos1);
5365 UPDATE_SYNTAX_TABLE (charpos); 5365 UPDATE_SYNTAX_TABLE (charpos);
5366#endif 5366#endif
5367 s1 = SYNTAX (c1); 5367 s1 = SYNTAX (c1);
@@ -5397,8 +5397,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5397 5397
5398 GET_CHAR_AFTER_2 (c2, d, string1, end1, string2, end2); 5398 GET_CHAR_AFTER_2 (c2, d, string1, end1, string2, end2);
5399#ifdef emacs 5399#ifdef emacs
5400 charpos = BYTE_TO_CHAR (pos1); 5400 charpos = SYNTAX_TABLE_BYTE_TO_CHAR (pos1);
5401 UPDATE_SYNTAX_TABLE (pos1); 5401 UPDATE_SYNTAX_TABLE (charpos);
5402#endif 5402#endif
5403 s2 = SYNTAX (c2); 5403 s2 = SYNTAX (c2);
5404 5404
@@ -5441,8 +5441,8 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5441 5441
5442 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); 5442 GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2);
5443#ifdef emacs 5443#ifdef emacs
5444 charpos = BYTE_TO_CHAR (pos1 - 1); 5444 charpos = SYNTAX_TABLE_BYTE_TO_CHAR (pos1 - 1);
5445 UPDATE_SYNTAX_TABLE (pos1); 5445 UPDATE_SYNTAX_TABLE (charpos);
5446#endif 5446#endif
5447 s1 = SYNTAX (c1); 5447 s1 = SYNTAX (c1);
5448 5448
@@ -5498,7 +5498,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5498 PREFETCH (); 5498 PREFETCH ();
5499#ifdef emacs 5499#ifdef emacs
5500 { 5500 {
5501 int pos1 = BYTE_TO_CHAR (PTR_TO_OFFSET (d)); 5501 int pos1 = SYNTAX_TABLE_BYTE_TO_CHAR (PTR_TO_OFFSET (d));
5502 UPDATE_SYNTAX_TABLE (pos1); 5502 UPDATE_SYNTAX_TABLE (pos1);
5503 } 5503 }
5504#endif 5504#endif
@@ -5532,7 +5532,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
5532 PREFETCH (); 5532 PREFETCH ();
5533#ifdef emacs 5533#ifdef emacs
5534 { 5534 {
5535 int pos1 = BYTE_TO_CHAR (PTR_TO_OFFSET (d)); 5535 int pos1 = SYNTAX_TABLE_BYTE_TO_CHAR (PTR_TO_OFFSET (d));
5536 UPDATE_SYNTAX_TABLE (pos1); 5536 UPDATE_SYNTAX_TABLE (pos1);
5537 } 5537 }
5538#endif 5538#endif