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