1 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
3 * cos.c (concord_decode_object): Delete printf to debug.
4 (concord_object_get_feature_value): Likewise.
6 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
8 * cos.h (cos_Qcomposition): New variable.
11 (COS_COMPOSITION): New macro.
13 * symbol.c (cos_string_ent_composition): New variable.
14 (cos_symbol_ent_composition): New variable.
15 (cos_Qcomposition): New variable.
16 (cos_intern): Setup `composition'.
18 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
20 * symbol.c (cos_release_symbol): Add check for builtin symbols.
22 2013-04-19 MORIOKA Tomohiko <tomo.git@chise.org>
24 * concord.h (CONCORD_Genre_Table): Revived as an alias of
27 2013-04-18 MORIOKA Tomohiko <tomo.git@chise.org>
29 * symbol.c (cos_retain_symbol): Don't use `cos_retain_object'
31 (cos_symbol_p): New function.
32 (cos_symbol_table_intern): Check type of each entry of the hash;
33 use `cos_retain_object' for the returned symbol.
34 (cos_print_symbol_table): New function.
36 * cos.c (cos_char_id): Fixed.
37 (cos_release_object): Fixed.
38 (cos_retain_cons): Don't use `cos_retain_object' recursively.
39 (cos_assoc): New function.
40 (cos_alist_get): New function.
42 2013-04-18 MORIOKA Tomohiko <tomo.git@chise.org>
44 * read.c (is_delimiter): New function.
45 (cos_read_int): Use `is_delimiter'.
46 (cos_read_string): Fixed.
47 (cos_read_symbol): New function.
48 (cos_read_object): Use `cos_read_symbol' to support symbol.
50 * cos.h (cos_symbol_p): New prototype.
51 (cos_assoc): New prototype.
52 (cos_alist_get): New prototype.
54 * cos-read.h (cos_read_symbol): New prototype.
56 2013-04-17 MORIOKA Tomohiko <tomo.git@chise.org>
58 * read.c (cos_skip_space): New function.
59 (cos_read_int): Fix to support separator.
60 (cos_read_list0): New function.
61 (cos_read_list): New function.
62 (cos_read_object): New function.
64 * print.c (cos_print_object): Fix duplicated `?' when printing a
67 * cos.h (cos_cons_p): New prototype.
69 * cos.c (cos_cons_p): New function.
70 (concord_object_get_feature_value): Use `cos_read_object'.
72 * cos-read.h (cos_read_list): New prototype.
73 (cos_read_object): New prototype.
75 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
77 * symbol.c (cos_make_symbol): Use `cos_retain_object' for
79 (cos_retain_symbol): New function.
81 * cos.c (COS_Object_retain_function_table): New variable.
82 (cos_retain_object): Call a retain-function in
83 `COS_Object_retain_function_table'.
84 (cos_retain_string): New function.
85 (cos_retain_cons): New function.
86 (cos_retain_container): New function.
87 (cos_retain_sexp): New function.
88 (cos_retain_binary): New function.
89 (cos_retain_ds): New function.
90 (cos_retain_genre): New function.
91 (cos_retain_feature): New function.
92 (cos_retain_index): New function.
93 (cos_retain_db_object): New function.
95 * cos-i.h (COS_Object_retain_function_table): New variable.
96 (cos_retain_string): New prototype.
97 (cos_retain_symbol): New prototype.
98 (cos_retain_cons): New prototype.
99 (cos_retain_container): New prototype.
100 (cos_retain_sexp): New prototype.
101 (cos_retain_binary): New prototype.
102 (cos_retain_ds): New prototype.
103 (cos_retain_genre): New prototype.
104 (cos_retain_feature): New prototype.
105 (cos_retain_index): New prototype.
106 (cos_retain_db_object): New prototype.
108 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
110 * Makefile.in (symbol-test): New target.
112 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
114 * name.c (concord_name_table_grow): Release old `table->data'.
116 * cos.h: Include <stdlib.h>.
117 (cos_Qnil): New variable.
118 (cos_Qt): New variable.
119 (cos_print_object): New prototype.
121 * symbol.c (cos_string_ent_nil): New variable.
122 (cos_symbol_ent_nil): New variable.
123 (cos_Qnil): New variable.
124 (cos_string_ent_t): New variable.
125 (cos_symbol_ent_t): New variable.
126 (cos_Qt): New variable.
127 (cos_intern): Setup `nil' and `t'.
128 (cos_symbol_table_grow): Release old `table->data'.
130 * print.c (cos_print_object): New function.
132 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
134 * cos.c (COS_Object_release_function_table): Add
136 (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
138 (cos_release_object): Likewise.
139 (cos_cons): New function.
140 (cos_release_cons): New function.
141 (cos_car): New function.
142 (cos_cdr): New function.
144 * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
145 (COS_OBJECT_CONS_P): New macro.
146 (struct COS_Cons_ent): New structure.
147 (COS_CAR): New macro.
148 (COS_CDR): New macro.
149 (cos_release_cons): New prototype.
151 * cos.h (struct COS_Cons_ent): New structure.
152 (COS_Cons): New type.
153 (cos_cons): New prototype.
154 (cos_car): New prototype.
155 (cos_cdr): New prototype.
157 2013-04-15 MORIOKA Tomohiko <tomo.git@chise.org>
159 * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
162 * read.c: Include <ctype.h>.
163 (cos_read_int): New function.
165 * cos-read.h (cos_read_int): New prototype.
167 2013-04-14 MORIOKA Tomohiko <tomo.git@chise.org>
169 * cos.c (cos_string_p): New function.
170 (concord_object_get_feature_value): Use `cos_read_char' and
171 `cos_read_string' to parse character and string.
173 * read.c (cos_read_string): New function.
175 * cos.h (cos_string_p): New prototype.
177 * cos-read.h: Include "cos.h".
178 (cos_read_string): New prototype.
180 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
182 * cos.c: Include "cos-print.h".
183 (concord_current_env): New variable.
184 (concord_open_env): Setup `concord_current_env'.
185 (concord_object_get_feature_value): New function.
187 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
190 - Don't include <stdlib.h>.
192 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
193 (cos_utf8_print_char): New function.
195 * cos-print.h: Include stdlib.h and cos.h.
196 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
197 (cos_utf8_print_char): New prototype.
199 * concord.h (concord_object_get_feature_value): New prototype.
201 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
205 * cos-print.h: New file.
207 * Makefile.in (OBJS): Add print.lo.
208 (print.lo): New target.
210 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
212 * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
213 (concord_open_ds): Delete code to initialize `ds->symbol_names'.
214 (concord_close_ds): Delete code to destroy `ds->symbol_names'.
216 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
218 * cos-read.h: New file.
222 * symbol.c: New file.
228 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
231 - Move code to include "config.h" into sysdep.h.
233 (concord_close_genre): Move prototype into cos-i.h.
234 (concord_close_feature): Likewise.
235 (concord_close_index): Likewise.
236 (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
237 moved to cos-i.h; add new member `reference_count'.
238 (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
239 moved to cos-i.h; use `enum COS_Object_Type'.
240 (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
241 `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
243 (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
244 to cos-i.h; use `enum COS_Object_Type'.
245 (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
246 to cos-i.h; use `enum COS_Object_Type'.
247 (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
248 moved to cos-i.h; use `enum COS_Object_Type'.
249 (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
250 `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
252 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
253 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
255 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
256 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
258 (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
259 member `symbol_names'.
260 (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
262 (concord_close_ds): Destroy `ds->symbol_names'.
263 (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
264 (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
265 (struct CONCORD_Feature_Table): Renamed to `struct
267 (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
268 (struct CONCORD_INDEX_Table): Renamed to `struct
269 COS_Feature_INDEX_ent'.
270 (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
271 (concord_index_get_name): New function.
272 (concord_index_get_genre): New function.
274 * concord.h: Include <cos.h>.
275 (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
276 (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
278 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
280 (concord_open_env): New prototype.
281 (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
282 (COS_Genre): New type.
283 (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
285 (concord_get_genre): New prototype.
286 (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
287 (COS_Feature): New type.
288 (CONCORD_Feature): Use `COS_Feature' instead of
289 `CONCORD_Feature_Table*' as the type.
290 (concord_get_feature): New prototype.
291 (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
292 (COS_Feature_INDEX): New type.
293 (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
294 `CONCORD_INDEX_Table*' as the type.
295 (concord_get_feature_index): New prototype.
296 (concord_index_get_name): New prototype.
297 (concord_index_get_genre): New prototype.
298 (concord_decode_object): New prototype.
300 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
302 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
306 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
308 * Makefile.in (localstatedir): New variable.
309 (CONCORD_DB_PREFIX): New variable.
310 (CONCORD_DB_FORMAT_VERSION): New variable.
311 (CONCORD_DB_DIR): New variable.
312 (CONCORD_SI_DB_DIR): New variable.
313 (CONCORD_CFLAGS): New variable.
314 (HEADERS): Add cos.h.
315 (OBJS): Add cos.lo, symbol.lo and read.lo.
316 (cos.lo): New target.
317 (symbol.lo): New target.
318 (read.lo): New target.
319 (concord.lo): Depend on cos-i.h and cos.h.
321 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
323 * name.c (concord_hash_c_string): Use `unsigned long' instead of
324 int' as the type of return value.
326 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
328 * config.h.in (SIZEOF_INT): New macro.
329 (SIZEOF_LONG): New macro.
330 (SIZEOF_LONG_LONG): New macro.
331 (SIZEOF_VOID_P): New macro.
332 (BITS_PER_CHAR): New macro.
334 * configure.in: Add `AC_CHECK_SIZEOF(int)',
335 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
336 `AC_CHECK_SIZEOF(void *)'.
338 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
340 * Makefile.in (ABI_VERSION): Update to 1:0:1.
342 * concord.c (struct CONCORD_Object_Header): New structure.
343 (CONCORD_OBJECT_TYPE_NULL): New macro.
344 (CONCORD_OBJECT_TYPE_C_STRING): New macro.
345 (CONCORD_OBJECT_TYPE_INT): New macro.
346 (CONCORD_OBJECT_TYPE_DS): New macro.
347 (CONCORD_OBJECT_TYPE_GENRE): New macro.
348 (CONCORD_OBJECT_TYPE_FEATURE): New macro.
349 (CONCORD_OBJECT_TYPE_INDEX): New macro.
350 (CONCORD_OBJECT_TYPE_OBJECT): New macro.
351 (struct CONCORD_DS_Table): Add new member `header'.
352 (concord_open_ds): Setup ds->header.
353 (struct CONCORD_Genre_Table): Add new member `header'.
354 (concord_ds_open_genre): Setup ds->header.
355 (struct CONCORD_Feature_Table): Add new member `header'.
356 (concord_genre_open_feature): Setup ds->header.
357 (struct CONCORD_INDEX_Table): Add new member `header'.
358 (concord_genre_open_index): Setup ds->header.
360 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
362 * configure.in: Support db5 in Fink.
364 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
366 * README.en (Reporting Bugs): Modify for
367 chise-{en|ja}@lists.chise.org.
369 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
371 * README.en: Remove descriptions about CVS and add description
372 about the new Git repository.
374 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
377 - Don't use "AC_CHECK_FUNCS(strnlen)".
378 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
380 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
382 * Makefile.in (CFLAGS): Add $(DEFS).
385 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
387 * Concord 0.0.2 released.
389 * configure.in: Update version to 0.0.2.
391 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
393 * configure.in: Add settings for --with-site-includes=PATH and
394 --with-site-libraries=PATH.
397 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
399 * Concord 0.0.1 released.
401 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
403 * Makefile.in (MKDIR): New variable.
404 (install.h): Make $(INCLUDE_INSTALLDIR).
405 (install.libs): Make $(LIB_INSTALLDIR).
407 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
409 * configure.in: Update version to 0.0.1.
411 * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
412 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
413 (concord.lo): Specify `--mode=compile'.
414 (concord-bdb.lo): ditto.
416 (install.libs): Specify `--mode=install'.
419 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
421 * Concord 0.0.0 released.
423 * Makefile.in (tar): Fixed.
425 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
427 * concord.c (concord_ds_open_genre): Use <char*> instead of
428 <unsigned char*> for genre-name.
429 (concord_genre_open_feature): Likewise.
430 (concord_genre_open_index): Use <char*> instead of <unsigned
431 char*> for index-name.
432 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
433 char*> for feature-name.
434 (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
435 for member `location'.
436 (concord_default_read_object): Cast to avoid warning.
437 (concord_open_ds): Use <char*> instead of <unsigned char*> for
439 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
440 char*> for ds->location; cast to avoid warning.
441 (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
442 char*> for member `name'.
443 (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
445 (concord_genre_foreach_feature_name): Use <char*> instead of
446 <unsigned char*> for ds->location.
447 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
448 char*> for genre-name.
449 (concord_genre_get_feature): Use <char*> instead of <unsigned
451 (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
452 char*> for member `name'.
453 (concord_genre_open_feature): Use <char*> instead of <unsigned
454 char*> for feature-name.
455 (concord_obj_gets_feature_value): Cast to avoid warning.
456 (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
457 char*> for member `name'.
458 (concord_genre_open_index): Use <char*> instead of <unsigned
459 char*> for index-name.
460 (concord_index_strid_put_obj): Cast to avoid warning.
462 * name.c, concord-name.h (concord_name_table_put): Use <char*>
463 instead of <unsigned char*> for key.
464 (concord_name_table_get): Likewise.
466 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
468 * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
469 instead of <unsigned char*> for db_dir, genre, key_type and name.
470 (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
472 (CONCORD_BDB_put): Likewise.
474 * concord.c, concord.h (concord_open_ds): Use <char*> instead of
475 <unsigned char*> for location.
476 (concord_ds_location): Likewise.
477 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
478 char*> for genre-name.
479 (concord_ds_get_genre): Likewise.
480 (concord_genre_get_name): Likewise.
481 (concord_genre_foreach_feature_name): Likewise.
482 (concord_genre_get_feature): Use <char*> instead of <unsigned
483 char*> for feature-name.
484 (concord_feature_get_name): Likewise.
485 (concord_obj_put_feature_value_str): Use <char*> instead of
486 <unsigned char*> for object-id.
487 (concord_obj_get_feature_value): Likewise.
488 (concord_obj_get_feature_value_string): Likewise.
489 (concord_obj_gets_feature_value): Likewise.
490 (concord_genre_get_index): Use <char*> instead of <unsigned char*>
492 (concord_index_strid_put_obj): Use <char*> instead of <unsigned
493 char*> for indexer and object-id.
494 (concord_index_strid_get_obj_string): Use <char*> instead of
495 <unsigned char*> for indexer.
497 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
499 * README.en: New file.
501 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
503 * concord.h (concord_genre_get_name): New prototype.
504 (concord_feature_get_genre): New prototype.
506 * concord.c (concord_genre_get_name): New function.
507 (concord_feature_get_genre): New function.
509 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
511 * concord.c (concord_ds_set_object_failure): Renamed from
512 `concord_ds_set_object_nil'.
513 (concord_genre_get_feature_0): New function.
514 (concord_genre_get_feature): New implementation; use
515 `concord_genre_get_feature_0'; support feature alias.
517 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
519 * concord.h (concord_ds_set_object_failure): Renamed from
520 `concord_ds_set_object_nil'.
522 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
524 * concord.c, concord.h (concord_obj_put_feature_value_str):
525 Renamed from `concord_stroid_set_feature_str'.
526 (concord_obj_get_feature_value): Renamed from
527 `concord_stroid_get_feature_object'.
528 (concord_obj_get_feature_value_string): Renamed from
529 `concord_stroid_get_feature_string'.
530 (concord_obj_gets_feature_value): Renamed from
531 `concord_stroid_gets_feature'.
532 (concord_feature_foreach_obj_string): Renamed from
533 `concord_feature_foreach_object_string'.
534 (concord_index_strid_get_obj_string): Renamed from
535 `concord_index_strid_get_object_string'.
536 (concord_index_strid_put_obj): Renamed from
537 `concord_index_strid_set_object_str'.
539 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
541 * concord.c, concord.h (concord_close_ds): Renamed from
544 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
546 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
548 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
550 * Makefile.in: New file.
552 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
554 * sysdep.h: New file.
556 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
558 * aclocal.m4, concord-name.h, config.h.in, configure.in,
559 config.guess, config.sub, install-sh, ltmain.sh, name.c: New