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

ruby-changes:52284

From: nobu <ko1@a...>
Date: Tue, 21 Aug 2018 11:11:47 +0900 (JST)
Subject: [ruby-changes:52284] nobu:r64492 (trunk): cont.c: fix syntax error

nobu	2018-08-21 11:11:39 +0900 (Tue, 21 Aug 2018)

  New Revision: 64492

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

  Log:
    cont.c: fix syntax error
    
    * cont.c (struct rb_fiber_struct): fix wrong usage of BITFIELD in
      r64487, which caused syntax error on pre-C99 compilers.

  Modified files:
    trunk/cont.c
Index: cont.c
===================================================================
--- cont.c	(revision 64491)
+++ cont.c	(revision 64492)
@@ -175,7 +175,7 @@ struct rb_fiber_struct { https://github.com/ruby/ruby/blob/trunk/cont.c#L175
     rb_context_t cont;
     VALUE first_proc;
     struct rb_fiber_struct *prev;
-    BITFIELD(enum fiber_status status) : 2;
+    BITFIELD(enum fiber_status) status : 2;
     /* If a fiber invokes "transfer",
      * then this fiber can't "resume" any more after that.
      * You shouldn't mix "transfer" and "resume".

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

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