1 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
3 * cos.c: Include "cos-print.h".
4 (concord_current_env): New variable.
5 (concord_open_env): Setup `concord_current_env'.
6 (concord_object_get_feature_value): New function.
8 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
11 - Don't include <stdlib.h>.
13 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
14 (cos_utf8_print_char): New function.
16 * cos-print.h: Include stdlib.h and cos.h.
17 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
18 (cos_utf8_print_char): New prototype.
20 * concord.h (concord_object_get_feature_value): New prototype.
22 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
26 * cos-print.h: New file.
28 * Makefile.in (OBJS): Add print.lo.
29 (print.lo): New target.
31 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
33 * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
34 (concord_open_ds): Delete code to initialize `ds->symbol_names'.
35 (concord_close_ds): Delete code to destroy `ds->symbol_names'.
37 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
39 * cos-read.h: New file.
49 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
52 - Move code to include "config.h" into sysdep.h.
54 (concord_close_genre): Move prototype into cos-i.h.
55 (concord_close_feature): Likewise.
56 (concord_close_index): Likewise.
57 (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
58 moved to cos-i.h; add new member `reference_count'.
59 (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
60 moved to cos-i.h; use `enum COS_Object_Type'.
61 (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
62 `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
64 (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
65 to cos-i.h; use `enum COS_Object_Type'.
66 (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
67 to cos-i.h; use `enum COS_Object_Type'.
68 (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
69 moved to cos-i.h; use `enum COS_Object_Type'.
70 (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
71 `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
73 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
74 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
76 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
77 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
79 (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
80 member `symbol_names'.
81 (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
83 (concord_close_ds): Destroy `ds->symbol_names'.
84 (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
85 (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
86 (struct CONCORD_Feature_Table): Renamed to `struct
88 (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
89 (struct CONCORD_INDEX_Table): Renamed to `struct
90 COS_Feature_INDEX_ent'.
91 (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
92 (concord_index_get_name): New function.
93 (concord_index_get_genre): New function.
95 * concord.h: Include <cos.h>.
96 (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
97 (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
99 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
101 (concord_open_env): New prototype.
102 (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
103 (COS_Genre): New type.
104 (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
106 (concord_get_genre): New prototype.
107 (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
108 (COS_Feature): New type.
109 (CONCORD_Feature): Use `COS_Feature' instead of
110 `CONCORD_Feature_Table*' as the type.
111 (concord_get_feature): New prototype.
112 (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
113 (COS_Feature_INDEX): New type.
114 (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
115 `CONCORD_INDEX_Table*' as the type.
116 (concord_get_feature_index): New prototype.
117 (concord_index_get_name): New prototype.
118 (concord_index_get_genre): New prototype.
119 (concord_decode_object): New prototype.
121 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
123 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
127 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
129 * Makefile.in (localstatedir): New variable.
130 (CONCORD_DB_PREFIX): New variable.
131 (CONCORD_DB_FORMAT_VERSION): New variable.
132 (CONCORD_DB_DIR): New variable.
133 (CONCORD_SI_DB_DIR): New variable.
134 (CONCORD_CFLAGS): New variable.
135 (HEADERS): Add cos.h.
136 (OBJS): Add cos.lo, symbol.lo and read.lo.
137 (cos.lo): New target.
138 (symbol.lo): New target.
139 (read.lo): New target.
140 (concord.lo): Depend on cos-i.h and cos.h.
142 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
144 * name.c (concord_hash_c_string): Use `unsigned long' instead of
145 int' as the type of return value.
147 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
149 * config.h.in (SIZEOF_INT): New macro.
150 (SIZEOF_LONG): New macro.
151 (SIZEOF_LONG_LONG): New macro.
152 (SIZEOF_VOID_P): New macro.
153 (BITS_PER_CHAR): New macro.
155 * configure.in: Add `AC_CHECK_SIZEOF(int)',
156 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
157 `AC_CHECK_SIZEOF(void *)'.
159 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
161 * Makefile.in (ABI_VERSION): Update to 1:0:1.
163 * concord.c (struct CONCORD_Object_Header): New structure.
164 (CONCORD_OBJECT_TYPE_NULL): New macro.
165 (CONCORD_OBJECT_TYPE_C_STRING): New macro.
166 (CONCORD_OBJECT_TYPE_INT): New macro.
167 (CONCORD_OBJECT_TYPE_DS): New macro.
168 (CONCORD_OBJECT_TYPE_GENRE): New macro.
169 (CONCORD_OBJECT_TYPE_FEATURE): New macro.
170 (CONCORD_OBJECT_TYPE_INDEX): New macro.
171 (CONCORD_OBJECT_TYPE_OBJECT): New macro.
172 (struct CONCORD_DS_Table): Add new member `header'.
173 (concord_open_ds): Setup ds->header.
174 (struct CONCORD_Genre_Table): Add new member `header'.
175 (concord_ds_open_genre): Setup ds->header.
176 (struct CONCORD_Feature_Table): Add new member `header'.
177 (concord_genre_open_feature): Setup ds->header.
178 (struct CONCORD_INDEX_Table): Add new member `header'.
179 (concord_genre_open_index): Setup ds->header.
181 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
183 * configure.in: Support db5 in Fink.
185 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
187 * README.en (Reporting Bugs): Modify for
188 chise-{en|ja}@lists.chise.org.
190 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
192 * README.en: Remove descriptions about CVS and add description
193 about the new Git repository.
195 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
198 - Don't use "AC_CHECK_FUNCS(strnlen)".
199 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
201 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
203 * Makefile.in (CFLAGS): Add $(DEFS).
206 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
208 * Concord 0.0.2 released.
210 * configure.in: Update version to 0.0.2.
212 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
214 * configure.in: Add settings for --with-site-includes=PATH and
215 --with-site-libraries=PATH.
218 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
220 * Concord 0.0.1 released.
222 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
224 * Makefile.in (MKDIR): New variable.
225 (install.h): Make $(INCLUDE_INSTALLDIR).
226 (install.libs): Make $(LIB_INSTALLDIR).
228 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
230 * configure.in: Update version to 0.0.1.
232 * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
233 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
234 (concord.lo): Specify `--mode=compile'.
235 (concord-bdb.lo): ditto.
237 (install.libs): Specify `--mode=install'.
240 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
242 * Concord 0.0.0 released.
244 * Makefile.in (tar): Fixed.
246 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
248 * concord.c (concord_ds_open_genre): Use <char*> instead of
249 <unsigned char*> for genre-name.
250 (concord_genre_open_feature): Likewise.
251 (concord_genre_open_index): Use <char*> instead of <unsigned
252 char*> for index-name.
253 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
254 char*> for feature-name.
255 (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
256 for member `location'.
257 (concord_default_read_object): Cast to avoid warning.
258 (concord_open_ds): Use <char*> instead of <unsigned char*> for
260 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
261 char*> for ds->location; cast to avoid warning.
262 (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
263 char*> for member `name'.
264 (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
266 (concord_genre_foreach_feature_name): Use <char*> instead of
267 <unsigned char*> for ds->location.
268 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
269 char*> for genre-name.
270 (concord_genre_get_feature): Use <char*> instead of <unsigned
272 (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
273 char*> for member `name'.
274 (concord_genre_open_feature): Use <char*> instead of <unsigned
275 char*> for feature-name.
276 (concord_obj_gets_feature_value): Cast to avoid warning.
277 (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
278 char*> for member `name'.
279 (concord_genre_open_index): Use <char*> instead of <unsigned
280 char*> for index-name.
281 (concord_index_strid_put_obj): Cast to avoid warning.
283 * name.c, concord-name.h (concord_name_table_put): Use <char*>
284 instead of <unsigned char*> for key.
285 (concord_name_table_get): Likewise.
287 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
289 * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
290 instead of <unsigned char*> for db_dir, genre, key_type and name.
291 (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
293 (CONCORD_BDB_put): Likewise.
295 * concord.c, concord.h (concord_open_ds): Use <char*> instead of
296 <unsigned char*> for location.
297 (concord_ds_location): Likewise.
298 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
299 char*> for genre-name.
300 (concord_ds_get_genre): Likewise.
301 (concord_genre_get_name): Likewise.
302 (concord_genre_foreach_feature_name): Likewise.
303 (concord_genre_get_feature): Use <char*> instead of <unsigned
304 char*> for feature-name.
305 (concord_feature_get_name): Likewise.
306 (concord_obj_put_feature_value_str): Use <char*> instead of
307 <unsigned char*> for object-id.
308 (concord_obj_get_feature_value): Likewise.
309 (concord_obj_get_feature_value_string): Likewise.
310 (concord_obj_gets_feature_value): Likewise.
311 (concord_genre_get_index): Use <char*> instead of <unsigned char*>
313 (concord_index_strid_put_obj): Use <char*> instead of <unsigned
314 char*> for indexer and object-id.
315 (concord_index_strid_get_obj_string): Use <char*> instead of
316 <unsigned char*> for indexer.
318 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
320 * README.en: New file.
322 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
324 * concord.h (concord_genre_get_name): New prototype.
325 (concord_feature_get_genre): New prototype.
327 * concord.c (concord_genre_get_name): New function.
328 (concord_feature_get_genre): New function.
330 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
332 * concord.c (concord_ds_set_object_failure): Renamed from
333 `concord_ds_set_object_nil'.
334 (concord_genre_get_feature_0): New function.
335 (concord_genre_get_feature): New implementation; use
336 `concord_genre_get_feature_0'; support feature alias.
338 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
340 * concord.h (concord_ds_set_object_failure): Renamed from
341 `concord_ds_set_object_nil'.
343 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
345 * concord.c, concord.h (concord_obj_put_feature_value_str):
346 Renamed from `concord_stroid_set_feature_str'.
347 (concord_obj_get_feature_value): Renamed from
348 `concord_stroid_get_feature_object'.
349 (concord_obj_get_feature_value_string): Renamed from
350 `concord_stroid_get_feature_string'.
351 (concord_obj_gets_feature_value): Renamed from
352 `concord_stroid_gets_feature'.
353 (concord_feature_foreach_obj_string): Renamed from
354 `concord_feature_foreach_object_string'.
355 (concord_index_strid_get_obj_string): Renamed from
356 `concord_index_strid_get_object_string'.
357 (concord_index_strid_put_obj): Renamed from
358 `concord_index_strid_set_object_str'.
360 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
362 * concord.c, concord.h (concord_close_ds): Renamed from
365 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
367 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
369 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
371 * Makefile.in: New file.
373 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
375 * sysdep.h: New file.
377 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
379 * aclocal.m4, concord-name.h, config.h.in, configure.in,
380 config.guess, config.sub, install-sh, ltmain.sh, name.c: New