From: MORIOKA Tomohiko Date: Mon, 1 Apr 2013 05:58:11 +0000 (+0900) Subject: update. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e4d8272df7f3bb85cb3d738f013bcb9c9ed36b6;p=chise%2Fconcord.git update. --- diff --git a/ChangeLog b/ChangeLog index d21d6b8..4b6f3f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,123 @@ +2013-03-30 MORIOKA Tomohiko + + * cos.h: New file. + + * symbol.c: New file. + + * cos-i.h: New file. + + * cos.c: New file. + + * concord-bdb.c: Move code to include "config.h" into sysdep.h. + + * concord.c: + - Move code to include "config.h" into sysdep.h. + - Include "cos-i.h". + (concord_close_genre): Move prototype into cos-i.h. + (concord_close_feature): Likewise. + (concord_close_index): Likewise. + (struct CONCORD_Object_Header): Renamed to `COS_Object_Header'; + moved to cos-i.h; add new member `reference_count'. + (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL'; + moved to cos-i.h; use `enum COS_Object_Type'. + (CONCORD_OBJECT_TYPE_C_STRING): Renamed to + `COS_Object_Type_C_String'; moved to cos-i.h; use `enum + COS_Object_Type'. + (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved + to cos-i.h; use `enum COS_Object_Type'. + (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved + to cos-i.h; use `enum COS_Object_Type'. + (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre'; + moved to cos-i.h; use `enum COS_Object_Type'. + (CONCORD_OBJECT_TYPE_FEATURE): Renamed to + `COS_Object_Type_Feature'; moved to cos-i.h; use `enum + COS_Object_Type'. + (CONCORD_OBJECT_TYPE_INDEX): Renamed to + `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum + COS_Object_Type'. + (CONCORD_OBJECT_TYPE_OBJECT): Renamed to + `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum + COS_Object_Type'. + (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new + member `symbol_names'. + (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize + `ds->symbol_names'. + (concord_close_ds): Destroy `ds->symbol_names'. + (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'. + (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'. + (struct CONCORD_Feature_Table): Renamed to `struct + COS_Feature_ent'. + (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'. + (struct CONCORD_INDEX_Table): Renamed to `struct + COS_Feature_INDEX_ent'. + (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'. + (concord_index_get_name): New function. + (concord_index_get_genre): New function. + + * concord.h: Include . + (CONCORD_Object): Use `COS_Object' instead of `void*' as the type. + (COS_DS_ent): Renamed from `CONCORD_DS_Table'. + (COS_DS): New type. + (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the + type. + (concord_open_env): New prototype. + (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'. + (COS_Genre): New type. + (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*' + as the type. + (concord_get_genre): New prototype. + (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'. + (COS_Feature): New type. + (CONCORD_Feature): Use `COS_Feature' instead of + `CONCORD_Feature_Table*' as the type. + (concord_get_feature): New prototype. + (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'. + (COS_Feature_INDEX): New type. + (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of + `CONCORD_INDEX_Table*' as the type. + (concord_get_feature_index): New prototype. + (concord_index_get_name): New prototype. + (concord_index_get_genre): New prototype. + (concord_decode_object): New prototype. + + * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined. + +2013-03-30 MORIOKA Tomohiko + + * read.c: New file. + +2013-03-29 MORIOKA Tomohiko + + * Makefile.in (localstatedir): New variable. + (CONCORD_DB_PREFIX): New variable. + (CONCORD_DB_FORMAT_VERSION): New variable. + (CONCORD_DB_DIR): New variable. + (CONCORD_SI_DB_DIR): New variable. + (CONCORD_CFLAGS): New variable. + (HEADERS): Add cos.h. + (OBJS): Add cos.lo, symbol.lo and read.lo. + (cos.lo): New target. + (symbol.lo): New target. + (read.lo): New target. + (concord.lo): Depend on cos-i.h and cos.h. + +2013-03-22 MORIOKA Tomohiko + + * name.c (concord_hash_c_string): Use `unsigned long' instead of + int' as the type of return value. + +2013-03-21 MORIOKA Tomohiko + + * config.h.in (SIZEOF_INT): New macro. + (SIZEOF_LONG): New macro. + (SIZEOF_LONG_LONG): New macro. + (SIZEOF_VOID_P): New macro. + (BITS_PER_CHAR): New macro. + + * configure.in: Add `AC_CHECK_SIZEOF(int)', + `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and + `AC_CHECK_SIZEOF(void *)'. + 2011-10-31 MORIOKA Tomohiko * Makefile.in (ABI_VERSION): Update to 1:0:1.