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