Kouhei Sutou
kous****@users*****
2006年 11月 27日 (月) 13:37:52 JST
Index: tomoe/ext/ruby/tomoe-rb-char.c diff -u tomoe/ext/ruby/tomoe-rb-char.c:1.2 tomoe/ext/ruby/tomoe-rb-char.c:1.3 --- tomoe/ext/ruby/tomoe-rb-char.c:1.2 Tue Nov 21 15:15:34 2006 +++ tomoe/ext/ruby/tomoe-rb-char.c Mon Nov 27 13:37:52 2006 @@ -8,6 +8,12 @@ return CSTR2RVAL(tomoe_char_get_code(_SELF(self))); } +static VALUE +tc_get_writing(VALUE self) +{ + return GOBJ2RVAL(tomoe_char_get_writing(_SELF(self))); +} + void Init_tomoe_char(VALUE mTomoe) { @@ -16,5 +22,6 @@ cTomoeChar = G_DEF_CLASS(TOMOE_TYPE_CHAR, "Char", mTomoe); rb_define_method(cTomoeChar, "code", tc_get_code, 0); + rb_define_method(cTomoeChar, "writing", tc_get_writing, 0); }