From cc043890f8cb7c0c057fb076b30765973716c470 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 11 May 2001 05:24:59 +0000 Subject: * bignum.c (bigdivrem): access boundary bug. * marshal.c (w_object): prohibit dumping out singleton classes. * object.c (rb_mod_to_s): distinguish singleton classes. * variable.c (rb_class2name): it's ok to reveal NilClass, TrueClass, FalseClass. * eval.c (rb_yield_0): preserve and restore ruby_cref as well. * eval.c (is_defined): core dumped during instance_eval for special constants. * eval.c (rb_eval): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'string.c') diff --git a/string.c b/string.c index 70e188611e..b760301137 100644 --- a/string.c +++ b/string.c @@ -139,6 +139,13 @@ rb_str_to_str(str) return rb_convert_type(str, T_STRING, "String", "to_str"); } +VALUE +rb_string_value(ptr) + VALUE *ptr; +{ + return *ptr = rb_str_to_str(*ptr); +} + static void rb_str_become(str, str2) VALUE str, str2; -- cgit v1.2.3