[Tomoe-cvs 1443] CVS update: tomoe/ext/ruby

Back to archive index

Kouhei Sutou kous****@users*****
2006年 11月 30日 (木) 15:40:32 JST


Index: tomoe/ext/ruby/tomoe-rb-dict.c
diff -u tomoe/ext/ruby/tomoe-rb-dict.c:1.9 tomoe/ext/ruby/tomoe-rb-dict.c:1.10
--- tomoe/ext/ruby/tomoe-rb-dict.c:1.9	Thu Nov 30 15:30:19 2006
+++ tomoe/ext/ruby/tomoe-rb-dict.c	Thu Nov 30 15:40:32 2006
@@ -65,6 +65,12 @@
     return CBOOL2RVAL(tomoe_dict_unregister_char(_SELF(self), RVAL2CSTR(utf8)));
 }
 
+static VALUE
+td_flush(VALUE self)
+{
+    return CBOOL2RVAL(tomoe_dict_flush(_SELF(self)));
+}
+
 void
 Init_tomoe_dict(VALUE mTomoe)
 {
@@ -80,4 +86,6 @@
     rb_define_method(cTomoeDict, "[]", td_get_char, 1);
     rb_define_method(cTomoeDict, "register", td_register_char, 1);
     rb_define_method(cTomoeDict, "unregister", td_unregister_char, 1);
+
+    rb_define_method(cTomoeDict, "flush", td_flush, 0);
 }


tomoe-cvs メーリングリストの案内
Back to archive index