diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 01:34:33 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-25 01:34:33 +0000 |
commit | 71986ef6bc232455deca67017873fff0c3cbd860 (patch) | |
tree | 17e911455026648c655301e248364e2b84a46bd1 /vm.c | |
parent | 9c9b619799aea31eb2505749386ed3a530246bbb (diff) | |
download | ruby-71986ef6bc232455deca67017873fff0c3cbd860.tar.gz |
* yarvcore.h:
rename:
rb_iseq_t#file_name -> filename
rb_iseq_t#local_tbl -> local_table
add:
rb_iseq_t#local_table_size
* compile.c: separate local_table_size and local_size
(local variable size)
* blockinlining.c: apply above rename.
* compile.h: ditto.
* eval.c: ditto.
* iseq.c: ditto.
* proc.c: ditto.
* vm.c: ditto.
* vm_dump.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.c')
-rw-r--r-- | vm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -376,8 +376,8 @@ collect_local_variables_in_env(rb_env_t *env, VALUE ary) if (env->block.lfp == env->block.dfp) { return 0; } - for (i = 0; i < env->block.iseq->local_size; i++) { - ID lid = env->block.iseq->local_tbl[i]; + for (i = 0; i < env->block.iseq->local_table_size; i++) { + ID lid = env->block.iseq->local_table[i]; if (lid) { rb_ary_push(ary, rb_str_new2(rb_id2name(lid))); } @@ -986,7 +986,7 @@ th_backtrace_each(rb_thread_t *th, rb_iseq_t *iseq = cfp->iseq; line_no = th_get_sourceline(cfp); - file = RSTRING_PTR(iseq->file_name); + file = RSTRING_PTR(iseq->filename); str = rb_sprintf("%s:%d:in `%s'", file, line_no, RSTRING_PTR(iseq->name)); rb_ary_push(ary, str); |