ruby-changes:4807
From: ko1@a...
Date: Tue, 6 May 2008 00:30:43 +0900 (JST)
Subject: [ruby-changes:4807] matz - Ruby:r16301 (trunk): * iseq.c (insn_operand_intern): should handle Qundef embedded in
matz 2008-05-06 00:30:07 +0900 (Tue, 06 May 2008) New Revision: 16301 Modified files: trunk/ChangeLog trunk/iseq.c Log: * iseq.c (insn_operand_intern): should handle Qundef embedded in operand. [ruby-core:16656] http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16301&r2=16300&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/iseq.c?r1=16301&r2=16300&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 16300) +++ ChangeLog (revision 16301) @@ -1,3 +1,8 @@ +Tue May 6 00:29:21 2008 Yukihiro Matsumoto <matz@r...> + + * iseq.c (insn_operand_intern): should handle Qundef embedded in + operand. [ruby-core:16656] + Tue May 6 00:00:02 2008 Yukihiro Matsumoto <matz@r...> * compile.c (iseq_compile_each): should call compile_cpath() for Index: iseq.c =================================================================== --- iseq.c (revision 16300) +++ iseq.c (revision 16301) @@ -660,10 +660,15 @@ case TS_ID: /* ID (symbol) */ op = ID2SYM(op); case TS_VALUE: /* VALUE */ - ret = rb_inspect(op); - if (CLASS_OF(op) == rb_cISeq) { - rb_ary_push(child, op); + if (op == Qundef) { + ret = rb_str_new2("undef"); } + else { + ret = rb_inspect(op); + if (CLASS_OF(op) == rb_cISeq) { + rb_ary_push(child, op); + } + } break; case TS_ISEQ: /* iseq */ -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/