ruby-changes:4600
From: ko1@a...
Date: Sun, 20 Apr 2008 14:59:19 +0900 (JST)
Subject: [ruby-changes:4600] nobu - Ruby:r16094 (trunk): * compile.c (struct iseq_link_element, struct iseq_insn_data): made
nobu 2008-04-20 14:58:59 +0900 (Sun, 20 Apr 2008)
New Revision: 16094
Modified files:
trunk/ChangeLog
trunk/compile.c
trunk/template/insns.inc.tmpl
Log:
* compile.c (struct iseq_link_element, struct iseq_insn_data): made
enum for debuggers.
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/compile.c?r1=16094&r2=16093&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16094&r2=16093&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/template/insns.inc.tmpl?r1=16094&r2=16093&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 16093)
+++ ChangeLog (revision 16094)
@@ -1,3 +1,8 @@
+Sun Apr 20 14:58:57 2008 Nobuyoshi Nakada <nobu@r...>
+
+ * compile.c (struct iseq_link_element, struct iseq_insn_data): made
+ enum for debuggers.
+
Sun Apr 20 14:44:45 2008 Nobuyoshi Nakada <nobu@r...>
* compile.c (iseq_compile_each): fix for splat in when and rescue.
Index: compile.c
===================================================================
--- compile.c (revision 16093)
+++ compile.c (revision 16094)
@@ -34,13 +34,13 @@
/* types */
-#define ISEQ_ELEMENT_NONE INT2FIX(0x00)
-#define ISEQ_ELEMENT_LABEL INT2FIX(0x01)
-#define ISEQ_ELEMENT_INSN INT2FIX(0x02)
-#define ISEQ_ELEMENT_ADJUST INT2FIX(0x03)
-
typedef struct iseq_link_element {
- int type;
+ enum {
+ ISEQ_ELEMENT_NONE = INT2FIX(0x00),
+ ISEQ_ELEMENT_LABEL = INT2FIX(0x01),
+ ISEQ_ELEMENT_INSN = INT2FIX(0x02),
+ ISEQ_ELEMENT_ADJUST = INT2FIX(0x03),
+ } type;
struct iseq_link_element *next;
struct iseq_link_element *prev;
} LINK_ELEMENT;
@@ -61,7 +61,7 @@
typedef struct iseq_insn_data {
LINK_ELEMENT link;
- int insn_id;
+ enum ruby_vminsn_type insn_id;
int line_no;
int operand_size;
int sc_state;
Index: template/insns.inc.tmpl
===================================================================
--- template/insns.inc.tmpl (revision 16093)
+++ template/insns.inc.tmpl (revision 16094)
@@ -13,7 +13,7 @@
/* BIN : Basic Instruction Name */
#define BIN(n) YARVINSN_##n
-enum{
+enum ruby_vminsn_type {
<%= insns %>
};
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/