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

Back to archive index

Kouhei Sutou kous****@users*****
2006年 11月 27日 (月) 18:11:09 JST


Index: tomoe/ext/ruby/tomoe-rb-writing.c
diff -u tomoe/ext/ruby/tomoe-rb-writing.c:1.6 tomoe/ext/ruby/tomoe-rb-writing.c:1.7
--- tomoe/ext/ruby/tomoe-rb-writing.c:1.6	Mon Nov 27 13:23:47 2006
+++ tomoe/ext/ruby/tomoe-rb-writing.c	Mon Nov 27 18:11:09 2006
@@ -26,9 +26,9 @@
 }
 
 static VALUE
-tw_get_number_of_strokes(VALUE self)
+tw_get_n_strokes(VALUE self)
 {
-    return UINT2NUM(tomoe_writing_get_number_of_strokes(_SELF(self)));
+    return UINT2NUM(tomoe_writing_get_n_strokes(_SELF(self)));
 }
 
 static VALUE
@@ -110,8 +110,7 @@
     rb_define_method(cTomoeWriting, "move_to", tw_move_to, 2);
     rb_define_method(cTomoeWriting, "line_to", tw_line_to, 2);
     rb_define_method(cTomoeWriting, "clear", tw_clear, 0);
-    rb_define_method(cTomoeWriting, "number_of_strokes",
-                     tw_get_number_of_strokes, 0);
+    rb_define_method(cTomoeWriting, "n_strokes", tw_get_n_strokes, 0);
     rb_define_method(cTomoeWriting, "remove_last_stroke",
                      tw_remove_last_stroke, 0);
 


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