From: MORIOKA Tomohiko Date: Tue, 23 Apr 2013 14:16:26 +0000 (+0900) Subject: Include "cos-hash.h". X-Git-Url: http://git.chise.org/gitweb/?p=chise%2Fconcord.git;a=commitdiff_plain;h=b2023e595484ecab3f6d89c8ff883835cf0837e9;hp=e99e93e4773c5f3472b088db2659f7a848cbcc21 Include "cos-hash.h". (struct COS_Feature_ent): Moved to cos-i.h. (concord_genre_open_feature): Setup `table->value_table'. --- diff --git a/concord.c b/concord.c index 71d5d4d..617f6c5 100644 --- a/concord.c +++ b/concord.c @@ -25,6 +25,7 @@ #include "concord.h" #include "cos-i.h" #include "concord-name.h" +#include "cos-hash.h" #include "concord-bdb.h" @@ -521,15 +522,6 @@ concord_genre_get_index (CONCORD_Genre genre, const char* name) } -struct COS_Feature_ent -{ - COS_Object_Header header; - CONCORD_Genre genre; - char* name; - DB* db; - u_int32_t access; -}; - CONCORD_Feature concord_genre_open_feature (CONCORD_Genre genre, const char* feature) { @@ -553,6 +545,7 @@ concord_genre_open_feature (CONCORD_Genre genre, const char* feature) return NULL; } strcpy (table->name, feature); + table->value_table = NULL; return table; }