#endif /* MULE */
\f
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_DS *default_chise_data_source = NULL;
#endif
#ifdef HAVE_CHISE_CLIENT
static void
save_uint8_byte_table (Lisp_Uint8_Byte_Table *ct, Lisp_Char_Table* root,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_Feature feature,
#else
Lisp_Object db,
c1 = c + unit;
for (; c < c1 && retval == 0; c++)
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_char_set_feature_value
(c, feature,
XSTRING_DATA
#ifdef HAVE_CHISE_CLIENT
static void
save_uint16_byte_table (Lisp_Uint16_Byte_Table *ct, Lisp_Char_Table* root,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_Feature feature,
#else
Lisp_Object db,
c1 = c + unit;
for (; c < c1 && retval == 0; c++)
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_char_set_feature_value
(c, feature,
XSTRING_DATA
#ifdef HAVE_CHISE_CLIENT
static void
save_byte_table (Lisp_Byte_Table *ct, Lisp_Char_Table* root,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_Feature feature,
#else
Lisp_Object db,
if (UINT8_BYTE_TABLE_P (v))
{
save_uint8_byte_table (XUINT8_BYTE_TABLE(v), root,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature,
#else
db,
else if (UINT16_BYTE_TABLE_P (v))
{
save_uint16_byte_table (XUINT16_BYTE_TABLE(v), root,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature,
#else
db,
else if (BYTE_TABLE_P (v))
{
save_byte_table (XBYTE_TABLE(v), root,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature,
#else
db,
for (; c < c1 && retval == 0; c++)
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_char_set_feature_value
(c, feature, XSTRING_DATA (Fprin1_to_string (v, Qnil)));
#else
mark_object (ct->table);
mark_object (ct->name);
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
mark_object (ct->db);
#endif
#else
{ XD_LISP_OBJECT, offsetof(Lisp_Char_Table, table) },
{ XD_LISP_OBJECT, offsetof(Lisp_Char_Table, default_value) },
{ XD_LISP_OBJECT, offsetof(Lisp_Char_Table, name) },
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
{ XD_LISP_OBJECT, offsetof(Lisp_Char_Table, db) },
#endif
#else
ct->mirror_table = Qnil;
#else
ct->name = Qnil;
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
ct->db = Qnil;
#endif
#endif
ctnew->default_value = ct->default_value;
/* [tomo:2002-01-21] Perhaps this code seems wrong */
ctnew->name = ct->name;
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
ctnew->db = ct->db;
#endif
*/
())
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
int status = CHISE_DS_close (default_chise_data_source);
default_chise_data_source = NULL;
if (!NILP (attribute))
{
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
if ( open_chise_data_source_maybe () )
return -1;
#else
void
char_table_close_db_maybe (Lisp_Char_Table* cit)
{
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
if (!NILP (cit->db))
{
if (!NILP (Fdatabase_live_p (cit->db)))
char_table_get_db (Lisp_Char_Table* cit, Emchar ch)
{
Lisp_Object val;
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_Value value;
int status
= chise_ds_load_char_feature_value (default_chise_data_source, ch,
Lisp_Object table = Fgethash (attribute,
Vchar_attribute_hash_table, Qunbound);
Lisp_Char_Table *ct;
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
CHISE_Feature feature;
#else
Lisp_Object db_file;
else
return Qnil;
-#ifdef CHISE
- char_attribute_system_db_file (Qsystem_char_id, attribute, 1);
+#ifdef HAVE_LIBCHISE
if ( open_chise_data_source_maybe () )
return -1;
feature
db = Fopen_database (db_file, Qnil, Qnil, build_string ("w+"), Qnil);
#endif
if (
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature != NULL
#else
!NILP (db)
if (UINT8_BYTE_TABLE_P (ct->table))
save_uint8_byte_table (XUINT8_BYTE_TABLE(ct->table), ct,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature,
#else
db,
0, 3, filter);
else if (UINT16_BYTE_TABLE_P (ct->table))
save_uint16_byte_table (XUINT16_BYTE_TABLE(ct->table), ct,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature,
#else
db,
0, 3, filter);
else if (BYTE_TABLE_P (ct->table))
save_byte_table (XBYTE_TABLE(ct->table), ct,
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
feature,
#else
db,
#endif
0, 3, filter);
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_feature_sync (feature);
#else
Fclose_database (db);
ct = XCHAR_TABLE (table);
ct->table = Qunloaded;
XCHAR_TABLE_UNLOADED(table) = 1;
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
ct->db = Qnil;
#endif
return Qt;
Lisp_Char_Table* char_attribute_table_to_load;
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
int
load_char_attribute_table_map_func (CHISE_Char_ID cid,
CHISE_Feature feature,
struct gcpro gcpro1;
GCPRO1 (table);
-#ifdef CHISE
+#ifdef HAVE_LIBCHISE
chise_char_feature_value_iterate
(chise_ds_get_feature (default_chise_data_source,
XSTRING_DATA (Fsymbol_name (cit->name))),
DEFSUBR (Freset_char_attribute_table);
DEFSUBR (Fclose_char_attribute_table);
DEFSUBR (Fclose_char_data_source);
-#ifndef CHISE
+#ifndef HAVE_LIBCHISE
defsymbol (&Qload_char_attribute_table_map_function,
"load-char-attribute-table-map-function");
DEFSUBR (Fload_char_attribute_table_map_function);