From aa963d33576f593d1472bd5f297abf58b88d3ad0 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 10 Oct 2009 08:03:24 +0000 Subject: [PATCH] * eval.c (ruby_exec_node): removed unused argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ eval.c | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5b67901e73..6c35c8d7d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Oct 10 17:03:22 2009 Nobuyoshi Nakada + + * eval.c (ruby_exec_node): removed unused argument. + Sat Oct 10 14:55:55 2009 Marc-Andre Lafortune * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns diff --git a/eval.c b/eval.c index e9e76ad4fb..b529937d58 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; @@ -217,6 +217,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; @@ -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); } /*