Mercurial > emacs
comparison src/regex.c @ 108933:b465aa3255ed
Fix typos.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Thu, 03 Jun 2010 17:34:35 +0200 |
parents | a2b9cb6b7cb7 |
children | d418516def73 e0f89e89ed02 |
comparison
equal
deleted
inserted
replaced
108932:21c602686f38 | 108933:b465aa3255ed |
---|---|
2084 } \ | 2084 } \ |
2085 } \ | 2085 } \ |
2086 } while (0) | 2086 } while (0) |
2087 | 2087 |
2088 | 2088 |
2089 /* Both FROM and TO are mulitbyte characters. */ | 2089 /* Both FROM and TO are multibyte characters. */ |
2090 | 2090 |
2091 #define SETUP_MULTIBYTE_RANGE(work_area, FROM, TO) \ | 2091 #define SETUP_MULTIBYTE_RANGE(work_area, FROM, TO) \ |
2092 do { \ | 2092 do { \ |
2093 int C0, C1, C2, I, USED = RANGE_TABLE_WORK_USED (work_area); \ | 2093 int C0, C1, C2, I, USED = RANGE_TABLE_WORK_USED (work_area); \ |
2094 \ | 2094 \ |
3803 { | 3803 { |
3804 re_wchar_t c2 = TRANSLATE (c1); | 3804 re_wchar_t c2 = TRANSLATE (c1); |
3805 | 3805 |
3806 if (c1 != c2 && (c1 = RE_CHAR_TO_UNIBYTE (c2)) >= 0) | 3806 if (c1 != c2 && (c1 = RE_CHAR_TO_UNIBYTE (c2)) >= 0) |
3807 c = c1; | 3807 c = c1; |
3808 } | 3808 } |
3809 *b++ = c; | 3809 *b++ = c; |
3810 len = 1; | 3810 len = 1; |
3811 } | 3811 } |
3812 (*pending_exact) += len; | 3812 (*pending_exact) += len; |
3813 } | 3813 } |
4123 | 4123 |
4124 #ifdef emacs | 4124 #ifdef emacs |
4125 if (/* Any leading code can possibly start a character | 4125 if (/* Any leading code can possibly start a character |
4126 which doesn't match the specified set of characters. */ | 4126 which doesn't match the specified set of characters. */ |
4127 not | 4127 not |
4128 || | 4128 || |
4129 /* If we can match a character class, we can match any | 4129 /* If we can match a character class, we can match any |
4130 multibyte characters. */ | 4130 multibyte characters. */ |
4131 (CHARSET_RANGE_TABLE_EXISTS_P (&p[-2]) | 4131 (CHARSET_RANGE_TABLE_EXISTS_P (&p[-2]) |
4132 && CHARSET_RANGE_TABLE_BITS (&p[-2]) != 0)) | 4132 && CHARSET_RANGE_TABLE_BITS (&p[-2]) != 0)) |
4133 | 4133 |