/* Rewritten by MORIOKA Tomohiko <tomo@m17n.org> for XEmacs CHISE. */
#include <config.h>
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
#include <chise.h>
#endif
#ifdef UTF2000
{
struct Lisp_Charset *cs;
int byte_min, byte_max;
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_CCS dt_ccs;
#else
Lisp_Object db;
charset = Fget_charset (charset);
cs = XCHARSET (charset);
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
if ( open_chise_data_source_maybe () )
return -1;
- char_attribute_system_db_file (CHARSET_NAME (cs), Qsystem_char_id, 1);
dt_ccs
= chise_ds_get_ccs (default_chise_data_source,
XSTRING_DATA (Fsymbol_name (XCHARSET_NAME(charset))));
if (CHARP (c))
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_ccs_set_decoded_char (dt_ccs, cell, XCHAR (c));
#else
Fput_database (Fprin1_to_string (make_int (cell), Qnil),
if (CHARP (c))
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_ccs_set_decoded_char
(dt_ccs,
(row << 8) | cell, XCHAR (c));
if (CHARP (c))
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_ccs_set_decoded_char
(dt_ccs,
(plane << 16)
if (CHARP (c))
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_ccs_set_decoded_char
(dt_ccs,
( group << 24)
}
}
}
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_ccs_sync (dt_ccs);
return Qnil;
#else
Emchar
load_char_decoding_entry_maybe (Lisp_Object ccs, int code_point)
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_Char_ID char_id;
if ( open_chise_data_source_maybe () )