[前][次][番号順一覧][スレッド一覧]

ruby-changes:42069

From: nobu <ko1@a...>
Date: Thu, 17 Mar 2016 14:47:49 +0900 (JST)
Subject: [ruby-changes:42069] nobu:r54143 (trunk): compile.c: bit flag

nobu	2016-03-17 14:47:44 +0900 (Thu, 17 Mar 2016)

  New Revision: 54143

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54143

  Log:
    compile.c: bit flag
    
    * compile.c (LABEL): turn `set` flag a bit field.

  Modified files:
    trunk/compile.c
Index: compile.c
===================================================================
--- compile.c	(revision 54142)
+++ compile.c	(revision 54143)
@@ -52,9 +52,9 @@ typedef struct iseq_label_data { https://github.com/ruby/ruby/blob/trunk/compile.c#L52
     int label_no;
     int position;
     int sc_state;
-    int set;
     int sp;
     int refcnt;
+    unsigned int set: 1;
 } LABEL;
 
 typedef struct iseq_insn_data {

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]