From eab0f905f2cc6f6332850cb395aa7be82911721e Mon Sep 17 00:00:00 2001 From: tomo Date: Tue, 12 Aug 2003 17:10:41 +0000 Subject: [PATCH] (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. --- chise.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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, -- 1.7.10.4