1 2013-04-16 MORIOKA Tomohiko <tomo.git@chise.org>
3 * cos.c (COS_Object_release_function_table): Add
5 (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
7 (cos_release_object): Likewise.
8 (cos_cons): New function.
9 (cos_release_cons): New function.
10 (cos_car): New function.
11 (cos_cdr): New function.
13 * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
14 (COS_OBJECT_CONS_P): New macro.
15 (struct COS_Cons_ent): New structure.
18 (cos_release_cons): New prototype.
20 * cos.h (struct COS_Cons_ent): New structure.
22 (cos_cons): New prototype.
23 (cos_car): New prototype.
24 (cos_cdr): New prototype.
26 2013-04-15 MORIOKA Tomohiko <tomo.git@chise.org>
28 * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
31 * read.c: Include <ctype.h>.
32 (cos_read_int): New function.
34 * cos-read.h (cos_read_int): New prototype.
36 2013-04-14 MORIOKA Tomohiko <tomo.git@chise.org>
38 * cos.c (cos_string_p): New function.
39 (concord_object_get_feature_value): Use `cos_read_char' and
40 `cos_read_string' to parse character and string.
42 * read.c (cos_read_string): New function.
44 * cos.h (cos_string_p): New prototype.
46 * cos-read.h: Include "cos.h".
47 (cos_read_string): New prototype.
49 2013-04-06 MORIOKA Tomohiko <tomo.git@chise.org>
51 * cos.c: Include "cos-print.h".
52 (concord_current_env): New variable.
53 (concord_open_env): Setup `concord_current_env'.
54 (concord_object_get_feature_value): New function.
56 2013-04-04 MORIOKA Tomohiko <tomo.git@chise.org>
59 - Don't include <stdlib.h>.
61 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
62 (cos_utf8_print_char): New function.
64 * cos-print.h: Include stdlib.h and cos.h.
65 (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
66 (cos_utf8_print_char): New prototype.
68 * concord.h (concord_object_get_feature_value): New prototype.
70 2013-04-02 MORIOKA Tomohiko <tomo.git@chise.org>
74 * cos-print.h: New file.
76 * Makefile.in (OBJS): Add print.lo.
77 (print.lo): New target.
79 2013-04-01 MORIOKA Tomohiko <tomo.git@chise.org>
81 * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
82 (concord_open_ds): Delete code to initialize `ds->symbol_names'.
83 (concord_close_ds): Delete code to destroy `ds->symbol_names'.
85 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
87 * cos-read.h: New file.
97 * concord-bdb.c: Move code to include "config.h" into sysdep.h.
100 - Move code to include "config.h" into sysdep.h.
102 (concord_close_genre): Move prototype into cos-i.h.
103 (concord_close_feature): Likewise.
104 (concord_close_index): Likewise.
105 (struct CONCORD_Object_Header): Renamed to `COS_Object_Header';
106 moved to cos-i.h; add new member `reference_count'.
107 (CONCORD_OBJECT_TYPE_NULL): Renamed to `COS_Object_Type_NULL';
108 moved to cos-i.h; use `enum COS_Object_Type'.
109 (CONCORD_OBJECT_TYPE_C_STRING): Renamed to
110 `COS_Object_Type_C_String'; moved to cos-i.h; use `enum
112 (CONCORD_OBJECT_TYPE_INT): Renamed to `COS_Object_Type_int'; moved
113 to cos-i.h; use `enum COS_Object_Type'.
114 (CONCORD_OBJECT_TYPE_DS): Renamed to `COS_Object_Type_DS'; moved
115 to cos-i.h; use `enum COS_Object_Type'.
116 (CONCORD_OBJECT_TYPE_GENRE): Renamed to `COS_Object_Type_Genre';
117 moved to cos-i.h; use `enum COS_Object_Type'.
118 (CONCORD_OBJECT_TYPE_FEATURE): Renamed to
119 `COS_Object_Type_Feature'; moved to cos-i.h; use `enum
121 (CONCORD_OBJECT_TYPE_INDEX): Renamed to
122 `COS_Object_Type_Feature_INDEX'; moved to cos-i.h; use `enum
124 (CONCORD_OBJECT_TYPE_OBJECT): Renamed to
125 `COS_Object_Type_DB_Object'; moved to cos-i.h; use `enum
127 (struct CONCORD_DS_Table): Renamed to `struct COS_DS_ent'; add new
128 member `symbol_names'.
129 (concord_open_ds): Use `COS_ALLOCATE_OBJECT'; initialize
131 (concord_close_ds): Destroy `ds->symbol_names'.
132 (struct CONCORD_Genre_Table): Renamed to `struct COS_Genre_ent'.
133 (concord_ds_open_genre): Use `COS_ALLOCATE_OBJECT'.
134 (struct CONCORD_Feature_Table): Renamed to `struct
136 (concord_genre_open_feature): Use `COS_ALLOCATE_OBJECT'.
137 (struct CONCORD_INDEX_Table): Renamed to `struct
138 COS_Feature_INDEX_ent'.
139 (concord_genre_open_index): Use `COS_ALLOCATE_OBJECT'.
140 (concord_index_get_name): New function.
141 (concord_index_get_genre): New function.
143 * concord.h: Include <cos.h>.
144 (CONCORD_Object): Use `COS_Object' instead of `void*' as the type.
145 (COS_DS_ent): Renamed from `CONCORD_DS_Table'.
147 (CONCORD_DS): Use `COS_DS' instead of `CONCORD_DS_Table*' as the
149 (concord_open_env): New prototype.
150 (COS_Genre_ent): Renamed from `CONCORD_Genre_Table'.
151 (COS_Genre): New type.
152 (CONCORD_Genre): Use `COS_Genre' instead of `CONCORD_Genre_Table*'
154 (concord_get_genre): New prototype.
155 (COS_Feature_ent): Renamed from `CONCORD_Feature_Table'.
156 (COS_Feature): New type.
157 (CONCORD_Feature): Use `COS_Feature' instead of
158 `CONCORD_Feature_Table*' as the type.
159 (concord_get_feature): New prototype.
160 (COS_Feature_INDEX_ent): Renamed from `CONCORD_INDEX_Table'.
161 (COS_Feature_INDEX): New type.
162 (CONCORD_INDEX): Use `COS_Feature_INDEX' instead of
163 `CONCORD_INDEX_Table*' as the type.
164 (concord_get_feature_index): New prototype.
165 (concord_index_get_name): New prototype.
166 (concord_index_get_genre): New prototype.
167 (concord_decode_object): New prototype.
169 * sysdep.h: Include "config.h" if `HAVE_CONFIG_H' is defined.
171 2013-03-30 MORIOKA Tomohiko <tomo.git@chise.org>
175 2013-03-29 MORIOKA Tomohiko <tomo.git@chise.org>
177 * Makefile.in (localstatedir): New variable.
178 (CONCORD_DB_PREFIX): New variable.
179 (CONCORD_DB_FORMAT_VERSION): New variable.
180 (CONCORD_DB_DIR): New variable.
181 (CONCORD_SI_DB_DIR): New variable.
182 (CONCORD_CFLAGS): New variable.
183 (HEADERS): Add cos.h.
184 (OBJS): Add cos.lo, symbol.lo and read.lo.
185 (cos.lo): New target.
186 (symbol.lo): New target.
187 (read.lo): New target.
188 (concord.lo): Depend on cos-i.h and cos.h.
190 2013-03-22 MORIOKA Tomohiko <tomo.git@chise.org>
192 * name.c (concord_hash_c_string): Use `unsigned long' instead of
193 int' as the type of return value.
195 2013-03-21 MORIOKA Tomohiko <tomo.git@chise.org>
197 * config.h.in (SIZEOF_INT): New macro.
198 (SIZEOF_LONG): New macro.
199 (SIZEOF_LONG_LONG): New macro.
200 (SIZEOF_VOID_P): New macro.
201 (BITS_PER_CHAR): New macro.
203 * configure.in: Add `AC_CHECK_SIZEOF(int)',
204 `AC_CHECK_SIZEOF(long)', `AC_CHECK_SIZEOF(long long)' and
205 `AC_CHECK_SIZEOF(void *)'.
207 2011-10-31 MORIOKA Tomohiko <tomo.git@chise.org>
209 * Makefile.in (ABI_VERSION): Update to 1:0:1.
211 * concord.c (struct CONCORD_Object_Header): New structure.
212 (CONCORD_OBJECT_TYPE_NULL): New macro.
213 (CONCORD_OBJECT_TYPE_C_STRING): New macro.
214 (CONCORD_OBJECT_TYPE_INT): New macro.
215 (CONCORD_OBJECT_TYPE_DS): New macro.
216 (CONCORD_OBJECT_TYPE_GENRE): New macro.
217 (CONCORD_OBJECT_TYPE_FEATURE): New macro.
218 (CONCORD_OBJECT_TYPE_INDEX): New macro.
219 (CONCORD_OBJECT_TYPE_OBJECT): New macro.
220 (struct CONCORD_DS_Table): Add new member `header'.
221 (concord_open_ds): Setup ds->header.
222 (struct CONCORD_Genre_Table): Add new member `header'.
223 (concord_ds_open_genre): Setup ds->header.
224 (struct CONCORD_Feature_Table): Add new member `header'.
225 (concord_genre_open_feature): Setup ds->header.
226 (struct CONCORD_INDEX_Table): Add new member `header'.
227 (concord_genre_open_index): Setup ds->header.
229 2012-07-07 MORIOKA Tomohiko <tomo.git@chise.org>
231 * configure.in: Support db5 in Fink.
233 2012-04-25 MORIOKA Tomohiko <tomo.git@chise.org>
235 * README.en (Reporting Bugs): Modify for
236 chise-{en|ja}@lists.chise.org.
238 2012-04-09 MORIOKA Tomohiko <tomo.git@chise.org>
240 * README.en: Remove descriptions about CVS and add description
241 about the new Git repository.
243 2012-02-08 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
246 - Don't use "AC_CHECK_FUNCS(strnlen)".
247 - When $ac_cv_func_strnlen_working = "yes", define HAVE_STRNLEN.
249 2011-08-24 MORIOKA Tomohiko <tomo@zinbun.kyoto-u.ac.jp>
251 * Makefile.in (CFLAGS): Add $(DEFS).
254 2010-06-10 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
256 * Concord 0.0.2 released.
258 * configure.in: Update version to 0.0.2.
260 2008-07-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
262 * configure.in: Add settings for --with-site-includes=PATH and
263 --with-site-libraries=PATH.
266 2008-05-27 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
268 * Concord 0.0.1 released.
270 2008-01-12 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
272 * Makefile.in (MKDIR): New variable.
273 (install.h): Make $(INCLUDE_INSTALLDIR).
274 (install.libs): Make $(LIB_INSTALLDIR).
276 2006-12-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
278 * configure.in: Update version to 0.0.1.
280 * Makefile.in (libconcord.la): Specify `-no-undefined' to avoid
281 error on Cygwin [suggested by KAMICHI Koichi <kamichi@fonts.jp>].
282 (concord.lo): Specify `--mode=compile'.
283 (concord-bdb.lo): ditto.
285 (install.libs): Specify `--mode=install'.
288 2006-05-11 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
290 * Concord 0.0.0 released.
292 * Makefile.in (tar): Fixed.
294 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
296 * concord.c (concord_ds_open_genre): Use <char*> instead of
297 <unsigned char*> for genre-name.
298 (concord_genre_open_feature): Likewise.
299 (concord_genre_open_index): Use <char*> instead of <unsigned
300 char*> for index-name.
301 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
302 char*> for feature-name.
303 (struct CONCORD_DS_Table): Use <char*> instead of <unsigned char*>
304 for member `location'.
305 (concord_default_read_object): Cast to avoid warning.
306 (concord_open_ds): Use <char*> instead of <unsigned char*> for
308 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
309 char*> for ds->location; cast to avoid warning.
310 (struct CONCORD_Genre_Table): Use <char*> instead of <unsigned
311 char*> for member `name'.
312 (concord_ds_open_genre): Use <char*> instead of <unsigned char*>
314 (concord_genre_foreach_feature_name): Use <char*> instead of
315 <unsigned char*> for ds->location.
316 (concord_genre_get_feature_0): Use <char*> instead of <unsigned
317 char*> for genre-name.
318 (concord_genre_get_feature): Use <char*> instead of <unsigned
320 (struct CONCORD_Feature_Table): Use <char*> instead of <unsigned
321 char*> for member `name'.
322 (concord_genre_open_feature): Use <char*> instead of <unsigned
323 char*> for feature-name.
324 (concord_obj_gets_feature_value): Cast to avoid warning.
325 (struct CONCORD_INDEX_Table): Use <char*> instead of <unsigned
326 char*> for member `name'.
327 (concord_genre_open_index): Use <char*> instead of <unsigned
328 char*> for index-name.
329 (concord_index_strid_put_obj): Cast to avoid warning.
331 * name.c, concord-name.h (concord_name_table_put): Use <char*>
332 instead of <unsigned char*> for key.
333 (concord_name_table_get): Likewise.
335 2006-04-14 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
337 * concord-bdb.c, concord-bdb.h (CONCORD_BDB_open): Use <char*>
338 instead of <unsigned char*> for db_dir, genre, key_type and name.
339 (CONCORD_BDB_get): Use <char*> instead of <unsigned char*> for
341 (CONCORD_BDB_put): Likewise.
343 * concord.c, concord.h (concord_open_ds): Use <char*> instead of
344 <unsigned char*> for location.
345 (concord_ds_location): Likewise.
346 (concord_ds_foreach_genre_name): Use <char*> instead of <unsigned
347 char*> for genre-name.
348 (concord_ds_get_genre): Likewise.
349 (concord_genre_get_name): Likewise.
350 (concord_genre_foreach_feature_name): Likewise.
351 (concord_genre_get_feature): Use <char*> instead of <unsigned
352 char*> for feature-name.
353 (concord_feature_get_name): Likewise.
354 (concord_obj_put_feature_value_str): Use <char*> instead of
355 <unsigned char*> for object-id.
356 (concord_obj_get_feature_value): Likewise.
357 (concord_obj_get_feature_value_string): Likewise.
358 (concord_obj_gets_feature_value): Likewise.
359 (concord_genre_get_index): Use <char*> instead of <unsigned char*>
361 (concord_index_strid_put_obj): Use <char*> instead of <unsigned
362 char*> for indexer and object-id.
363 (concord_index_strid_get_obj_string): Use <char*> instead of
364 <unsigned char*> for indexer.
366 2006-02-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
368 * README.en: New file.
370 2005-12-04 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
372 * concord.h (concord_genre_get_name): New prototype.
373 (concord_feature_get_genre): New prototype.
375 * concord.c (concord_genre_get_name): New function.
376 (concord_feature_get_genre): New function.
378 2005-06-30 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
380 * concord.c (concord_ds_set_object_failure): Renamed from
381 `concord_ds_set_object_nil'.
382 (concord_genre_get_feature_0): New function.
383 (concord_genre_get_feature): New implementation; use
384 `concord_genre_get_feature_0'; support feature alias.
386 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
388 * concord.h (concord_ds_set_object_failure): Renamed from
389 `concord_ds_set_object_nil'.
391 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
393 * concord.c, concord.h (concord_obj_put_feature_value_str):
394 Renamed from `concord_stroid_set_feature_str'.
395 (concord_obj_get_feature_value): Renamed from
396 `concord_stroid_get_feature_object'.
397 (concord_obj_get_feature_value_string): Renamed from
398 `concord_stroid_get_feature_string'.
399 (concord_obj_gets_feature_value): Renamed from
400 `concord_stroid_gets_feature'.
401 (concord_feature_foreach_obj_string): Renamed from
402 `concord_feature_foreach_object_string'.
403 (concord_index_strid_get_obj_string): Renamed from
404 `concord_index_strid_get_object_string'.
405 (concord_index_strid_put_obj): Renamed from
406 `concord_index_strid_set_object_str'.
408 2005-06-24 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
410 * concord.c, concord.h (concord_close_ds): Renamed from
413 2005-06-22 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
415 * concord-bdb.c, concord-bdb.h, concord.c, concord.h: New files.
417 2005-06-21 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
419 * Makefile.in: New file.
421 2005-06-20 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
423 * sysdep.h: New file.
425 2005-06-18 MORIOKA Tomohiko <tomo@kanji.zinbun.kyoto-u.ac.jp>
427 * aclocal.m4, concord-name.h, config.h.in, configure.in,
428 config.guess, config.sub, install-sh, ltmain.sh, name.c: New