1 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
3 * cos.h (cos_Qcomposition): New variable.
6 (COS_COMPOSITION): New macro.
8 * symbol.c (cos_string_ent_composition): New variable.
9 (cos_symbol_ent_composition): New variable.
10 (cos_Qcomposition): New variable.
11 (cos_intern): Setup `composition'.
13 2013-04-20 MORIOKA Tomohiko <tomo.git@chise.org>
15 * symbol.c (cos_release_symbol): Add check for builtin symbols.
17 2013-04-19 MORIOKA Tomohiko <tomo.git@chise.org>
19 * concord.h (CONCORD_Genre_Table): Revived as an alias of
22 2013-04-18 MORIOKA Tomohiko <tomo.git@chise.org>
24 * symbol.c (cos_retain_symbol): Don't use `cos_retain_object'
26 (cos_symbol_p): New function.
27 (cos_symbol_table_intern): Check type of each entry of the hash;
28 use `cos_retain_object' for the returned symbol.
29 (cos_print_symbol_table): New function.
31 * cos.c (cos_char_id): Fixed.
32 (cos_release_object): Fixed.
33 (cos_retain_cons): Don't use `cos_retain_object' recursively.
34 (cos_assoc): New function.
35 (cos_alist_get): New function.
37 2013-04-18 MORIOKA Tomohiko <tomo.git@chise.org>
39 * read.c (is_delimiter): New function.
40 (cos_read_int): Use `is_delimiter'.
41 (cos_read_string): Fixed.
42 (cos_read_symbol): New function.
43 (cos_read_object): Use `cos_read_symbol' to support symbol.
45 * cos.h (cos_symbol_p): New prototype.
46 (cos_assoc): New prototype.
47 (cos_alist_get): New prototype.
49 * cos-read.h (cos_read_symbol): New prototype.
51 2013-04-17 MORIOKA Tomohiko <tomo.git@chise.org>
53 * read.c (cos_skip_space): New function.
54 (cos_read_int): Fix to support separator.
55 (cos_read_list0): New function.
56 (cos_read_list): New function.
57 (cos_read_object): New function.
59 * print.c (cos_print_object): Fix duplicated `?' when printing a
62 * cos.h (cos_cons_p): New prototype.
64 * cos.c (cos_cons_p): New function.
65 (concord_object_get_feature_value): Use `cos_read_object'.
67 * cos-read.h (cos_read_list): New prototype.
68 (cos_read_object): New prototype.
70 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
72 * symbol.c (cos_make_symbol): Use `cos_retain_object' for
74 (cos_retain_symbol): New function.
76 * cos.c (COS_Object_retain_function_table): New variable.
77 (cos_retain_object): Call a retain-function in
78 `COS_Object_retain_function_table'.
79 (cos_retain_string): New function.
80 (cos_retain_cons): New function.
81 (cos_retain_container): New function.
82 (cos_retain_sexp): New function.
83 (cos_retain_binary): New function.
84 (cos_retain_ds): New function.
85 (cos_retain_genre): New function.
86 (cos_retain_feature): New function.
87 (cos_retain_index): New function.
88 (cos_retain_db_object): New function.
90 * cos-i.h (COS_Object_retain_function_table): New variable.
91 (cos_retain_string): New prototype.
92 (cos_retain_symbol): New prototype.
93 (cos_retain_cons): New prototype.
94 (cos_retain_container): New prototype.
95 (cos_retain_sexp): New prototype.
96 (cos_retain_binary): New prototype.
97 (cos_retain_ds): New prototype.
98 (cos_retain_genre): New prototype.
99 (cos_retain_feature): New prototype.
100 (cos_retain_index): New prototype.
101 (cos_retain_db_object): New prototype.
103 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
105 * Makefile.in (symbol-test): New target.
107 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
109 * name.c (concord_name_table_grow): Release old `table->data'.
111 * cos.h: Include <stdlib.h>.
112 (cos_Qnil): New variable.
113 (cos_Qt): New variable.
114 (cos_print_object): New prototype.
116 * symbol.c (cos_string_ent_nil): New variable.
117 (cos_symbol_ent_nil): New variable.
118 (cos_Qnil): New variable.
119 (cos_string_ent_t): New variable.
120 (cos_symbol_ent_t): New variable.
121 (cos_Qt): New variable.
122 (cos_intern): Setup `nil' and `t'.
123 (cos_symbol_table_grow): Release old `table->data'.
125 * print.c (cos_print_object): New function.
127 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
129 * cos.c (COS_Object_release_function_table): Add
131 (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
133 (cos_release_object): Likewise.
134 (cos_cons): New function.
135 (cos_release_cons): New function.
136 (cos_car): New function.
137 (cos_cdr): New function.
139 * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
140 (COS_OBJECT_CONS_P): New macro.
141 (struct COS_Cons_ent): New structure.
142 (COS_CAR): New macro.
143 (COS_CDR): New macro.
144 (cos_release_cons): New prototype.
146 * cos.h (struct COS_Cons_ent): New structure.
147 (COS_Cons): New type.
148 (cos_cons): New prototype.
149 (cos_car): New prototype.
150 (cos_cdr): New prototype.
152 2013-04-15 MORIOKA Tomohiko <tomo.git@chise.org>
154 * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
157 * read.c: Include <ctype.h>.
158 (cos_read_int): New function.
160 * cos-read.h (cos_read_int): New prototype.
162 2013-04-14 MORIOKA Tomohiko <tomo.git@chise.org>
164 * cos.c (cos_string_p): New function.
165 (concord_object_get_feature_value): Use `cos_read_char' and
166 `cos_read_string' to parse character and string.
168 * read.c (cos_read_string): New function.
170 * cos.h (cos_string_p): New prototype.
172 * cos-read.h: Include "cos.h".
173 (cos_read_string): New prototype.
175 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
177 * cos.c: Include "cos-print.h".
178 (concord_current_env): New variable.
179 (concord_open_env): Setup `concord_current_env'.
180 (concord_object_get_feature_value): New function.
182 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
185 - Don't include <stdlib.h>.
187 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
188 (cos_utf8_print_char): New function.
190 * cos-print.h: Include stdlib.h and cos.h.
191 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
192 (cos_utf8_print_char): New prototype.
194 * concord.h (concord_object_get_feature_value): New prototype.
196 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
200 * cos-print.h: New file.
202 * Makefile.in (OBJS): Add print.lo.
203 (print.lo): New target.
205 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
207 * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
208 (concord_open_ds): Delete code to initialize `ds->symbol_names'.
209 (concord_close_ds): Delete code to destroy `ds->symbol_names'.
211 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
213 * cos-read.h: New file.
217 * symbol.c: New file.
223 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
226 - Move code to include "config.h" into sysdep.h.
228 (concord_close_genre): Move prototype into cos-i.h.
229 (concord_close_feature): Likewise.
230 (concord_close_index): Likewise.
231 (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
232 moved to cos-i.h; add new member `reference_count'.
233 (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
234 moved to cos-i.h; use `enum COS_Object_Type'.
235 (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
236 `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
238 (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
239 to cos-i.h; use `enum COS_Object_Type'.
240 (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
241 to cos-i.h; use `enum COS_Object_Type'.
242 (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
243 moved to cos-i.h; use `enum COS_Object_Type'.
244 (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
245 `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
247 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
248 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
250 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
251 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
253 (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
254 member `symbol_names'.
255 (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
257 (concord_close_ds): Destroy `ds->symbol_names'.
258 (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
259 (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
260 (struct CONCORD_Feature_Table): Renamed to `struct
262 (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
263 (struct CONCORD_INDEX_Table): Renamed to `struct
264 COS_Feature_INDEX_ent'.
265 (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
266 (concord_index_get_name): New function.
267 (concord_index_get_genre): New function.
269 * concord.h: Include <cos.h>.
270 (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
271 (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
273 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
275 (concord_open_env): New prototype.
276 (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
277 (COS_Genre): New type.
278 (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
280 (concord_get_genre): New prototype.
281 (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
282 (COS_Feature): New type.
283 (CONCORD_Feature): Use `COS_Feature' instead of
284 `CONCORD_Feature_Table*' as the type.
285 (concord_get_feature): New prototype.
286 (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
287 (COS_Feature_INDEX): New type.
288 (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
289 `CONCORD_INDEX_Table*' as the type.
290 (concord_get_feature_index): New prototype.
291 (concord_index_get_name): New prototype.
292 (concord_index_get_genre): New prototype.
293 (concord_decode_object): New prototype.
295 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
297 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
301 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
303 * Makefile.in (localstatedir): New variable.
304 (CONCORD_DB_PREFIX): New variable.
305 (CONCORD_DB_FORMAT_VERSION): New variable.
306 (CONCORD_DB_DIR): New variable.
307 (CONCORD_SI_DB_DIR): New variable.
308 (CONCORD_CFLAGS): New variable.
309 (HEADERS): Add cos.h.
310 (OBJS): Add cos.lo, symbol.lo and read.lo.
311 (cos.lo): New target.
312 (symbol.lo): New target.
313 (read.lo): New target.
314 (concord.lo): Depend on cos-i.h and cos.h.
316 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
318 * name.c (concord_hash_c_string): Use `unsigned long' instead of
319 int' as the type of return value.
321 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
323 * config.h.in (SIZEOF_INT): New macro.
324 (SIZEOF_LONG): New macro.
325 (SIZEOF_LONG_LONG): New macro.
326 (SIZEOF_VOID_P): New macro.
327 (BITS_PER_CHAR): New macro.
329 * configure.in: Add `AC_CHECK_SIZEOF(int)',
330 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
331 `AC_CHECK_SIZEOF(void *)'.
333 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
335 * Makefile.in (ABI_VERSION): Update to 1:0:1.
337 * concord.c (struct CONCORD_Object_Header): New structure.
338 (CONCORD_OBJECT_TYPE_NULL): New macro.
339 (CONCORD_OBJECT_TYPE_C_STRING): New macro.
340 (CONCORD_OBJECT_TYPE_INT): New macro.
341 (CONCORD_OBJECT_TYPE_DS): New macro.
342 (CONCORD_OBJECT_TYPE_GENRE): New macro.
343 (CONCORD_OBJECT_TYPE_FEATURE): New macro.
344 (CONCORD_OBJECT_TYPE_INDEX): New macro.
345 (CONCORD_OBJECT_TYPE_OBJECT): New macro.
346 (struct CONCORD_DS_Table): Add new member `header'.
347 (concord_open_ds): Setup ds->header.
348 (struct CONCORD_Genre_Table): Add new member `header'.
349 (concord_ds_open_genre): Setup ds->header.
350 (struct CONCORD_Feature_Table): Add new member `header'.
351 (concord_genre_open_feature): Setup ds->header.
352 (struct CONCORD_INDEX_Table): Add new member `header'.
353 (concord_genre_open_index): Setup ds->header.
355 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
357 * configure.in: Support db5 in Fink.
359 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
361 * README.en (Reporting Bugs): Modify for
362 chise-{en|ja}@lists.chise.org.
364 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
366 * README.en: Remove descriptions about CVS and add description
367 about the new Git repository.
369 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
372 - Don't use "AC_CHECK_FUNCS(strnlen)".
373 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
375 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
377 * Makefile.in (CFLAGS): Add $(DEFS).
380 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
382 * Concord 0.0.2 released.
384 * configure.in: Update version to 0.0.2.
386 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
388 * configure.in: Add settings for --with-site-includes=PATH and
389 --with-site-libraries=PATH.
392 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
394 * Concord 0.0.1 released.
396 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
398 * Makefile.in (MKDIR): New variable.
399 (install.h): Make $(INCLUDE_INSTALLDIR).
400 (install.libs): Make $(LIB_INSTALLDIR).
402 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
404 * configure.in: Update version to 0.0.1.
406 * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
407 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
408 (concord.lo): Specify `--mode=compile'.
409 (concord-bdb.lo): ditto.
411 (install.libs): Specify `--mode=install'.
414 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
416 * Concord 0.0.0 released.
418 * Makefile.in (tar): Fixed.
420 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
422 * concord.c (concord_ds_open_genre): Use <char*> instead of
423 <unsigned char*> for genre-name.
424 (concord_genre_open_feature): Likewise.
425 (concord_genre_open_index): Use <char*> instead of <unsigned
426 char*> for index-name.
427 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
428 char*> for feature-name.
429 (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
430 for member `location'.
431 (concord_default_read_object): Cast to avoid warning.
432 (concord_open_ds): Use <char*> instead of <unsigned char*> for
434 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
435 char*> for ds->location; cast to avoid warning.
436 (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
437 char*> for member `name'.
438 (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
440 (concord_genre_foreach_feature_name): Use <char*> instead of
441 <unsigned char*> for ds->location.
442 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
443 char*> for genre-name.
444 (concord_genre_get_feature): Use <char*> instead of <unsigned
446 (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
447 char*> for member `name'.
448 (concord_genre_open_feature): Use <char*> instead of <unsigned
449 char*> for feature-name.
450 (concord_obj_gets_feature_value): Cast to avoid warning.
451 (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
452 char*> for member `name'.
453 (concord_genre_open_index): Use <char*> instead of <unsigned
454 char*> for index-name.
455 (concord_index_strid_put_obj): Cast to avoid warning.
457 * name.c, concord-name.h (concord_name_table_put): Use <char*>
458 instead of <unsigned char*> for key.
459 (concord_name_table_get): Likewise.
461 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
463 * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
464 instead of <unsigned char*> for db_dir, genre, key_type and name.
465 (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
467 (CONCORD_BDB_put): Likewise.
469 * concord.c, concord.h (concord_open_ds): Use <char*> instead of
470 <unsigned char*> for location.
471 (concord_ds_location): Likewise.
472 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
473 char*> for genre-name.
474 (concord_ds_get_genre): Likewise.
475 (concord_genre_get_name): Likewise.
476 (concord_genre_foreach_feature_name): Likewise.
477 (concord_genre_get_feature): Use <char*> instead of <unsigned
478 char*> for feature-name.
479 (concord_feature_get_name): Likewise.
480 (concord_obj_put_feature_value_str): Use <char*> instead of
481 <unsigned char*> for object-id.
482 (concord_obj_get_feature_value): Likewise.
483 (concord_obj_get_feature_value_string): Likewise.
484 (concord_obj_gets_feature_value): Likewise.
485 (concord_genre_get_index): Use <char*> instead of <unsigned char*>
487 (concord_index_strid_put_obj): Use <char*> instead of <unsigned
488 char*> for indexer and object-id.
489 (concord_index_strid_get_obj_string): Use <char*> instead of
490 <unsigned char*> for indexer.
492 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
494 * README.en: New file.
496 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
498 * concord.h (concord_genre_get_name): New prototype.
499 (concord_feature_get_genre): New prototype.
501 * concord.c (concord_genre_get_name): New function.
502 (concord_feature_get_genre): New function.
504 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
506 * concord.c (concord_ds_set_object_failure): Renamed from
507 `concord_ds_set_object_nil'.
508 (concord_genre_get_feature_0): New function.
509 (concord_genre_get_feature): New implementation; use
510 `concord_genre_get_feature_0'; support feature alias.
512 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
514 * concord.h (concord_ds_set_object_failure): Renamed from
515 `concord_ds_set_object_nil'.
517 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
519 * concord.c, concord.h (concord_obj_put_feature_value_str):
520 Renamed from `concord_stroid_set_feature_str'.
521 (concord_obj_get_feature_value): Renamed from
522 `concord_stroid_get_feature_object'.
523 (concord_obj_get_feature_value_string): Renamed from
524 `concord_stroid_get_feature_string'.
525 (concord_obj_gets_feature_value): Renamed from
526 `concord_stroid_gets_feature'.
527 (concord_feature_foreach_obj_string): Renamed from
528 `concord_feature_foreach_object_string'.
529 (concord_index_strid_get_obj_string): Renamed from
530 `concord_index_strid_get_object_string'.
531 (concord_index_strid_put_obj): Renamed from
532 `concord_index_strid_set_object_str'.
534 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
536 * concord.c, concord.h (concord_close_ds): Renamed from
539 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
541 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
543 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
545 * Makefile.in: New file.
547 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
549 * sysdep.h: New file.
551 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
553 * aclocal.m4, concord-name.h, config.h.in, configure.in,
554 config.guess, config.sub, install-sh, ltmain.sh, name.c: New