From 9ddb37f071688be901c8e0b4e914d15313cdc900 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 20 Apr 2008 05:58:59 +0000 Subject: * compile.c (struct iseq_link_element, struct iseq_insn_data): made enum for debuggers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 002ea9f262..9571e98282 100644 --- a/compile.c +++ b/compile.c @@ -34,13 +34,13 @@ VALUE vm_eval(void *); /* 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_label_data { 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; -- cgit v1.2.3