1 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
3 * name.c (concord_name_table_grow): Release old `table->data'.
5 * cos.h: Include <stdlib.h>.
6 (cos_Qnil): New variable.
7 (cos_Qt): New variable.
8 (cos_print_object): New prototype.
10 * symbol.c (cos_string_ent_nil): New variable.
11 (cos_symbol_ent_nil): New variable.
12 (cos_Qnil): New variable.
13 (cos_string_ent_t): New variable.
14 (cos_symbol_ent_t): New variable.
15 (cos_Qt): New variable.
16 (cos_intern): Setup `nil' and `t'.
17 (cos_symbol_table_grow): Release old `table->data'.
19 * print.c (cos_print_object): New function.
21 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
23 * cos.c (COS_Object_release_function_table): Add
25 (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
27 (cos_release_object): Likewise.
28 (cos_cons): New function.
29 (cos_release_cons): New function.
30 (cos_car): New function.
31 (cos_cdr): New function.
33 * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
34 (COS_OBJECT_CONS_P): New macro.
35 (struct COS_Cons_ent): New structure.
38 (cos_release_cons): New prototype.
40 * cos.h (struct COS_Cons_ent): New structure.
42 (cos_cons): New prototype.
43 (cos_car): New prototype.
44 (cos_cdr): New prototype.
46 2013-04-15 MORIOKA Tomohiko <tomo.git@chise.org>
48 * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
51 * read.c: Include <ctype.h>.
52 (cos_read_int): New function.
54 * cos-read.h (cos_read_int): New prototype.
56 2013-04-14 MORIOKA Tomohiko <tomo.git@chise.org>
58 * cos.c (cos_string_p): New function.
59 (concord_object_get_feature_value): Use `cos_read_char' and
60 `cos_read_string' to parse character and string.
62 * read.c (cos_read_string): New function.
64 * cos.h (cos_string_p): New prototype.
66 * cos-read.h: Include "cos.h".
67 (cos_read_string): New prototype.
69 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
71 * cos.c: Include "cos-print.h".
72 (concord_current_env): New variable.
73 (concord_open_env): Setup `concord_current_env'.
74 (concord_object_get_feature_value): New function.
76 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
79 - Don't include <stdlib.h>.
81 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
82 (cos_utf8_print_char): New function.
84 * cos-print.h: Include stdlib.h and cos.h.
85 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
86 (cos_utf8_print_char): New prototype.
88 * concord.h (concord_object_get_feature_value): New prototype.
90 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
94 * cos-print.h: New file.
96 * Makefile.in (OBJS): Add print.lo.
97 (print.lo): New target.
99 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
101 * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
102 (concord_open_ds): Delete code to initialize `ds->symbol_names'.
103 (concord_close_ds): Delete code to destroy `ds->symbol_names'.
105 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
107 * cos-read.h: New file.
111 * symbol.c: New file.
117 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
120 - Move code to include "config.h" into sysdep.h.
122 (concord_close_genre): Move prototype into cos-i.h.
123 (concord_close_feature): Likewise.
124 (concord_close_index): Likewise.
125 (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
126 moved to cos-i.h; add new member `reference_count'.
127 (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
128 moved to cos-i.h; use `enum COS_Object_Type'.
129 (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
130 `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
132 (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
133 to cos-i.h; use `enum COS_Object_Type'.
134 (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
135 to cos-i.h; use `enum COS_Object_Type'.
136 (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
137 moved to cos-i.h; use `enum COS_Object_Type'.
138 (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
139 `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
141 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
142 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
144 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
145 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
147 (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
148 member `symbol_names'.
149 (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
151 (concord_close_ds): Destroy `ds->symbol_names'.
152 (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
153 (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
154 (struct CONCORD_Feature_Table): Renamed to `struct
156 (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
157 (struct CONCORD_INDEX_Table): Renamed to `struct
158 COS_Feature_INDEX_ent'.
159 (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
160 (concord_index_get_name): New function.
161 (concord_index_get_genre): New function.
163 * concord.h: Include <cos.h>.
164 (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
165 (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
167 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
169 (concord_open_env): New prototype.
170 (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
171 (COS_Genre): New type.
172 (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
174 (concord_get_genre): New prototype.
175 (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
176 (COS_Feature): New type.
177 (CONCORD_Feature): Use `COS_Feature' instead of
178 `CONCORD_Feature_Table*' as the type.
179 (concord_get_feature): New prototype.
180 (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
181 (COS_Feature_INDEX): New type.
182 (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
183 `CONCORD_INDEX_Table*' as the type.
184 (concord_get_feature_index): New prototype.
185 (concord_index_get_name): New prototype.
186 (concord_index_get_genre): New prototype.
187 (concord_decode_object): New prototype.
189 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
191 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
195 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
197 * Makefile.in (localstatedir): New variable.
198 (CONCORD_DB_PREFIX): New variable.
199 (CONCORD_DB_FORMAT_VERSION): New variable.
200 (CONCORD_DB_DIR): New variable.
201 (CONCORD_SI_DB_DIR): New variable.
202 (CONCORD_CFLAGS): New variable.
203 (HEADERS): Add cos.h.
204 (OBJS): Add cos.lo, symbol.lo and read.lo.
205 (cos.lo): New target.
206 (symbol.lo): New target.
207 (read.lo): New target.
208 (concord.lo): Depend on cos-i.h and cos.h.
210 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
212 * name.c (concord_hash_c_string): Use `unsigned long' instead of
213 int' as the type of return value.
215 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
217 * config.h.in (SIZEOF_INT): New macro.
218 (SIZEOF_LONG): New macro.
219 (SIZEOF_LONG_LONG): New macro.
220 (SIZEOF_VOID_P): New macro.
221 (BITS_PER_CHAR): New macro.
223 * configure.in: Add `AC_CHECK_SIZEOF(int)',
224 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
225 `AC_CHECK_SIZEOF(void *)'.
227 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
229 * Makefile.in (ABI_VERSION): Update to 1:0:1.
231 * concord.c (struct CONCORD_Object_Header): New structure.
232 (CONCORD_OBJECT_TYPE_NULL): New macro.
233 (CONCORD_OBJECT_TYPE_C_STRING): New macro.
234 (CONCORD_OBJECT_TYPE_INT): New macro.
235 (CONCORD_OBJECT_TYPE_DS): New macro.
236 (CONCORD_OBJECT_TYPE_GENRE): New macro.
237 (CONCORD_OBJECT_TYPE_FEATURE): New macro.
238 (CONCORD_OBJECT_TYPE_INDEX): New macro.
239 (CONCORD_OBJECT_TYPE_OBJECT): New macro.
240 (struct CONCORD_DS_Table): Add new member `header'.
241 (concord_open_ds): Setup ds->header.
242 (struct CONCORD_Genre_Table): Add new member `header'.
243 (concord_ds_open_genre): Setup ds->header.
244 (struct CONCORD_Feature_Table): Add new member `header'.
245 (concord_genre_open_feature): Setup ds->header.
246 (struct CONCORD_INDEX_Table): Add new member `header'.
247 (concord_genre_open_index): Setup ds->header.
249 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
251 * configure.in: Support db5 in Fink.
253 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
255 * README.en (Reporting Bugs): Modify for
256 chise-{en|ja}@lists.chise.org.
258 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
260 * README.en: Remove descriptions about CVS and add description
261 about the new Git repository.
263 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
266 - Don't use "AC_CHECK_FUNCS(strnlen)".
267 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
269 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
271 * Makefile.in (CFLAGS): Add $(DEFS).
274 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
276 * Concord 0.0.2 released.
278 * configure.in: Update version to 0.0.2.
280 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
282 * configure.in: Add settings for --with-site-includes=PATH and
283 --with-site-libraries=PATH.
286 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
288 * Concord 0.0.1 released.
290 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
292 * Makefile.in (MKDIR): New variable.
293 (install.h): Make $(INCLUDE_INSTALLDIR).
294 (install.libs): Make $(LIB_INSTALLDIR).
296 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
298 * configure.in: Update version to 0.0.1.
300 * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
301 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
302 (concord.lo): Specify `--mode=compile'.
303 (concord-bdb.lo): ditto.
305 (install.libs): Specify `--mode=install'.
308 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
310 * Concord 0.0.0 released.
312 * Makefile.in (tar): Fixed.
314 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
316 * concord.c (concord_ds_open_genre): Use <char*> instead of
317 <unsigned char*> for genre-name.
318 (concord_genre_open_feature): Likewise.
319 (concord_genre_open_index): Use <char*> instead of <unsigned
320 char*> for index-name.
321 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
322 char*> for feature-name.
323 (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
324 for member `location'.
325 (concord_default_read_object): Cast to avoid warning.
326 (concord_open_ds): Use <char*> instead of <unsigned char*> for
328 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
329 char*> for ds->location; cast to avoid warning.
330 (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
331 char*> for member `name'.
332 (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
334 (concord_genre_foreach_feature_name): Use <char*> instead of
335 <unsigned char*> for ds->location.
336 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
337 char*> for genre-name.
338 (concord_genre_get_feature): Use <char*> instead of <unsigned
340 (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
341 char*> for member `name'.
342 (concord_genre_open_feature): Use <char*> instead of <unsigned
343 char*> for feature-name.
344 (concord_obj_gets_feature_value): Cast to avoid warning.
345 (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
346 char*> for member `name'.
347 (concord_genre_open_index): Use <char*> instead of <unsigned
348 char*> for index-name.
349 (concord_index_strid_put_obj): Cast to avoid warning.
351 * name.c, concord-name.h (concord_name_table_put): Use <char*>
352 instead of <unsigned char*> for key.
353 (concord_name_table_get): Likewise.
355 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
357 * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
358 instead of <unsigned char*> for db_dir, genre, key_type and name.
359 (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
361 (CONCORD_BDB_put): Likewise.
363 * concord.c, concord.h (concord_open_ds): Use <char*> instead of
364 <unsigned char*> for location.
365 (concord_ds_location): Likewise.
366 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
367 char*> for genre-name.
368 (concord_ds_get_genre): Likewise.
369 (concord_genre_get_name): Likewise.
370 (concord_genre_foreach_feature_name): Likewise.
371 (concord_genre_get_feature): Use <char*> instead of <unsigned
372 char*> for feature-name.
373 (concord_feature_get_name): Likewise.
374 (concord_obj_put_feature_value_str): Use <char*> instead of
375 <unsigned char*> for object-id.
376 (concord_obj_get_feature_value): Likewise.
377 (concord_obj_get_feature_value_string): Likewise.
378 (concord_obj_gets_feature_value): Likewise.
379 (concord_genre_get_index): Use <char*> instead of <unsigned char*>
381 (concord_index_strid_put_obj): Use <char*> instead of <unsigned
382 char*> for indexer and object-id.
383 (concord_index_strid_get_obj_string): Use <char*> instead of
384 <unsigned char*> for indexer.
386 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
388 * README.en: New file.
390 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
392 * concord.h (concord_genre_get_name): New prototype.
393 (concord_feature_get_genre): New prototype.
395 * concord.c (concord_genre_get_name): New function.
396 (concord_feature_get_genre): New function.
398 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
400 * concord.c (concord_ds_set_object_failure): Renamed from
401 `concord_ds_set_object_nil'.
402 (concord_genre_get_feature_0): New function.
403 (concord_genre_get_feature): New implementation; use
404 `concord_genre_get_feature_0'; support feature alias.
406 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
408 * concord.h (concord_ds_set_object_failure): Renamed from
409 `concord_ds_set_object_nil'.
411 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
413 * concord.c, concord.h (concord_obj_put_feature_value_str):
414 Renamed from `concord_stroid_set_feature_str'.
415 (concord_obj_get_feature_value): Renamed from
416 `concord_stroid_get_feature_object'.
417 (concord_obj_get_feature_value_string): Renamed from
418 `concord_stroid_get_feature_string'.
419 (concord_obj_gets_feature_value): Renamed from
420 `concord_stroid_gets_feature'.
421 (concord_feature_foreach_obj_string): Renamed from
422 `concord_feature_foreach_object_string'.
423 (concord_index_strid_get_obj_string): Renamed from
424 `concord_index_strid_get_object_string'.
425 (concord_index_strid_put_obj): Renamed from
426 `concord_index_strid_set_object_str'.
428 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
430 * concord.c, concord.h (concord_close_ds): Renamed from
433 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
435 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
437 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
439 * Makefile.in: New file.
441 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
443 * sysdep.h: New file.
445 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
447 * aclocal.m4, concord-name.h, config.h.in, configure.in,
448 config.guess, config.sub, install-sh, ltmain.sh, name.c: New