diff options
| author | Kenichi Handa | 2007-02-15 11:29:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2007-02-15 11:29:15 +0000 |
| commit | 04fcc7ce82d8758710f07b594dc6abad380133ef (patch) | |
| tree | caa9a3f35ac923fe9d4e92c92782f7082f99d127 /src/ChangeLog.unicode | |
| parent | 935d5b020cd919203ea7e7cef21af09447aaad26 (diff) | |
| download | emacs-04fcc7ce82d8758710f07b594dc6abad380133ef.tar.gz emacs-04fcc7ce82d8758710f07b594dc6abad380133ef.zip | |
*** empty log message ***
Diffstat (limited to 'src/ChangeLog.unicode')
| -rw-r--r-- | src/ChangeLog.unicode | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/ChangeLog.unicode b/src/ChangeLog.unicode index 435ed5eeb7d..4bbaca01eda 100644 --- a/src/ChangeLog.unicode +++ b/src/ChangeLog.unicode | |||
| @@ -1,3 +1,39 @@ | |||
| 1 | 2007-02-15 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | These changes are to compile a regexp into a pattern that can be | ||
| 4 | used both for multibyte and unibyte targets. | ||
| 5 | |||
| 6 | * Makefile.in (search.o): Depend on charset.h. | ||
| 7 | |||
| 8 | * character.c (multibyte_char_to_unibyte_safe): New function. | ||
| 9 | |||
| 10 | * search.c: Include "charset.h". | ||
| 11 | (compile_pattern_1): Delete argument multibyte. Don't set | ||
| 12 | cp->buf.target_multibyte here. Set cp->buf.charset_unibyte. | ||
| 13 | (compile_pattern): Don't compare cp->buf.target_multibyte. | ||
| 14 | Compare cp->buf.charset_unibyte. | ||
| 15 | (compile_pattern): Set cp->buf.target_multibyte. | ||
| 16 | |||
| 17 | * lisp.h (multibyte_char_to_unibyte_safe): Extern it. | ||
| 18 | |||
| 19 | * regex.h (struct re_pattern_buffer): New member charset_unibyte. | ||
| 20 | |||
| 21 | * regex.c (RE_STRING_CHAR, RE_STRING_CHAR_AND_LENGTH): New arg | ||
| 22 | multibte. Callers changed. | ||
| 23 | (RE_CHAR_TO_MULTIBYTE, RE_CHAR_TO_UNIBYTE): New macros. | ||
| 24 | (MAKE_CHAR_MULTIBYTE, MAKE_CHAR_UNIBYTE): Deleted. Callers | ||
| 25 | changed to use RE_CHAR_TO_MULTIBYTE and RE_CHAR_TO_UNIBYTE | ||
| 26 | respectively. | ||
| 27 | (SETUP_ASCII_RANGE, SETUP_UNIBYTE_RANGE): New macros. | ||
| 28 | (SETUP_MULTIBYTE_RANGE): Generate a more compact range_table. | ||
| 29 | (regex_compile): Make the compiled pattern usable both for | ||
| 30 | multibyte and unibyte targets. | ||
| 31 | (analyse_first): Make the fastmap usable both for multibyte and | ||
| 32 | unibyte targets. | ||
| 33 | (TRANSLATE_VIA_MULTIBYTE): Deleted. | ||
| 34 | (re_match_2_internal): Pay attention to the case that the | ||
| 35 | multibyteness of bufp and target may be different. | ||
| 36 | |||
| 1 | 2007-02-14 Kenichi Handa <handa@m17n.org> | 37 | 2007-02-14 Kenichi Handa <handa@m17n.org> |
| 2 | 38 | ||
| 3 | * xdisp.c (x_produce_glyphs): When a font is not found, make the | 39 | * xdisp.c (x_produce_glyphs): When a font is not found, make the |