1 2013-04-14 MORIOKA Tomohiko <tomo.git@chise.org>
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.
7 * read.c (cos_read_string): New function.
9 * cos.h (cos_string_p): New prototype.
11 * cos-read.h: Include "cos.h".
12 (cos_read_string): New prototype.
14 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
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.
21 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
24 - Don't include <stdlib.h>.
26 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
27 (cos_utf8_print_char): New function.
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.
33 * concord.h (concord_object_get_feature_value): New prototype.
35 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
39 * cos-print.h: New file.
41 * Makefile.in (OBJS): Add print.lo.
42 (print.lo): New target.
44 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
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'.
50 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
52 * cos-read.h: New file.
62 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
65 - Move code to include "config.h" into sysdep.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
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
86 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
87 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
89 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
90 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
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
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
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.
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'.
112 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
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*'
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.
134 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
136 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
140 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
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.
155 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
157 * name.c (concord_hash_c_string): Use `unsigned long' instead of
158 int' as the type of return value.
160 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
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.
168 * configure.in: Add `AC_CHECK_SIZEOF(int)',
169 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
170 `AC_CHECK_SIZEOF(void *)'.
172 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
174 * Makefile.in (ABI_VERSION): Update to 1:0:1.
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.
194 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
196 * configure.in: Support db5 in Fink.
198 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
200 * README.en (Reporting Bugs): Modify for
201 chise-{en|ja}@lists.chise.org.
203 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
205 * README.en: Remove descriptions about CVS and add description
206 about the new Git repository.
208 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
211 - Don't use "AC_CHECK_FUNCS(strnlen)".
212 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
214 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
216 * Makefile.in (CFLAGS): Add $(DEFS).
219 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
221 * Concord 0.0.2 released.
223 * configure.in: Update version to 0.0.2.
225 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
227 * configure.in: Add settings for --with-site-includes=PATH and
228 --with-site-libraries=PATH.
231 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
233 * Concord 0.0.1 released.
235 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
237 * Makefile.in (MKDIR): New variable.
238 (install.h): Make $(INCLUDE_INSTALLDIR).
239 (install.libs): Make $(LIB_INSTALLDIR).
241 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
243 * configure.in: Update version to 0.0.1.
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.
250 (install.libs): Specify `--mode=install'.
253 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
255 * Concord 0.0.0 released.
257 * Makefile.in (tar): Fixed.
259 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
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
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*>
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
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.
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.
300 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
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
306 (CONCORD_BDB_put): Likewise.
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*>
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.
331 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
333 * README.en: New file.
335 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
337 * concord.h (concord_genre_get_name): New prototype.
338 (concord_feature_get_genre): New prototype.
340 * concord.c (concord_genre_get_name): New function.
341 (concord_feature_get_genre): New function.
343 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
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.
351 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
353 * concord.h (concord_ds_set_object_failure): Renamed from
354 `concord_ds_set_object_nil'.
356 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
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'.
373 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
375 * concord.c, concord.h (concord_close_ds): Renamed from
378 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
382 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
384 * Makefile.in: New file.
386 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
388 * sysdep.h: New file.
390 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
392 * aclocal.m4, concord-name.h, config.h.in, configure.in,
393 config.guess, config.sub, install-sh, ltmain.sh, name.c: New