summaryrefslogtreecommitdiff
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
commit4316e4d99b856fcd16a2aa0f08cb6285dcab24af (patch)
treedd506ad60e9256c9e9046867e6108a60fe84c3c3 /vm.c
parentb96f428e4892e4eb568ae47478947b886ae2dc87 (diff)
* 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: svn+ssh://ci.ruby-lang.org/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 8f33a8952a..55a2c84b4a 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;