summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-31 04:00:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-01-31 04:00:17 +0000
commit74d5623029b0b8fb987a45190f3a3eac082990e1 (patch)
tree7098f68924d61777d091df010681e173627091a5 /variable.c
parente474ae633851e9956a94bd96fc40540740a367c0 (diff)
downloadruby-74d5623029b0b8fb987a45190f3a3eac082990e1.tar.gz
* variable.c (rb_obj_classname): new function.
* string.c (rb_str_dup): should preserve original's class (but not hidden singleton class). * string.c (rb_str_substr): ditto. * parse.y: backout EXPR_CMDARG removal. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/variable.c b/variable.c
index b2d78ce317..27704111e2 100644
--- a/variable.c
+++ b/variable.c
@@ -311,6 +311,13 @@ rb_class2name(klass)
return RSTRING(rb_class_path(klass))->ptr;
}
+char *
+rb_obj_classname(obj)
+ VALUE obj;
+{
+ return rb_obj_classname(obj);
+}
+
struct trace_var {
int removed;
void (*func)();