* iseq.c (ruby_iseq_disasm): fix to show post arg info.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2007-05-17 04:04:49 +00:00
Родитель 84fbcb9694
Коммит 8206839659
2 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -1,3 +1,7 @@
Thu May 17 13:01:52 2007 Koichi Sasada <ko1@atdot.net>
* iseq.c (ruby_iseq_disasm): fix to show post arg info.
Thu May 17 12:56:52 2007 Koichi Sasada <ko1@atdot.net> Thu May 17 12:56:52 2007 Koichi Sasada <ko1@atdot.net>
* debug.c (ruby_debug_node): fix to show node line. * debug.c (ruby_debug_node): fix to show node line.

5
iseq.c
Просмотреть файл

@ -752,9 +752,10 @@ ruby_iseq_disasm(VALUE self)
if (tbl) { if (tbl) {
snprintf(buff, sizeof(buff), snprintf(buff, sizeof(buff),
"local table (size: %d, argc: %d " "local table (size: %d, argc: %d "
"[opts: %d, rest: %d, block: %d] %s)\n", "[opts: %d, rest: %d, post: %d, block: %d] %s)\n",
iseqdat->local_size, iseqdat->argc, iseqdat->local_size, iseqdat->argc,
iseqdat->arg_opts, iseqdat->arg_rest, iseqdat->arg_block, iseqdat->arg_opts, iseqdat->arg_rest,
iseqdat->arg_post_len, iseqdat->arg_block,
iseqdat->arg_simple ? "s" : "c"); iseqdat->arg_simple ? "s" : "c");
rb_str_cat2(str, buff); rb_str_cat2(str, buff);