Mercurial > emacs
comparison src/ChangeLog.unicode @ 90762:c54ff468cc4f
*** empty log message ***
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Thu, 15 Feb 2007 11:29:15 +0000 |
| parents | ddf41bb7ba55 |
| children | bde48639c22d |
comparison
equal
deleted
inserted
replaced
| 90761:2951f3d44eba | 90762:c54ff468cc4f |
|---|---|
| 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 |
| 4 empty box occupy at least one column width. | 40 empty box occupy at least one column width. |
| 5 | 41 |
