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

ruby-changes:53675

From: samuel <ko1@a...>
Date: Wed, 21 Nov 2018 03:37:41 +0900 (JST)
Subject: [ruby-changes:53675] samuel:r65872 (trunk): Fix struct usage.

samuel	2018-11-20 19:18:01 +0900 (Tue, 20 Nov 2018)

  New Revision: 65872

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

  Log:
    Fix struct usage.

  Modified files:
    trunk/coroutine/win32/Context.h
    trunk/coroutine/win64/Context.h
Index: coroutine/win32/Context.h
===================================================================
--- coroutine/win32/Context.h	(revision 65871)
+++ coroutine/win32/Context.h	(revision 65872)
@@ -19,10 +19,10 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.h#L19
 /* This doesn't include thread information block */
 const size_t COROUTINE_REGISTERS = 4;
 
-struct coroutine_context
+typedef struct
 {
 	void **stack_pointer;
-};
+} coroutine_context;
 
 typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
 
Index: coroutine/win64/Context.h
===================================================================
--- coroutine/win64/Context.h	(revision 65871)
+++ coroutine/win64/Context.h	(revision 65872)
@@ -19,10 +19,10 @@ extern "C" { https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.h#L19
 const size_t COROUTINE_REGISTERS = 8;
 const size_t COROUTINE_XMM_REGISTERS = 1+10*2;
 
-struct coroutine_context
+typedef struct
 {
 	void **stack_pointer;
-};
+} coroutine_context;
 
 typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
 

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

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