summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-25 09:20:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-25 09:20:51 +0000
commit527276d621b5ce128b2f32258a10c7fe25f2e280 (patch)
tree11acacdc4849e3b911c1d8ef6a85a0145dd4bdd2 /eval.c
parent1aa4b11a7c6fd3be489db593b07fc2eef39588bc (diff)
downloadruby-527276d621b5ce128b2f32258a10c7fe25f2e280.tar.gz
ruby-527276d621b5ce128b2f32258a10c7fe25f2e280.tar.xz
ruby-527276d621b5ce128b2f32258a10c7fe25f2e280.zip
* eval.c (splat_value): split splat_value() and avalue_splat().
* io.c: there's no way to set non-IO value to current_file, thus no need for argf_forward(). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eval.c b/eval.c
index 9ce0f1c49..9240f3850 100644
--- a/eval.c
+++ b/eval.c
@@ -2299,7 +2299,7 @@ splat_value(v)
}
}
#endif
- return avalue_splat(rb_Array(v));
+ return rb_Array(v);
}
static VALUE
@@ -2686,7 +2686,7 @@ rb_eval(self, n)
break;
case NODE_SPLAT:
- result = splat_value(rb_eval(self, node->nd_head));
+ result = avalue_splat(splat_value(rb_eval(self, node->nd_head)));
break;
case NODE_SVALUE: