update.
[chise/concord.git] / ChangeLog
1 2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * symbol.c (cos_make_symbol): Use `cos_retain_object' for
4         `obj->name'.
5         (cos_retain_symbol): New function.
6
7         * cos.c (COS_Object_retain_function_table): New variable.
8         (cos_retain_object): Call a retain-function in
9         `COS_Object_retain_function_table'.
10         (cos_retain_string): New function.
11         (cos_retain_cons): New function.
12         (cos_retain_container): New function.
13         (cos_retain_sexp): New function.
14         (cos_retain_binary): New function.
15         (cos_retain_ds): New function.
16         (cos_retain_genre): New function.
17         (cos_retain_feature): New function.
18         (cos_retain_index): New function.
19         (cos_retain_db_object): New function.
20
21         * cos-i.h (COS_Object_retain_function_table): New variable.
22         (cos_retain_string): New prototype.
23         (cos_retain_symbol): New prototype.
24         (cos_retain_cons): New prototype.
25         (cos_retain_container): New prototype.
26         (cos_retain_sexp): New prototype.
27         (cos_retain_binary): New prototype.
28         (cos_retain_ds): New prototype.
29         (cos_retain_genre): New prototype.
30         (cos_retain_feature): New prototype.
31         (cos_retain_index): New prototype.
32         (cos_retain_db_object): New prototype.
33
34 2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
35
36         * Makefile.in (symbol-test): New target.
37
38 2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
39
40         * name.c (concord_name_table_grow): Release old `table->data'.
41
42         * cos.h: Include <stdlib.h>.
43         (cos_Qnil): New variable.
44         (cos_Qt): New variable.
45         (cos_print_object): New prototype.
46
47         * symbol.c (cos_string_ent_nil): New variable.
48         (cos_symbol_ent_nil): New variable.
49         (cos_Qnil): New variable.
50         (cos_string_ent_t): New variable.
51         (cos_symbol_ent_t): New variable.
52         (cos_Qt): New variable.
53         (cos_intern): Setup `nil' and `t'.
54         (cos_symbol_table_grow): Release old `table->data'.
55
56         * print.c (cos_print_object): New function.
57
58 2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
59
60         * cos.c (COS_Object_release_function_table): Add
61         `cos_release_cons'.
62         (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
63         object.
64         (cos_release_object): Likewise.
65         (cos_cons): New function.
66         (cos_release_cons): New function.
67         (cos_car): New function.
68         (cos_cdr): New function.
69
70         * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
71         (COS_OBJECT_CONS_P): New macro.
72         (struct COS_Cons_ent): New structure.
73         (COS_CAR): New macro.
74         (COS_CDR): New macro.
75         (cos_release_cons): New prototype.
76
77         * cos.h (struct COS_Cons_ent): New structure.
78         (COS_Cons): New type.
79         (cos_cons): New prototype.
80         (cos_car): New prototype.
81         (cos_cdr): New prototype.
82
83 2013-04-15  MORIOKA Tomohiko  <tomo.git@chise.org>
84
85         * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
86         parse integer.
87
88         * read.c: Include <ctype.h>.
89         (cos_read_int): New function.
90
91         * cos-read.h (cos_read_int): New prototype.
92
93 2013-04-14  MORIOKA Tomohiko  <tomo.git@chise.org>
94
95         * cos.c (cos_string_p): New function.
96         (concord_object_get_feature_value): Use `cos_read_char' and
97         `cos_read_string' to parse character and string.
98
99         * read.c (cos_read_string): New function.
100
101         * cos.h (cos_string_p): New prototype.
102
103         * cos-read.h: Include "cos.h".
104         (cos_read_string): New prototype.
105
106 2013-04-06  MORIOKA Tomohiko  <tomo.git@chise.org>
107
108         * cos.c: Include "cos-print.h".
109         (concord_current_env): New variable.
110         (concord_open_env): Setup `concord_current_env'.
111         (concord_object_get_feature_value): New function.
112
113 2013-04-04  MORIOKA Tomohiko  <tomo.git@chise.org>
114
115         * print.c:
116         - Don't include <stdlib.h>.
117         - Include "cos-i.h".
118         (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
119         (cos_utf8_print_char): New function.
120
121         * cos-print.h: Include stdlib.h and cos.h.
122         (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
123         (cos_utf8_print_char): New prototype.
124
125         * concord.h (concord_object_get_feature_value): New prototype.
126
127 2013-04-02  MORIOKA Tomohiko  <tomo.git@chise.org>
128
129         * print.c: New file.
130
131         * cos-print.h: New file.
132
133         * Makefile.in (OBJS): Add print.lo.
134         (print.lo): New target.
135
136 2013-04-01  MORIOKA Tomohiko  <tomo.git@chise.org>
137
138         * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
139         (concord_open_ds): Delete code to initialize `ds->symbol_names'.
140         (concord_close_ds): Delete code to destroy `ds->symbol_names'.
141
142 2013-03-30  MORIOKA Tomohiko  <tomo.git@chise.org>
143
144         * cos-read.h: New file.
145
146         * cos.h: New file.
147
148         * symbol.c: New file.
149
150         * cos-i.h: New file.
151
152         * cos.c: New file.
153
154         * concord-bdb.c: Move code to include "config.h" into sysdep.h.
155
156         * concord.c:
157         - Move code to include "config.h" into sysdep.h.
158         - Include "cos-i.h".
159         (concord_close_genre): Move prototype into cos-i.h.
160         (concord_close_feature): Likewise.
161         (concord_close_index): Likewise.
162         (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
163         moved to cos-i.h; add new member `reference_count'.
164         (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
165         moved to cos-i.h; use `enum COS_Object_Type'.
166         (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
167         `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
168         COS_Object_Type'.
169         (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
170         to cos-i.h; use `enum COS_Object_Type'.
171         (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
172         to cos-i.h; use `enum COS_Object_Type'.
173         (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
174         moved to cos-i.h; use `enum COS_Object_Type'.
175         (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
176         `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
177         COS_Object_Type'.
178         (CONCORD_OBJECT_TYPE_INDEX): Renamed to
179         `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
180         COS_Object_Type'.
181         (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
182         `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
183         COS_Object_Type'.
184         (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
185         member `symbol_names'.
186         (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
187         `ds->symbol_names'.
188         (concord_close_ds): Destroy `ds->symbol_names'.
189         (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
190         (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
191         (struct CONCORD_Feature_Table): Renamed to `struct
192         COS_Feature_ent'.
193         (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
194         (struct CONCORD_INDEX_Table): Renamed to `struct
195         COS_Feature_INDEX_ent'.
196         (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
197         (concord_index_get_name): New function.
198         (concord_index_get_genre): New function.
199
200         * concord.h: Include <cos.h>.
201         (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
202         (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
203         (COS_DS): New type.
204         (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
205         type.
206         (concord_open_env): New prototype.
207         (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
208         (COS_Genre): New type.
209         (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
210         as the type.
211         (concord_get_genre): New prototype.
212         (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
213         (COS_Feature): New type.
214         (CONCORD_Feature): Use `COS_Feature' instead of
215         `CONCORD_Feature_Table*' as the type.
216         (concord_get_feature): New prototype.
217         (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
218         (COS_Feature_INDEX): New type.
219         (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
220         `CONCORD_INDEX_Table*' as the type.
221         (concord_get_feature_index): New prototype.
222         (concord_index_get_name): New prototype.
223         (concord_index_get_genre): New prototype.
224         (concord_decode_object): New prototype.
225
226         * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
227
228 2013-03-30  MORIOKA Tomohiko  <tomo.git@chise.org>
229
230         * read.c: New file.
231
232 2013-03-29  MORIOKA Tomohiko  <tomo.git@chise.org>
233
234         * Makefile.in (localstatedir): New variable.
235         (CONCORD_DB_PREFIX): New variable.
236         (CONCORD_DB_FORMAT_VERSION): New variable.
237         (CONCORD_DB_DIR): New variable.
238         (CONCORD_SI_DB_DIR): New variable.
239         (CONCORD_CFLAGS): New variable.
240         (HEADERS): Add cos.h.
241         (OBJS): Add cos.lo, symbol.lo and read.lo.
242         (cos.lo): New target.
243         (symbol.lo): New target.
244         (read.lo): New target.
245         (concord.lo): Depend on cos-i.h and cos.h.
246
247 2013-03-22  MORIOKA Tomohiko  <tomo.git@chise.org>
248
249         * name.c (concord_hash_c_string): Use `unsigned long' instead of
250         int' as the type of return value.
251
252 2013-03-21  MORIOKA Tomohiko  <tomo.git@chise.org>
253
254         * config.h.in (SIZEOF_INT): New macro.
255         (SIZEOF_LONG): New macro.
256         (SIZEOF_LONG_LONG): New macro.
257         (SIZEOF_VOID_P): New macro.
258         (BITS_PER_CHAR): New macro.
259
260         * configure.in: Add `AC_CHECK_SIZEOF(int)',
261         `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
262         `AC_CHECK_SIZEOF(void *)'.
263
264 2011-10-31  MORIOKA Tomohiko  <tomo.git@chise.org>
265
266         * Makefile.in (ABI_VERSION): Update to 1:0:1.
267
268         * concord.c (struct CONCORD_Object_Header): New structure.
269         (CONCORD_OBJECT_TYPE_NULL): New macro.
270         (CONCORD_OBJECT_TYPE_C_STRING): New macro.
271         (CONCORD_OBJECT_TYPE_INT): New macro.
272         (CONCORD_OBJECT_TYPE_DS): New macro.
273         (CONCORD_OBJECT_TYPE_GENRE): New macro.
274         (CONCORD_OBJECT_TYPE_FEATURE): New macro.
275         (CONCORD_OBJECT_TYPE_INDEX): New macro.
276         (CONCORD_OBJECT_TYPE_OBJECT): New macro.
277         (struct CONCORD_DS_Table): Add new member `header'.
278         (concord_open_ds): Setup ds->header.
279         (struct CONCORD_Genre_Table): Add new member `header'.
280         (concord_ds_open_genre): Setup ds->header.
281         (struct CONCORD_Feature_Table): Add new member `header'.
282         (concord_genre_open_feature): Setup ds->header.
283         (struct CONCORD_INDEX_Table): Add new member `header'.
284         (concord_genre_open_index): Setup ds->header.
285
286 2012-07-07  MORIOKA Tomohiko  <tomo.git@chise.org>
287
288         * configure.in: Support db5 in Fink.
289
290 2012-04-25  MORIOKA Tomohiko  <tomo.git@chise.org>
291
292         * README.en (Reporting Bugs): Modify for
293         chise-{en|ja}@lists.chise.org.
294
295 2012-04-09  MORIOKA Tomohiko  <tomo.git@chise.org>
296
297         * README.en: Remove descriptions about CVS and add description
298         about the new Git repository.
299
300 2012-02-08  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
301
302         * configure.in:
303         - Don't use "AC_CHECK_FUNCS(strnlen)".
304         - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
305
306 2011-08-24  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
307
308         * Makefile.in (CFLAGS): Add $(DEFS).
309
310 \f
311 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
312
313         * Concord 0.0.2 released.
314
315         * configure.in: Update version to 0.0.2.
316
317 2008-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
318
319         * configure.in: Add settings for --with-site-includes=PATH and
320         --with-site-libraries=PATH.
321
322 \f
323 2008-05-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * Concord 0.0.1 released.
326
327 2008-01-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * Makefile.in (MKDIR): New variable.
330         (install.h): Make $(INCLUDE_INSTALLDIR).
331         (install.libs): Make $(LIB_INSTALLDIR).
332
333 2006-12-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * configure.in: Update version to 0.0.1.
336
337         * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
338         error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
339         (concord.lo): Specify `--mode=compile'.
340         (concord-bdb.lo): ditto.
341         (name.lo): ditto.
342         (install.libs): Specify `--mode=install'.
343
344 \f
345 2006-05-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * Concord 0.0.0 released.
348
349         * Makefile.in (tar): Fixed.
350
351 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * concord.c (concord_ds_open_genre): Use <char*> instead of
354         <unsigned char*> for genre-name.
355         (concord_genre_open_feature): Likewise.
356         (concord_genre_open_index): Use <char*> instead of <unsigned
357         char*> for index-name.
358         (concord_genre_get_feature_0): Use <char*> instead of <unsigned
359         char*> for feature-name.
360         (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
361         for member `location'.
362         (concord_default_read_object): Cast to avoid warning.
363         (concord_open_ds): Use <char*> instead of <unsigned char*> for
364         ds->location.
365         (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
366         char*> for ds->location; cast to avoid warning.
367         (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
368         char*> for member `name'.
369         (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
370         for genre-name.
371         (concord_genre_foreach_feature_name): Use <char*> instead of
372         <unsigned char*> for ds->location.
373         (concord_genre_get_feature_0): Use <char*> instead of <unsigned
374         char*> for genre-name.
375         (concord_genre_get_feature): Use <char*> instead of <unsigned
376         char*> for t_name.
377         (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
378         char*> for member `name'.
379         (concord_genre_open_feature): Use <char*> instead of <unsigned
380         char*> for feature-name.
381         (concord_obj_gets_feature_value): Cast to avoid warning.
382         (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
383         char*> for member `name'.
384         (concord_genre_open_index): Use <char*> instead of <unsigned
385         char*> for index-name.
386         (concord_index_strid_put_obj): Cast to avoid warning.
387
388         * name.c, concord-name.h (concord_name_table_put): Use <char*>
389         instead of <unsigned char*> for key.
390         (concord_name_table_get): Likewise.
391
392 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
393
394         * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
395         instead of <unsigned char*> for db_dir, genre, key_type and name.
396         (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
397         key.
398         (CONCORD_BDB_put): Likewise.
399
400         * concord.c, concord.h (concord_open_ds): Use <char*> instead of
401         <unsigned char*> for location.
402         (concord_ds_location): Likewise.
403         (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
404         char*> for genre-name.
405         (concord_ds_get_genre): Likewise.
406         (concord_genre_get_name): Likewise.
407         (concord_genre_foreach_feature_name): Likewise.
408         (concord_genre_get_feature): Use <char*> instead of <unsigned
409         char*> for feature-name.
410         (concord_feature_get_name): Likewise.
411         (concord_obj_put_feature_value_str): Use <char*> instead of
412         <unsigned char*> for object-id.
413         (concord_obj_get_feature_value): Likewise.
414         (concord_obj_get_feature_value_string): Likewise.
415         (concord_obj_gets_feature_value): Likewise.
416         (concord_genre_get_index): Use <char*> instead of <unsigned char*>
417         for index-name.
418         (concord_index_strid_put_obj): Use <char*> instead of <unsigned
419         char*> for indexer and object-id.
420         (concord_index_strid_get_obj_string): Use <char*> instead of
421         <unsigned char*> for indexer.
422
423 2006-02-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * README.en: New file.
426
427 2005-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * concord.h (concord_genre_get_name): New prototype.
430         (concord_feature_get_genre): New prototype.
431
432         * concord.c (concord_genre_get_name): New function.
433         (concord_feature_get_genre): New function.
434
435 2005-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
436
437         * concord.c (concord_ds_set_object_failure): Renamed from
438         `concord_ds_set_object_nil'.
439         (concord_genre_get_feature_0): New function.
440         (concord_genre_get_feature): New implementation; use
441         `concord_genre_get_feature_0'; support feature alias.
442
443 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
444
445         * concord.h (concord_ds_set_object_failure): Renamed from
446         `concord_ds_set_object_nil'.
447
448 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * concord.c, concord.h (concord_obj_put_feature_value_str):
451         Renamed from `concord_stroid_set_feature_str'.
452         (concord_obj_get_feature_value): Renamed from
453         `concord_stroid_get_feature_object'.
454         (concord_obj_get_feature_value_string): Renamed from
455         `concord_stroid_get_feature_string'.
456         (concord_obj_gets_feature_value): Renamed from
457         `concord_stroid_gets_feature'.
458         (concord_feature_foreach_obj_string): Renamed from
459         `concord_feature_foreach_object_string'.
460         (concord_index_strid_get_obj_string): Renamed from
461         `concord_index_strid_get_object_string'.
462         (concord_index_strid_put_obj): Renamed from
463         `concord_index_strid_set_object_str'.
464
465 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * concord.c, concord.h (concord_close_ds): Renamed from
468         `CONCORD_DS_close'.
469
470 2005-06-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
471
472         * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
473
474 2005-06-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * Makefile.in: New file.
477
478 2005-06-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * sysdep.h: New file.
481
482 2005-06-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
483
484         * aclocal.m4, concord-name.h, config.h.in, configure.in,
485         config.guess, config.sub, install-sh, ltmain.sh, name.c: New
486         files.