Mercurial > emacs
comparison src/charset.c @ 89962:77df4a7f419a
(Fdeclare_equiv_charset): Fix handing of CHARS.
(Fiso_charset): Likewise.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Tue, 17 Aug 2004 11:49:18 +0000 |
parents | 4c90ffeb71c5 |
children | 69699ae00d9c |
comparison
equal
deleted
inserted
replaced
89961:3fd4a5c21153 | 89962:77df4a7f419a |
---|---|
1317 if CHARSET is designated instead. */) | 1317 if CHARSET is designated instead. */) |
1318 (dimension, chars, final_char, charset) | 1318 (dimension, chars, final_char, charset) |
1319 Lisp_Object dimension, chars, final_char, charset; | 1319 Lisp_Object dimension, chars, final_char, charset; |
1320 { | 1320 { |
1321 int id; | 1321 int id; |
1322 int chars_flag; | |
1322 | 1323 |
1323 CHECK_CHARSET_GET_ID (charset, id); | 1324 CHECK_CHARSET_GET_ID (charset, id); |
1324 check_iso_charset_parameter (dimension, chars, final_char); | 1325 check_iso_charset_parameter (dimension, chars, final_char); |
1325 | 1326 chars_flag = XINT (chars) == 96; |
1326 ISO_CHARSET_TABLE (XINT (dimension), XINT (chars), XINT (final_char)) = id; | 1327 ISO_CHARSET_TABLE (XINT (dimension), chars_flag, XINT (final_char)) = id; |
1327 return Qnil; | 1328 return Qnil; |
1328 } | 1329 } |
1329 | 1330 |
1330 | 1331 |
1331 /* Return information about charsets in the text at PTR of NBYTES | 1332 /* Return information about charsets in the text at PTR of NBYTES |
1915 DIMENSION, CHARS, and FINAL-CHAR. */) | 1916 DIMENSION, CHARS, and FINAL-CHAR. */) |
1916 (dimension, chars, final_char) | 1917 (dimension, chars, final_char) |
1917 Lisp_Object dimension, chars, final_char; | 1918 Lisp_Object dimension, chars, final_char; |
1918 { | 1919 { |
1919 int id; | 1920 int id; |
1921 int chars_flag; | |
1920 | 1922 |
1921 check_iso_charset_parameter (dimension, chars, final_char); | 1923 check_iso_charset_parameter (dimension, chars, final_char); |
1922 id = ISO_CHARSET_TABLE (XFASTINT (dimension), XFASTINT (chars), | 1924 chars_flag = XFASTINT (chars) == 96; |
1925 id = ISO_CHARSET_TABLE (XFASTINT (dimension), chars_flag, | |
1923 XFASTINT (final_char)); | 1926 XFASTINT (final_char)); |
1924 return (id >= 0 ? CHARSET_NAME (CHARSET_FROM_ID (id)) : Qnil); | 1927 return (id >= 0 ? CHARSET_NAME (CHARSET_FROM_ID (id)) : Qnil); |
1925 } | 1928 } |
1926 | 1929 |
1927 | 1930 |