update.
[chise/concord.git] / ChangeLog
index 4b6f3f7..24ded0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,148 @@
+2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * symbol.c (cos_make_symbol): Use `cos_retain_object' for
+       `obj->name'.
+       (cos_retain_symbol): New function.
+
+       * cos.c (COS_Object_retain_function_table): New variable.
+       (cos_retain_object): Call a retain-function in
+       `COS_Object_retain_function_table'.
+       (cos_retain_string): New function.
+       (cos_retain_cons): New function.
+       (cos_retain_container): New function.
+       (cos_retain_sexp): New function.
+       (cos_retain_binary): New function.
+       (cos_retain_ds): New function.
+       (cos_retain_genre): New function.
+       (cos_retain_feature): New function.
+       (cos_retain_index): New function.
+       (cos_retain_db_object): New function.
+
+       * cos-i.h (COS_Object_retain_function_table): New variable.
+       (cos_retain_string): New prototype.
+       (cos_retain_symbol): New prototype.
+       (cos_retain_cons): New prototype.
+       (cos_retain_container): New prototype.
+       (cos_retain_sexp): New prototype.
+       (cos_retain_binary): New prototype.
+       (cos_retain_ds): New prototype.
+       (cos_retain_genre): New prototype.
+       (cos_retain_feature): New prototype.
+       (cos_retain_index): New prototype.
+       (cos_retain_db_object): New prototype.
+
+2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * Makefile.in (symbol-test): New target.
+
+2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * name.c (concord_name_table_grow): Release old `table->data'.
+
+       * cos.h: Include <stdlib.h>.
+       (cos_Qnil): New variable.
+       (cos_Qt): New variable.
+       (cos_print_object): New prototype.
+
+       * symbol.c (cos_string_ent_nil): New variable.
+       (cos_symbol_ent_nil): New variable.
+       (cos_Qnil): New variable.
+       (cos_string_ent_t): New variable.
+       (cos_symbol_ent_t): New variable.
+       (cos_Qt): New variable.
+       (cos_intern): Setup `nil' and `t'.
+       (cos_symbol_table_grow): Release old `table->data'.
+
+       * print.c (cos_print_object): New function.
+
+2013-04-16  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * cos.c (COS_Object_release_function_table): Add
+       `cos_release_cons'.
+       (cos_retain_object): Use `COS_OBJECT_P' to check `obj' is a fat
+       object.
+       (cos_release_object): Likewise.
+       (cos_cons): New function.
+       (cos_release_cons): New function.
+       (cos_car): New function.
+       (cos_cdr): New function.
+
+       * cos-i.h (enum COS_Object_Type): Add COS_Object_Type_Cons.
+       (COS_OBJECT_CONS_P): New macro.
+       (struct COS_Cons_ent): New structure.
+       (COS_CAR): New macro.
+       (COS_CDR): New macro.
+       (cos_release_cons): New prototype.
+
+       * cos.h (struct COS_Cons_ent): New structure.
+       (COS_Cons): New type.
+       (cos_cons): New prototype.
+       (cos_car): New prototype.
+       (cos_cdr): New prototype.
+
+2013-04-15  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * cos.c (concord_object_get_feature_value): Use `cos_read_int' to
+       parse integer.
+
+       * read.c: Include <ctype.h>.
+       (cos_read_int): New function.
+
+       * cos-read.h (cos_read_int): New prototype.
+
+2013-04-14  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * cos.c (cos_string_p): New function.
+       (concord_object_get_feature_value): Use `cos_read_char' and
+       `cos_read_string' to parse character and string.
+
+       * read.c (cos_read_string): New function.
+
+       * cos.h (cos_string_p): New prototype.
+
+       * cos-read.h: Include "cos.h".
+       (cos_read_string): New prototype.
+
+2013-04-06  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * cos.c: Include "cos-print.h".
+       (concord_current_env): New variable.
+       (concord_open_env): Setup `concord_current_env'.
+       (concord_object_get_feature_value): New function.
+
+2013-04-04  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * print.c:
+       - Don't include <stdlib.h>.
+       - Include "cos-i.h".
+       (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
+       (cos_utf8_print_char): New function.
+
+       * cos-print.h: Include stdlib.h and cos.h.
+       (cos_utf8_encode_char): Renamed from `cos_encode_char_as_utf8'.
+       (cos_utf8_print_char): New prototype.
+
+       * concord.h (concord_object_get_feature_value): New prototype.
+
+2013-04-02  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * print.c: New file.
+
+       * cos-print.h: New file.
+
+       * Makefile.in (OBJS): Add print.lo.
+       (print.lo): New target.
+
+2013-04-01  MORIOKA Tomohiko  <tomo.git@chise.org>
+
+       * concord.c (struct COS_DS_ent): Delete member `symbol_names'.
+       (concord_open_ds): Delete code to initialize `ds->symbol_names'.
+       (concord_close_ds): Delete code to destroy `ds->symbol_names'.
+
 2013-03-30  MORIOKA Tomohiko  <tomo.git@chise.org>
 
+       * cos-read.h: New file.
+
        * cos.h: New file.
 
        * symbol.c: New file.