ruby-changes:4920
From: ko1@a...
Date: Wed, 14 May 2008 12:48:57 +0900 (JST)
Subject: [ruby-changes:4920] ko1 - Ruby:r16413 (trunk): * iseq.c (insn_operand_intern): remove Qundef related code.
ko1 2008-05-14 12:48:39 +0900 (Wed, 14 May 2008)
New Revision: 16413
Modified files:
trunk/ChangeLog
trunk/iseq.c
Log:
* iseq.c (insn_operand_intern): remove Qundef related code.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16413&r2=16412&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/iseq.c?r1=16413&r2=16412&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16412)
+++ ChangeLog (revision 16413)
@@ -1,3 +1,7 @@
+Wed May 14 12:46:37 2008 Koichi Sasada <ko1@a...>
+
+ * iseq.c (insn_operand_intern): remove Qundef related code.
+
Wed May 14 12:42:36 2008 Akinori MUSHA <knu@i...>
* array.c (rb_ary_count): Override Enumerable#count for better
Index: iseq.c
===================================================================
--- iseq.c (revision 16412)
+++ iseq.c (revision 16413)
@@ -659,16 +659,12 @@
}
case TS_ID: /* ID (symbol) */
op = ID2SYM(op);
+
case TS_VALUE: /* VALUE */
- if (op == Qundef) {
- ret = rb_str_new2("undef");
+ ret = rb_inspect(op);
+ if (CLASS_OF(op) == rb_cISeq) {
+ rb_ary_push(child, op);
}
- 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/