diff options
| author | K. Handa | 2016-01-03 17:53:43 +0900 |
|---|---|---|
| committer | K. Handa | 2016-01-03 17:53:43 +0900 |
| commit | fb6d826c69939c2d016c1b824d4e9bcb53d9e643 (patch) | |
| tree | b9ce862d6cbe25e740203421984df21e4cbadbf4 /src/regex.c | |
| parent | 536f48e9a2251b9e654ea974bd90ff2f40218753 (diff) | |
| parent | 91917dd58ec5278e555b9c693a830749083e8f89 (diff) | |
| download | emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.tar.gz emacs-fb6d826c69939c2d016c1b824d4e9bcb53d9e643.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
Diffstat (limited to 'src/regex.c')
| -rw-r--r-- | src/regex.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/regex.c b/src/regex.c index dcf286454b3..4e00fd15dc9 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -5945,12 +5945,12 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 5945 | #ifdef emacs | 5945 | #ifdef emacs |
| 5946 | ssize_t offset = PTR_TO_OFFSET (d - 1); | 5946 | ssize_t offset = PTR_TO_OFFSET (d - 1); |
| 5947 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); | 5947 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); |
| 5948 | UPDATE_SYNTAX_TABLE (charpos); | 5948 | UPDATE_SYNTAX_TABLE_FAST (charpos); |
| 5949 | #endif | 5949 | #endif |
| 5950 | GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); | 5950 | GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); |
| 5951 | s1 = SYNTAX (c1); | 5951 | s1 = SYNTAX (c1); |
| 5952 | #ifdef emacs | 5952 | #ifdef emacs |
| 5953 | UPDATE_SYNTAX_TABLE_FORWARD (charpos + 1); | 5953 | UPDATE_SYNTAX_TABLE_FORWARD_FAST (charpos + 1); |
| 5954 | #endif | 5954 | #endif |
| 5955 | PREFETCH_NOLIMIT (); | 5955 | PREFETCH_NOLIMIT (); |
| 5956 | GET_CHAR_AFTER (c2, d, dummy); | 5956 | GET_CHAR_AFTER (c2, d, dummy); |
| @@ -5987,7 +5987,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 5987 | #ifdef emacs | 5987 | #ifdef emacs |
| 5988 | ssize_t offset = PTR_TO_OFFSET (d); | 5988 | ssize_t offset = PTR_TO_OFFSET (d); |
| 5989 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); | 5989 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); |
| 5990 | UPDATE_SYNTAX_TABLE (charpos); | 5990 | UPDATE_SYNTAX_TABLE_FAST (charpos); |
| 5991 | #endif | 5991 | #endif |
| 5992 | PREFETCH (); | 5992 | PREFETCH (); |
| 5993 | GET_CHAR_AFTER (c2, d, dummy); | 5993 | GET_CHAR_AFTER (c2, d, dummy); |
| @@ -6032,7 +6032,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 6032 | #ifdef emacs | 6032 | #ifdef emacs |
| 6033 | ssize_t offset = PTR_TO_OFFSET (d) - 1; | 6033 | ssize_t offset = PTR_TO_OFFSET (d) - 1; |
| 6034 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); | 6034 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); |
| 6035 | UPDATE_SYNTAX_TABLE (charpos); | 6035 | UPDATE_SYNTAX_TABLE_FAST (charpos); |
| 6036 | #endif | 6036 | #endif |
| 6037 | GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); | 6037 | GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); |
| 6038 | s1 = SYNTAX (c1); | 6038 | s1 = SYNTAX (c1); |
| @@ -6047,7 +6047,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 6047 | PREFETCH_NOLIMIT (); | 6047 | PREFETCH_NOLIMIT (); |
| 6048 | GET_CHAR_AFTER (c2, d, dummy); | 6048 | GET_CHAR_AFTER (c2, d, dummy); |
| 6049 | #ifdef emacs | 6049 | #ifdef emacs |
| 6050 | UPDATE_SYNTAX_TABLE_FORWARD (charpos); | 6050 | UPDATE_SYNTAX_TABLE_FORWARD_FAST (charpos); |
| 6051 | #endif | 6051 | #endif |
| 6052 | s2 = SYNTAX (c2); | 6052 | s2 = SYNTAX (c2); |
| 6053 | 6053 | ||
| @@ -6076,7 +6076,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 6076 | #ifdef emacs | 6076 | #ifdef emacs |
| 6077 | ssize_t offset = PTR_TO_OFFSET (d); | 6077 | ssize_t offset = PTR_TO_OFFSET (d); |
| 6078 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); | 6078 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); |
| 6079 | UPDATE_SYNTAX_TABLE (charpos); | 6079 | UPDATE_SYNTAX_TABLE_FAST (charpos); |
| 6080 | #endif | 6080 | #endif |
| 6081 | PREFETCH (); | 6081 | PREFETCH (); |
| 6082 | c2 = RE_STRING_CHAR (d, target_multibyte); | 6082 | c2 = RE_STRING_CHAR (d, target_multibyte); |
| @@ -6119,7 +6119,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 6119 | #ifdef emacs | 6119 | #ifdef emacs |
| 6120 | ssize_t offset = PTR_TO_OFFSET (d) - 1; | 6120 | ssize_t offset = PTR_TO_OFFSET (d) - 1; |
| 6121 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); | 6121 | ssize_t charpos = SYNTAX_TABLE_BYTE_TO_CHAR (offset); |
| 6122 | UPDATE_SYNTAX_TABLE (charpos); | 6122 | UPDATE_SYNTAX_TABLE_FAST (charpos); |
| 6123 | #endif | 6123 | #endif |
| 6124 | GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); | 6124 | GET_CHAR_BEFORE_2 (c1, d, string1, end1, string2, end2); |
| 6125 | s1 = SYNTAX (c1); | 6125 | s1 = SYNTAX (c1); |
| @@ -6134,7 +6134,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 6134 | PREFETCH_NOLIMIT (); | 6134 | PREFETCH_NOLIMIT (); |
| 6135 | c2 = RE_STRING_CHAR (d, target_multibyte); | 6135 | c2 = RE_STRING_CHAR (d, target_multibyte); |
| 6136 | #ifdef emacs | 6136 | #ifdef emacs |
| 6137 | UPDATE_SYNTAX_TABLE_FORWARD (charpos + 1); | 6137 | UPDATE_SYNTAX_TABLE_FORWARD_FAST (charpos + 1); |
| 6138 | #endif | 6138 | #endif |
| 6139 | s2 = SYNTAX (c2); | 6139 | s2 = SYNTAX (c2); |
| 6140 | 6140 | ||
| @@ -6157,7 +6157,7 @@ re_match_2_internal (struct re_pattern_buffer *bufp, const_re_char *string1, | |||
| 6157 | { | 6157 | { |
| 6158 | ssize_t offset = PTR_TO_OFFSET (d); | 6158 | ssize_t offset = PTR_TO_OFFSET (d); |
| 6159 | ssize_t pos1 = SYNTAX_TABLE_BYTE_TO_CHAR (offset); | 6159 | ssize_t pos1 = SYNTAX_TABLE_BYTE_TO_CHAR (offset); |
| 6160 | UPDATE_SYNTAX_TABLE (pos1); | 6160 | UPDATE_SYNTAX_TABLE_FAST (pos1); |
| 6161 | } | 6161 | } |
| 6162 | #endif | 6162 | #endif |
| 6163 | { | 6163 | { |