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