From 527276d621b5ce128b2f32258a10c7fe25f2e280 Mon Sep 17 00:00:00 2001 From: matz Date: Fri, 25 Apr 2003 09:20:51 +0000 Subject: * 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 --- eval.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eval.c') 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: -- cgit