* iseq.c (insn_operand_intern): remove Qundef related code.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ko1 2008-05-14 03:48:39 +00:00
parent 921fb6ae25
commit a6bec14471
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,7 @@
Wed May 14 12:46:37 2008 Koichi Sasada <ko1@atdot.net>
* iseq.c (insn_operand_intern): remove Qundef related code.
Wed May 14 12:42:36 2008 Akinori MUSHA <knu@iDaemons.org> Wed May 14 12:42:36 2008 Akinori MUSHA <knu@iDaemons.org>
* array.c (rb_ary_count): Override Enumerable#count for better * array.c (rb_ary_count): Override Enumerable#count for better

6
iseq.c
View File

@ -659,16 +659,12 @@ insn_operand_intern(rb_iseq_t *iseq,
} }
case TS_ID: /* ID (symbol) */ case TS_ID: /* ID (symbol) */
op = ID2SYM(op); op = ID2SYM(op);
case TS_VALUE: /* VALUE */ case TS_VALUE: /* VALUE */
if (op == Qundef) {
ret = rb_str_new2("undef");
}
else {
ret = rb_inspect(op); ret = rb_inspect(op);
if (CLASS_OF(op) == rb_cISeq) { if (CLASS_OF(op) == rb_cISeq) {
rb_ary_push(child, op); rb_ary_push(child, op);
} }
}
break; break;
case TS_ISEQ: /* iseq */ case TS_ISEQ: /* iseq */