From f4ca906d5c3267c0f84db4c5780829783c71a8b6 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 7 Jul 2011 06:40:33 +0000 Subject: * ext/-test-/string/modify.c: split from init.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/-test-/string/modify.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 ext/-test-/string/modify.c (limited to 'ext/-test-/string/modify.c') diff --git a/ext/-test-/string/modify.c b/ext/-test-/string/modify.c new file mode 100644 index 0000000000..a6930051b6 --- /dev/null +++ b/ext/-test-/string/modify.c @@ -0,0 +1,14 @@ +#include "ruby.h" + +VALUE +bug_str_modify(VALUE str) +{ + rb_str_modify(str); + return str; +} + +void +Init_modify(VALUE klass) +{ + rb_define_method(klass, "modify!", bug_str_modify, 0); +} -- cgit v1.2.3