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