summaryrefslogtreecommitdiffstats
path: root/vm.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 00:13:44 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-19 00:13:44 +0000
commite5405de1620db41b599a29f559e3749f19491a98 (patch)
treedd506ad60e9256c9e9046867e6108a60fe84c3c3 /vm.c
parenta20f520455526b06abc5c5647347fee7edcbc8f0 (diff)
downloadruby-e5405de1620db41b599a29f559e3749f19491a98.tar.gz
ruby-e5405de1620db41b599a29f559e3749f19491a98.tar.xz
ruby-e5405de1620db41b599a29f559e3749f19491a98.zip
* eval.c, vm_eval.c (rb_f_local_variables): move definition from eval.c
to vm_eval.c because vm_collect_local_variables_in_heap() should be static function. * vm.c (vm_collect_local_variables_in_heap): make it static. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/vm.c b/vm.c
index 8f33a8952..55a2c84b4 100644
--- a/vm.c
+++ b/vm.c
@@ -373,9 +373,8 @@ collect_local_variables_in_env(rb_env_t * const env, const VALUE ary)
return 0;
}
-int
-vm_collect_local_variables_in_heap(rb_thread_t * const th,
- VALUE * const dfp, const VALUE ary)
+static int
+vm_collect_local_variables_in_heap(rb_thread_t *th, VALUE *dfp, VALUE ary)
{
if (ENV_IN_HEAP_P(th, dfp)) {
rb_env_t *env;