(COS_Object_retain_function_table): New variable.
[chise/concord.git] / ChangeLog
1 2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
2
3         * name.c (concord_name_table_grow): Release old `table->data'.
4
5         * cos.h: Include <stdlib.h>.
6         (cos_Qnil): New variable.
7         (cos_Qt): New variable.
8         (cos_print_object): New prototype.
9
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'.
18
19         * print.c (cos_print_object): New function.
20
21 2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
22
23         * cos.c (COS_Object_release_function_table): Add
24         `cos_release_cons'.
25         (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
26         object.
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.
32
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.
36         (COS_CAR): New macro.
37         (COS_CDR): New macro.
38         (cos_release_cons): New prototype.
39
40         * cos.h (struct COS_Cons_ent): New structure.
41         (COS_Cons): New type.
42         (cos_cons): New prototype.
43         (cos_car): New prototype.
44         (cos_cdr): New prototype.
45
46 2013-04-15  MORIOKA Tomohiko  <tomo.git@chise.org>
47
48         * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
49         parse integer.
50
51         * read.c: Include <ctype.h>.
52         (cos_read_int): New function.
53
54         * cos-read.h (cos_read_int): New prototype.
55
56 2013-04-14  MORIOKA Tomohiko  <tomo.git@chise.org>
57
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.
61
62         * read.c (cos_read_string): New function.
63
64         * cos.h (cos_string_p): New prototype.
65
66         * cos-read.h: Include "cos.h".
67         (cos_read_string): New prototype.
68
69 2013-04-06  MORIOKA Tomohiko  <tomo.git@chise.org>
70
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.
75
76 2013-04-04  MORIOKA Tomohiko  <tomo.git@chise.org>
77
78         * print.c:
79         - Don't include <stdlib.h>.
80         - Include "cos-i.h".
81         (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
82         (cos_utf8_print_char): New function.
83
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.
87
88         * concord.h (concord_object_get_feature_value): New prototype.
89
90 2013-04-02  MORIOKA Tomohiko  <tomo.git@chise.org>
91
92         * print.c: New file.
93
94         * cos-print.h: New file.
95
96         * Makefile.in (OBJS): Add print.lo.
97         (print.lo): New target.
98
99 2013-04-01  MORIOKA Tomohiko  <tomo.git@chise.org>
100
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'.
104
105 2013-03-30  MORIOKA Tomohiko  <tomo.git@chise.org>
106
107         * cos-read.h: New file.
108
109         * cos.h: New file.
110
111         * symbol.c: New file.
112
113         * cos-i.h: New file.
114
115         * cos.c: New file.
116
117         * concord-bdb.c: Move code to include "config.h" into sysdep.h.
118
119         * concord.c:
120         - Move code to include "config.h" into sysdep.h.
121         - Include "cos-i.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
131         COS_Object_Type'.
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
140         COS_Object_Type'.
141         (CONCORD_OBJECT_TYPE_INDEX): Renamed to
142         `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
143         COS_Object_Type'.
144         (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
145         `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
146         COS_Object_Type'.
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
150         `ds->symbol_names'.
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
155         COS_Feature_ent'.
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.
162
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'.
166         (COS_DS): New type.
167         (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
168         type.
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*'
173         as the type.
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.
188
189         * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
190
191 2013-03-30  MORIOKA Tomohiko  <tomo.git@chise.org>
192
193         * read.c: New file.
194
195 2013-03-29  MORIOKA Tomohiko  <tomo.git@chise.org>
196
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.
209
210 2013-03-22  MORIOKA Tomohiko  <tomo.git@chise.org>
211
212         * name.c (concord_hash_c_string): Use `unsigned long' instead of
213         int' as the type of return value.
214
215 2013-03-21  MORIOKA Tomohiko  <tomo.git@chise.org>
216
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.
222
223         * configure.in: Add `AC_CHECK_SIZEOF(int)',
224         `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
225         `AC_CHECK_SIZEOF(void *)'.
226
227 2011-10-31  MORIOKA Tomohiko  <tomo.git@chise.org>
228
229         * Makefile.in (ABI_VERSION): Update to 1:0:1.
230
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.
248
249 2012-07-07  MORIOKA Tomohiko  <tomo.git@chise.org>
250
251         * configure.in: Support db5 in Fink.
252
253 2012-04-25  MORIOKA Tomohiko  <tomo.git@chise.org>
254
255         * README.en (Reporting Bugs): Modify for
256         chise-{en|ja}@lists.chise.org.
257
258 2012-04-09  MORIOKA Tomohiko  <tomo.git@chise.org>
259
260         * README.en: Remove descriptions about CVS and add description
261         about the new Git repository.
262
263 2012-02-08  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
264
265         * configure.in:
266         - Don't use "AC_CHECK_FUNCS(strnlen)".
267         - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
268
269 2011-08-24  MORIOKA Tomohiko  <tomo@zinbun.kyoto-u.ac.jp>
270
271         * Makefile.in (CFLAGS): Add $(DEFS).
272
273 \f
274 2010-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * Concord 0.0.2 released.
277
278         * configure.in: Update version to 0.0.2.
279
280 2008-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * configure.in: Add settings for --with-site-includes=PATH and
283         --with-site-libraries=PATH.
284
285 \f
286 2008-05-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * Concord 0.0.1 released.
289
290 2008-01-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
291
292         * Makefile.in (MKDIR): New variable.
293         (install.h): Make $(INCLUDE_INSTALLDIR).
294         (install.libs): Make $(LIB_INSTALLDIR).
295
296 2006-12-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * configure.in: Update version to 0.0.1.
299
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.
304         (name.lo): ditto.
305         (install.libs): Specify `--mode=install'.
306
307 \f
308 2006-05-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
309
310         * Concord 0.0.0 released.
311
312         * Makefile.in (tar): Fixed.
313
314 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
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
327         ds->location.
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*>
333         for genre-name.
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
339         char*> for t_name.
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.
350
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.
354
355 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
356
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
360         key.
361         (CONCORD_BDB_put): Likewise.
362
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*>
380         for index-name.
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.
385
386 2006-02-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * README.en: New file.
389
390 2005-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * concord.h (concord_genre_get_name): New prototype.
393         (concord_feature_get_genre): New prototype.
394
395         * concord.c (concord_genre_get_name): New function.
396         (concord_feature_get_genre): New function.
397
398 2005-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
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.
405
406 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * concord.h (concord_ds_set_object_failure): Renamed from
409         `concord_ds_set_object_nil'.
410
411 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
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'.
427
428 2005-06-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
429
430         * concord.c, concord.h (concord_close_ds): Renamed from
431         `CONCORD_DS_close'.
432
433 2005-06-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
434
435         * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
436
437 2005-06-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * Makefile.in: New file.
440
441 2005-06-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
442
443         * sysdep.h: New file.
444
445 2005-06-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * aclocal.m4, concord-name.h, config.h.in, configure.in,
448         config.guess, config.sub, install-sh, ltmain.sh, name.c: New
449         files.