1 2013-04-22 MORIOKA Tomohiko <tomo.git@chise.org>
3 * Makefile.in (ABI_VERSION): Update to 2:0:1.
5 * configure.in: Update version to 0.9.0; change mail-address to
6 chise-en@lists.chise.org.
8 2013-04-22 MORIOKA Tomohiko <tomo.git@chise.org>
10 * Makefile.in (CONCORD_DB_FORMAT_VERSION): Changed to 1.0.
12 2013-04-21 MORIOKA Tomohiko <tomo.git@chise.org>
14 * concord.h (concord_ds_p): New prototype.
16 * cos.c (concord_ds_p): New function.
18 2013-04-21 MORIOKA Tomohiko <tomo.git@chise.org>
20 * cos.c (concord_object_get_feature_value): If
21 `concord_current_env' is not a valid CONCORD_DS object, set NULL.
23 * symbol.c (cos_release_symbol): Treat `composition' as a builtin
26 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
28 * cos.c (concord_decode_object): Delete printf to debug.
29 (concord_object_get_feature_value): Likewise.
31 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
33 * cos.h (cos_Qcomposition): New variable.
36 (COS_COMPOSITION): New macro.
38 * symbol.c (cos_string_ent_composition): New variable.
39 (cos_symbol_ent_composition): New variable.
40 (cos_Qcomposition): New variable.
41 (cos_intern): Setup `composition'.
43 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
45 * symbol.c (cos_release_symbol): Add check for builtin symbols.
47 2013-04-19 MORIOKA Tomohiko <tomo.git@chise.org>
49 * concord.h (CONCORD_Genre_Table): Revived as an alias of
52 2013-04-18 MORIOKA Tomohiko <tomo.git@chise.org>
54 * symbol.c (cos_retain_symbol): Don't use `cos_retain_object'
56 (cos_symbol_p): New function.
57 (cos_symbol_table_intern): Check type of each entry of the hash;
58 use `cos_retain_object' for the returned symbol.
59 (cos_print_symbol_table): New function.
61 * cos.c (cos_char_id): Fixed.
62 (cos_release_object): Fixed.
63 (cos_retain_cons): Don't use `cos_retain_object' recursively.
64 (cos_assoc): New function.
65 (cos_alist_get): New function.
67 2013-04-18 MORIOKA Tomohiko <tomo.git@chise.org>
69 * read.c (is_delimiter): New function.
70 (cos_read_int): Use `is_delimiter'.
71 (cos_read_string): Fixed.
72 (cos_read_symbol): New function.
73 (cos_read_object): Use `cos_read_symbol' to support symbol.
75 * cos.h (cos_symbol_p): New prototype.
76 (cos_assoc): New prototype.
77 (cos_alist_get): New prototype.
79 * cos-read.h (cos_read_symbol): New prototype.
81 2013-04-17 MORIOKA Tomohiko <tomo.git@chise.org>
83 * read.c (cos_skip_space): New function.
84 (cos_read_int): Fix to support separator.
85 (cos_read_list0): New function.
86 (cos_read_list): New function.
87 (cos_read_object): New function.
89 * print.c (cos_print_object): Fix duplicated `?' when printing a
92 * cos.h (cos_cons_p): New prototype.
94 * cos.c (cos_cons_p): New function.
95 (concord_object_get_feature_value): Use `cos_read_object'.
97 * cos-read.h (cos_read_list): New prototype.
98 (cos_read_object): New prototype.
100 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
102 * symbol.c (cos_make_symbol): Use `cos_retain_object' for
104 (cos_retain_symbol): New function.
106 * cos.c (COS_Object_retain_function_table): New variable.
107 (cos_retain_object): Call a retain-function in
108 `COS_Object_retain_function_table'.
109 (cos_retain_string): New function.
110 (cos_retain_cons): New function.
111 (cos_retain_container): New function.
112 (cos_retain_sexp): New function.
113 (cos_retain_binary): New function.
114 (cos_retain_ds): New function.
115 (cos_retain_genre): New function.
116 (cos_retain_feature): New function.
117 (cos_retain_index): New function.
118 (cos_retain_db_object): New function.
120 * cos-i.h (COS_Object_retain_function_table): New variable.
121 (cos_retain_string): New prototype.
122 (cos_retain_symbol): New prototype.
123 (cos_retain_cons): New prototype.
124 (cos_retain_container): New prototype.
125 (cos_retain_sexp): New prototype.
126 (cos_retain_binary): New prototype.
127 (cos_retain_ds): New prototype.
128 (cos_retain_genre): New prototype.
129 (cos_retain_feature): New prototype.
130 (cos_retain_index): New prototype.
131 (cos_retain_db_object): New prototype.
133 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
135 * Makefile.in (symbol-test): New target.
137 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
139 * name.c (concord_name_table_grow): Release old `table->data'.
141 * cos.h: Include <stdlib.h>.
142 (cos_Qnil): New variable.
143 (cos_Qt): New variable.
144 (cos_print_object): New prototype.
146 * symbol.c (cos_string_ent_nil): New variable.
147 (cos_symbol_ent_nil): New variable.
148 (cos_Qnil): New variable.
149 (cos_string_ent_t): New variable.
150 (cos_symbol_ent_t): New variable.
151 (cos_Qt): New variable.
152 (cos_intern): Setup `nil' and `t'.
153 (cos_symbol_table_grow): Release old `table->data'.
155 * print.c (cos_print_object): New function.
157 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
159 * cos.c (COS_Object_release_function_table): Add
161 (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
163 (cos_release_object): Likewise.
164 (cos_cons): New function.
165 (cos_release_cons): New function.
166 (cos_car): New function.
167 (cos_cdr): New function.
169 * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
170 (COS_OBJECT_CONS_P): New macro.
171 (struct COS_Cons_ent): New structure.
172 (COS_CAR): New macro.
173 (COS_CDR): New macro.
174 (cos_release_cons): New prototype.
176 * cos.h (struct COS_Cons_ent): New structure.
177 (COS_Cons): New type.
178 (cos_cons): New prototype.
179 (cos_car): New prototype.
180 (cos_cdr): New prototype.
182 2013-04-15 MORIOKA Tomohiko <tomo.git@chise.org>
184 * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
187 * read.c: Include <ctype.h>.
188 (cos_read_int): New function.
190 * cos-read.h (cos_read_int): New prototype.
192 2013-04-14 MORIOKA Tomohiko <tomo.git@chise.org>
194 * cos.c (cos_string_p): New function.
195 (concord_object_get_feature_value): Use `cos_read_char' and
196 `cos_read_string' to parse character and string.
198 * read.c (cos_read_string): New function.
200 * cos.h (cos_string_p): New prototype.
202 * cos-read.h: Include "cos.h".
203 (cos_read_string): New prototype.
205 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
207 * cos.c: Include "cos-print.h".
208 (concord_current_env): New variable.
209 (concord_open_env): Setup `concord_current_env'.
210 (concord_object_get_feature_value): New function.
212 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
215 - Don't include <stdlib.h>.
217 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
218 (cos_utf8_print_char): New function.
220 * cos-print.h: Include stdlib.h and cos.h.
221 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
222 (cos_utf8_print_char): New prototype.
224 * concord.h (concord_object_get_feature_value): New prototype.
226 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
230 * cos-print.h: New file.
232 * Makefile.in (OBJS): Add print.lo.
233 (print.lo): New target.
235 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
237 * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
238 (concord_open_ds): Delete code to initialize `ds->symbol_names'.
239 (concord_close_ds): Delete code to destroy `ds->symbol_names'.
241 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
243 * cos-read.h: New file.
247 * symbol.c: New file.
253 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
256 - Move code to include "config.h" into sysdep.h.
258 (concord_close_genre): Move prototype into cos-i.h.
259 (concord_close_feature): Likewise.
260 (concord_close_index): Likewise.
261 (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
262 moved to cos-i.h; add new member `reference_count'.
263 (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
264 moved to cos-i.h; use `enum COS_Object_Type'.
265 (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
266 `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
268 (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
269 to cos-i.h; use `enum COS_Object_Type'.
270 (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
271 to cos-i.h; use `enum COS_Object_Type'.
272 (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
273 moved to cos-i.h; use `enum COS_Object_Type'.
274 (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
275 `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
277 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
278 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
280 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
281 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
283 (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
284 member `symbol_names'.
285 (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
287 (concord_close_ds): Destroy `ds->symbol_names'.
288 (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
289 (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
290 (struct CONCORD_Feature_Table): Renamed to `struct
292 (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
293 (struct CONCORD_INDEX_Table): Renamed to `struct
294 COS_Feature_INDEX_ent'.
295 (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
296 (concord_index_get_name): New function.
297 (concord_index_get_genre): New function.
299 * concord.h: Include <cos.h>.
300 (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
301 (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
303 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
305 (concord_open_env): New prototype.
306 (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
307 (COS_Genre): New type.
308 (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
310 (concord_get_genre): New prototype.
311 (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
312 (COS_Feature): New type.
313 (CONCORD_Feature): Use `COS_Feature' instead of
314 `CONCORD_Feature_Table*' as the type.
315 (concord_get_feature): New prototype.
316 (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
317 (COS_Feature_INDEX): New type.
318 (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
319 `CONCORD_INDEX_Table*' as the type.
320 (concord_get_feature_index): New prototype.
321 (concord_index_get_name): New prototype.
322 (concord_index_get_genre): New prototype.
323 (concord_decode_object): New prototype.
325 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
327 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
331 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
333 * Makefile.in (localstatedir): New variable.
334 (CONCORD_DB_PREFIX): New variable.
335 (CONCORD_DB_FORMAT_VERSION): New variable.
336 (CONCORD_DB_DIR): New variable.
337 (CONCORD_SI_DB_DIR): New variable.
338 (CONCORD_CFLAGS): New variable.
339 (HEADERS): Add cos.h.
340 (OBJS): Add cos.lo, symbol.lo and read.lo.
341 (cos.lo): New target.
342 (symbol.lo): New target.
343 (read.lo): New target.
344 (concord.lo): Depend on cos-i.h and cos.h.
346 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
348 * name.c (concord_hash_c_string): Use `unsigned long' instead of
349 int' as the type of return value.
351 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
353 * config.h.in (SIZEOF_INT): New macro.
354 (SIZEOF_LONG): New macro.
355 (SIZEOF_LONG_LONG): New macro.
356 (SIZEOF_VOID_P): New macro.
357 (BITS_PER_CHAR): New macro.
359 * configure.in: Add `AC_CHECK_SIZEOF(int)',
360 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
361 `AC_CHECK_SIZEOF(void *)'.
363 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
365 * Makefile.in (ABI_VERSION): Update to 1:0:1.
367 * concord.c (struct CONCORD_Object_Header): New structure.
368 (CONCORD_OBJECT_TYPE_NULL): New macro.
369 (CONCORD_OBJECT_TYPE_C_STRING): New macro.
370 (CONCORD_OBJECT_TYPE_INT): New macro.
371 (CONCORD_OBJECT_TYPE_DS): New macro.
372 (CONCORD_OBJECT_TYPE_GENRE): New macro.
373 (CONCORD_OBJECT_TYPE_FEATURE): New macro.
374 (CONCORD_OBJECT_TYPE_INDEX): New macro.
375 (CONCORD_OBJECT_TYPE_OBJECT): New macro.
376 (struct CONCORD_DS_Table): Add new member `header'.
377 (concord_open_ds): Setup ds->header.
378 (struct CONCORD_Genre_Table): Add new member `header'.
379 (concord_ds_open_genre): Setup ds->header.
380 (struct CONCORD_Feature_Table): Add new member `header'.
381 (concord_genre_open_feature): Setup ds->header.
382 (struct CONCORD_INDEX_Table): Add new member `header'.
383 (concord_genre_open_index): Setup ds->header.
385 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
387 * configure.in: Support db5 in Fink.
389 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
391 * README.en (Reporting Bugs): Modify for
392 chise-{en|ja}@lists.chise.org.
394 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
396 * README.en: Remove descriptions about CVS and add description
397 about the new Git repository.
399 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
402 - Don't use "AC_CHECK_FUNCS(strnlen)".
403 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
405 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
407 * Makefile.in (CFLAGS): Add $(DEFS).
410 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
412 * Concord 0.0.2 released.
414 * configure.in: Update version to 0.0.2.
416 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
418 * configure.in: Add settings for --with-site-includes=PATH and
419 --with-site-libraries=PATH.
422 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
424 * Concord 0.0.1 released.
426 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
428 * Makefile.in (MKDIR): New variable.
429 (install.h): Make $(INCLUDE_INSTALLDIR).
430 (install.libs): Make $(LIB_INSTALLDIR).
432 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
434 * configure.in: Update version to 0.0.1.
436 * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
437 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
438 (concord.lo): Specify `--mode=compile'.
439 (concord-bdb.lo): ditto.
441 (install.libs): Specify `--mode=install'.
444 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
446 * Concord 0.0.0 released.
448 * Makefile.in (tar): Fixed.
450 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
452 * concord.c (concord_ds_open_genre): Use <char*> instead of
453 <unsigned char*> for genre-name.
454 (concord_genre_open_feature): Likewise.
455 (concord_genre_open_index): Use <char*> instead of <unsigned
456 char*> for index-name.
457 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
458 char*> for feature-name.
459 (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
460 for member `location'.
461 (concord_default_read_object): Cast to avoid warning.
462 (concord_open_ds): Use <char*> instead of <unsigned char*> for
464 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
465 char*> for ds->location; cast to avoid warning.
466 (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
467 char*> for member `name'.
468 (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
470 (concord_genre_foreach_feature_name): Use <char*> instead of
471 <unsigned char*> for ds->location.
472 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
473 char*> for genre-name.
474 (concord_genre_get_feature): Use <char*> instead of <unsigned
476 (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
477 char*> for member `name'.
478 (concord_genre_open_feature): Use <char*> instead of <unsigned
479 char*> for feature-name.
480 (concord_obj_gets_feature_value): Cast to avoid warning.
481 (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
482 char*> for member `name'.
483 (concord_genre_open_index): Use <char*> instead of <unsigned
484 char*> for index-name.
485 (concord_index_strid_put_obj): Cast to avoid warning.
487 * name.c, concord-name.h (concord_name_table_put): Use <char*>
488 instead of <unsigned char*> for key.
489 (concord_name_table_get): Likewise.
491 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
493 * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
494 instead of <unsigned char*> for db_dir, genre, key_type and name.
495 (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
497 (CONCORD_BDB_put): Likewise.
499 * concord.c, concord.h (concord_open_ds): Use <char*> instead of
500 <unsigned char*> for location.
501 (concord_ds_location): Likewise.
502 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
503 char*> for genre-name.
504 (concord_ds_get_genre): Likewise.
505 (concord_genre_get_name): Likewise.
506 (concord_genre_foreach_feature_name): Likewise.
507 (concord_genre_get_feature): Use <char*> instead of <unsigned
508 char*> for feature-name.
509 (concord_feature_get_name): Likewise.
510 (concord_obj_put_feature_value_str): Use <char*> instead of
511 <unsigned char*> for object-id.
512 (concord_obj_get_feature_value): Likewise.
513 (concord_obj_get_feature_value_string): Likewise.
514 (concord_obj_gets_feature_value): Likewise.
515 (concord_genre_get_index): Use <char*> instead of <unsigned char*>
517 (concord_index_strid_put_obj): Use <char*> instead of <unsigned
518 char*> for indexer and object-id.
519 (concord_index_strid_get_obj_string): Use <char*> instead of
520 <unsigned char*> for indexer.
522 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
524 * README.en: New file.
526 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
528 * concord.h (concord_genre_get_name): New prototype.
529 (concord_feature_get_genre): New prototype.
531 * concord.c (concord_genre_get_name): New function.
532 (concord_feature_get_genre): New function.
534 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
536 * concord.c (concord_ds_set_object_failure): Renamed from
537 `concord_ds_set_object_nil'.
538 (concord_genre_get_feature_0): New function.
539 (concord_genre_get_feature): New implementation; use
540 `concord_genre_get_feature_0'; support feature alias.
542 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
544 * concord.h (concord_ds_set_object_failure): Renamed from
545 `concord_ds_set_object_nil'.
547 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
549 * concord.c, concord.h (concord_obj_put_feature_value_str):
550 Renamed from `concord_stroid_set_feature_str'.
551 (concord_obj_get_feature_value): Renamed from
552 `concord_stroid_get_feature_object'.
553 (concord_obj_get_feature_value_string): Renamed from
554 `concord_stroid_get_feature_string'.
555 (concord_obj_gets_feature_value): Renamed from
556 `concord_stroid_gets_feature'.
557 (concord_feature_foreach_obj_string): Renamed from
558 `concord_feature_foreach_object_string'.
559 (concord_index_strid_get_obj_string): Renamed from
560 `concord_index_strid_get_object_string'.
561 (concord_index_strid_put_obj): Renamed from
562 `concord_index_strid_set_object_str'.
564 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
566 * concord.c, concord.h (concord_close_ds): Renamed from
569 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
571 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
573 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
575 * Makefile.in: New file.
577 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
579 * sysdep.h: New file.
581 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
583 * aclocal.m4, concord-name.h, config.h.in, configure.in,
584 config.guess, config.sub, install-sh, ltmain.sh, name.c: New