ct->mirror_table = Qnil;
#else
ct->name = Qnil;
-#ifdef CHISE
- ct->feature_table = NULL;
-#else
+#ifndef CHISE
ct->db = Qnil;
#endif
#endif
ctnew->default_value = ct->default_value;
/* [tomo:2002-01-21] Perhaps this code seems wrong */
ctnew->name = ct->name;
-#ifdef CHISE
- ctnew->feature_table = ct->feature_table;
-#else
+#ifndef CHISE
ctnew->db = ct->db;
#endif
if (!NILP (attribute))
{
#ifdef CHISE
- if (cit->feature_table == NULL)
- {
- if ( open_chise_data_source_maybe () )
- return -1;
-
- cit->feature_table
- = chise_ds_get_feature (default_chise_data_source,
- XSTRING_DATA (Fsymbol_name (attribute)));
- if (cit->feature_table == NULL)
- return -1;
- }
+ if ( open_chise_data_source_maybe () )
+ return -1;
#else
if (NILP (Fdatabase_live_p (cit->db)))
{
void
char_table_close_db_maybe (Lisp_Char_Table* cit)
{
-#ifdef CHISE
- if (cit->feature_table != NULL)
- {
- /* chise_ft_close (cit->feature_table); */
- cit->feature_table = NULL;
- }
-#else
+#ifndef CHISE
if (!NILP (cit->db))
{
if (!NILP (Fdatabase_live_p (cit->db)))
#ifdef CHISE
CHISE_Value value;
int status
- = chise_char_load_feature_value (ch, cit->feature_table, &value);
+ = chise_char_load_feature_value (ch,
+ chise_ds_get_feature
+ (default_chise_data_source,
+ XSTRING_DATA
+ (Fsymbol_name
+ (cit->name))), &value);
if (!status)
{
ct = XCHAR_TABLE (table);
ct->table = Qunloaded;
XCHAR_TABLE_UNLOADED(table) = 1;
-#ifdef CHISE
- ct->feature_table = NULL;
-#else
+#ifndef CHISE
ct->db = Qnil;
#endif
return Qt;
GCPRO1 (table);
#ifdef CHISE
chise_char_feature_value_iterate
- (cit->feature_table,
+ (chise_ds_get_feature (default_chise_data_source,
+ XSTRING_DATA (Fsymbol_name (cit->name))),
&load_char_attribute_table_map_func);
#else
Fmap_database (Qload_char_attribute_table_map_function, cit->db);