diff options
| author | Kenichi Handa | 2008-11-27 08:00:43 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2008-11-27 08:00:43 +0000 |
| commit | 2bc20f0b55cd7e20da31c05aa7c1711ba3786c9a (patch) | |
| tree | f3b63fc040ecd9e2bd212acdda849142f5a026d2 /src | |
| parent | ecca2aad92d1b528fffbebba5867183b110a6fa9 (diff) | |
| download | emacs-2bc20f0b55cd7e20da31c05aa7c1711ba3786c9a.tar.gz emacs-2bc20f0b55cd7e20da31c05aa7c1711ba3786c9a.zip | |
(enum charset_method): Delete
CHARSET_METHOD_MAP_DEFERRED.
(DECODE_CHAR): Check if the decoder vector is ready.
(ENCODE_CHAR): Check if the encoder char-table is ready.
(maybe_unify_char): Extern it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/charset.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/charset.h b/src/charset.h index a49b2d36dec..1dac7add242 100644 --- a/src/charset.h +++ b/src/charset.h | |||
| @@ -66,9 +66,9 @@ enum charset_attr_index | |||
| 66 | /* Property list of the charset. */ | 66 | /* Property list of the charset. */ |
| 67 | charset_plist, | 67 | charset_plist, |
| 68 | 68 | ||
| 69 | /* If the method of the charset is `MAP_DEFERRED', the value is a | 69 | /* If the method of the charset is `MAP', the value is a mapping |
| 70 | mapping vector or a file name that contains mapping vector. | 70 | vector or a file name that contains mapping vector. Otherwise, |
| 71 | Otherwise, nil. */ | 71 | nil. */ |
| 72 | charset_map, | 72 | charset_map, |
| 73 | 73 | ||
| 74 | /* If the method of the charset is `MAP', the value is a vector | 74 | /* If the method of the charset is `MAP', the value is a vector |
| @@ -134,11 +134,6 @@ enum charset_method | |||
| 134 | conversion. */ | 134 | conversion. */ |
| 135 | CHARSET_METHOD_MAP, | 135 | CHARSET_METHOD_MAP, |
| 136 | 136 | ||
| 137 | /* Same as above but decoder and encoder are loaded from a file on | ||
| 138 | demand. Once loaded, the method is changed to | ||
| 139 | CHARSET_METHOD_MAP. */ | ||
| 140 | CHARSET_METHOD_MAP_DEFERRED, | ||
| 141 | |||
| 142 | /* A charset of this method is a subset of another charset. */ | 137 | /* A charset of this method is a subset of another charset. */ |
| 143 | CHARSET_METHOD_SUBSET, | 138 | CHARSET_METHOD_SUBSET, |
| 144 | 139 | ||
| @@ -410,9 +405,10 @@ extern Lisp_Object Vchar_charset_set; | |||
| 410 | ? (code) - (charset)->min_code + (charset)->code_offset \ | 405 | ? (code) - (charset)->min_code + (charset)->code_offset \ |
| 411 | : decode_char ((charset), (code))) \ | 406 | : decode_char ((charset), (code))) \ |
| 412 | : (charset)->method == CHARSET_METHOD_MAP \ | 407 | : (charset)->method == CHARSET_METHOD_MAP \ |
| 413 | ? ((charset)->code_linear_p \ | 408 | ? (((charset)->code_linear_p \ |
| 409 | && VECTORP (CHARSET_DECODER (charset))) \ | ||
| 414 | ? XINT (AREF (CHARSET_DECODER (charset), \ | 410 | ? XINT (AREF (CHARSET_DECODER (charset), \ |
| 415 | (code) - (charset)->min_code)) \ | 411 | (code) - (charset)->min_code)) \ |
| 416 | : decode_char ((charset), (code))) \ | 412 | : decode_char ((charset), (code))) \ |
| 417 | : decode_char ((charset), (code))) | 413 | : decode_char ((charset), (code))) |
| 418 | 414 | ||
| @@ -445,7 +441,8 @@ extern Lisp_Object charset_work; | |||
| 445 | ? (c) - (charset)->code_offset + (charset)->min_code \ | 441 | ? (c) - (charset)->code_offset + (charset)->min_code \ |
| 446 | : encode_char ((charset), (c))) \ | 442 | : encode_char ((charset), (c))) \ |
| 447 | : (charset)->method == CHARSET_METHOD_MAP \ | 443 | : (charset)->method == CHARSET_METHOD_MAP \ |
| 448 | ? ((charset)->compact_codes_p \ | 444 | ? (((charset)->compact_codes_p \ |
| 445 | && CHAR_TABLE_P (CHARSET_ENCODER (charset))) \ | ||
| 449 | ? (charset_work = CHAR_TABLE_REF (CHARSET_ENCODER (charset), (c)), \ | 446 | ? (charset_work = CHAR_TABLE_REF (CHARSET_ENCODER (charset), (c)), \ |
| 450 | (NILP (charset_work) \ | 447 | (NILP (charset_work) \ |
| 451 | ? (charset)->invalid_code \ | 448 | ? (charset)->invalid_code \ |
| @@ -538,6 +535,7 @@ extern int charset_unibyte; | |||
| 538 | extern struct charset *char_charset P_ ((int, Lisp_Object, unsigned *)); | 535 | extern struct charset *char_charset P_ ((int, Lisp_Object, unsigned *)); |
| 539 | extern Lisp_Object charset_attributes P_ ((int)); | 536 | extern Lisp_Object charset_attributes P_ ((int)); |
| 540 | 537 | ||
| 538 | extern int maybe_unify_char P_ ((int, Lisp_Object)); | ||
| 541 | extern int decode_char P_ ((struct charset *, unsigned)); | 539 | extern int decode_char P_ ((struct charset *, unsigned)); |
| 542 | extern unsigned encode_char P_ ((struct charset *, int)); | 540 | extern unsigned encode_char P_ ((struct charset *, int)); |
| 543 | extern int string_xstring_p P_ ((Lisp_Object)); | 541 | extern int string_xstring_p P_ ((Lisp_Object)); |