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