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

ruby-changes:49960

From: nobu <ko1@a...>
Date: Sun, 28 Jan 2018 19:35:34 +0900 (JST)
Subject: [ruby-changes:49960] nobu:r62078 (trunk): method.h: BITFIELD in rb_method_definition_t

nobu	2018-01-28 19:35:28 +0900 (Sun, 28 Jan 2018)

  New Revision: 62078

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

  Log:
    method.h: BITFIELD in rb_method_definition_t
    
    * method.h (rb_method_definition_struct): use BITFIELD for
      rb_method_type_t.

  Modified files:
    trunk/method.h
Index: method.h
===================================================================
--- method.h	(revision 62077)
+++ method.h	(revision 62078)
@@ -153,7 +153,7 @@ enum method_optimized_type { https://github.com/ruby/ruby/blob/trunk/method.h#L153
 };
 
 PACKED_STRUCT_UNALIGNED(struct rb_method_definition_struct {
-    unsigned int type :  4; /* method type */
+    BITFIELD(rb_method_type_t) type : 4;
     int alias_count : 28;
     int complemented_count : 28;
 

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

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