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