summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-10 08:03:24 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-10 08:03:24 +0000
commit65cb26d3c492ff4d045bb6e58e176686db67b017 (patch)
tree7318d30f9c5ec9adb1ad6654d146a63820dbdff0 /eval.c
parent53b7e858f6a7051a3f5eeaca9d8cf1e48ca84664 (diff)
downloadruby-65cb26d3c492ff4d045bb6e58e176686db67b017.tar.gz
ruby-65cb26d3c492ff4d045bb6e58e176686db67b017.tar.xz
ruby-65cb26d3c492ff4d045bb6e58e176686db67b017.zip
* eval.c (ruby_exec_node): removed unused argument.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/eval.c b/eval.c
index e9e76ad4f..b529937d5 100644
--- a/eval.c
+++ b/eval.c
@@ -189,8 +189,8 @@ ruby_cleanup(volatile int ex)
return ex;
}
-int
-ruby_exec_node(void *n, const char *file)
+static int
+ruby_exec_internal(void *n)
{
volatile int state;
VALUE iseq = (VALUE)n;
@@ -218,6 +218,12 @@ ruby_stop(int ex)
int
ruby_run_node(void *n)
{
+ return ruby_cleanup(ruby_exec_node(n));
+}
+
+int
+ruby_exec_node(void *n)
+{
VALUE v = (VALUE)n;
switch (v) {
@@ -228,7 +234,7 @@ ruby_run_node(void *n)
return FIX2INT(v);
}
ruby_init_stack((void *)&n);
- return ruby_cleanup(ruby_exec_node(n, 0));
+ return ruby_exec_internal(n);
}
/*