(struct COS_Feature_INDEX_ent): Moved to cos-i.h; add new member
authorMORIOKA Tomohiko <tomo.git@chise.org>
Fri, 17 May 2013 12:43:25 +0000 (21:43 +0900)
committerMORIOKA Tomohiko <tomo.git@chise.org>
Fri, 17 May 2013 12:43:25 +0000 (21:43 +0900)
`decoding_table'.
(concord_genre_open_index): Reset `table->decoding_table'.

concord.c

index 617f6c5..2a646d6 100644 (file)
--- a/concord.c
+++ b/concord.c
@@ -729,15 +729,6 @@ concord_feature_foreach_obj_string (CONCORD_Feature feature,
 }
 
 
-struct COS_Feature_INDEX_ent
-{
-  COS_Object_Header header;
-  CONCORD_Genre genre;
-  char *name;
-  DB* db;
-  u_int32_t access;
-};
-
 CONCORD_INDEX
 concord_genre_open_index (CONCORD_Genre genre, const char* index)
 {
@@ -761,6 +752,7 @@ concord_genre_open_index (CONCORD_Genre genre, const char* index)
       return NULL;
     }
   strcpy (table->name, index);
+  table->decoding_table = NULL;
   return table;
 }