ruby-changes:34302
From: nobu <ko1@a...>
Date: Sun, 8 Jun 2014 23:46:51 +0900 (JST)
Subject: [ruby-changes:34302] nobu:r46383 (trunk): compile.c: use enum
nobu 2014-06-08 23:46:43 +0900 (Sun, 08 Jun 2014) New Revision: 46383 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46383 Log: compile.c: use enum * compile.c (new_insn_body): use enum instead of bare int. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 46382) +++ compile.c (revision 46383) @@ -331,7 +331,7 @@ static void dump_disasm_list(LINK_ELEMEN https://github.com/ruby/ruby/blob/trunk/compile.c#L331 static int insn_data_length(INSN *iobj); static int calc_sp_depth(int depth, INSN *iobj); -static INSN *new_insn_body(rb_iseq_t *iseq, int line_no, int insn_id, int argc, ...); +static INSN *new_insn_body(rb_iseq_t *iseq, int line_no, enum ruby_vminsn_type insn_id, int argc, ...); static LABEL *new_label_body(rb_iseq_t *iseq, long line); static ADJUST *new_adjust_body(rb_iseq_t *iseq, LABEL *label, int line); @@ -930,7 +930,7 @@ new_insn_core(rb_iseq_t *iseq, int line_ https://github.com/ruby/ruby/blob/trunk/compile.c#L930 } static INSN * -new_insn_body(rb_iseq_t *iseq, int line_no, int insn_id, int argc, ...) +new_insn_body(rb_iseq_t *iseq, int line_no, enum ruby_vminsn_type insn_id, int argc, ...) { VALUE *operands = 0; va_list argv; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/