From: tomo Date: Tue, 12 Aug 2003 17:10:41 +0000 (+0000) Subject: (CHISE_Attribute_Table): Define as a structure. X-Git-Tag: b1-r0_2_0-pre1~6 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=eab0f905f2cc6f6332850cb395aa7be82911721e;p=chise%2Flibchise.git (CHISE_Attribute_Table): Define as a structure. (chise_open_decoding_table): Use `CHISE_Decoding_Table *' instead of `CHISE_Decoding_Table **' as the type of the first argument. (chise_open_feature_table): Use `CHISE_Feature_Table *' instead of `CHISE_Feature_Table **' as the type of the first argument. (chise_open_attribute_table): Use `CHISE_Attribute_Table *' instead of `CHISE_Attribute_Table **' as the type of the first argument. --- diff --git a/chise.h b/chise.h index 22e7982..29fbcd7 100644 --- a/chise.h +++ b/chise.h @@ -46,12 +46,15 @@ chise_value_to_c_string (const CHISE_Value *s) } -typedef DB CHISE_Attribute_Table; +typedef struct CHISE_Attribute_Table +{ + DB *dbp; +} CHISE_Attribute_Table; typedef CHISE_Attribute_Table CHISE_Decoding_Table; -int chise_open_decoding_table (CHISE_Decoding_Table **db, +int chise_open_decoding_table (CHISE_Decoding_Table *db, CHISE_DS *ds, const char *ccs, DBTYPE real_subtype, u_int32_t accessmask, int modemask); @@ -65,7 +68,7 @@ int chise_dt_put_char (CHISE_Decoding_Table *db, typedef CHISE_Attribute_Table CHISE_Feature_Table; -int chise_open_feature_table (CHISE_Feature_Table **db, +int chise_open_feature_table (CHISE_Feature_Table *db, CHISE_DS *ds, const char *feature, DBTYPE real_subtype, u_int32_t accessmask, int modemask); @@ -87,7 +90,7 @@ int chise_get_feature (CHISE_DS *ds, CHISE_Char_ID cid, char *key, CHISE_Value *valdatum); -int chise_open_attribute_table (CHISE_Attribute_Table **db, +int chise_open_attribute_table (CHISE_Attribute_Table *db, const char *db_dir, const char *encoding, const char *feature, DBTYPE real_subtype,