mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
* yarvcore.h: some refactoring on rb_iseq_t.
rename some variable names, add comments, etc. * compile.c, iseq.c, proc.c, vm.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12673 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb9aaa4c4f
commit
6a69ad4df1
6 changed files with 70 additions and 59 deletions
4
proc.c
4
proc.c
|
@ -548,8 +548,8 @@ proc_to_s(VALUE self)
|
|||
if (RUBY_VM_NORMAL_ISEQ_P(iseq)) {
|
||||
int line_no = 0;
|
||||
|
||||
if (iseq->insn_info_tbl) {
|
||||
line_no = iseq->insn_info_tbl[0].line_no;
|
||||
if (iseq->insn_info_table) {
|
||||
line_no = iseq->insn_info_table[0].line_no;
|
||||
}
|
||||
str = rb_sprintf("#<%s:%p@%s:%d%s>", cname, (void *)self,
|
||||
RSTRING_PTR(iseq->filename),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue