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

ruby-changes:53657

From: samuel <ko1@a...>
Date: Tue, 20 Nov 2018 22:52:43 +0900 (JST)
Subject: [ruby-changes:53657] samuel:r65856 (trunk): Ensure start function has correct declaration.

samuel	2018-11-20 19:16:54 +0900 (Tue, 20 Nov 2018)

  New Revision: 65856

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

  Log:
    Ensure start function has correct declaration.

  Modified files:
    trunk/coroutine/amd64/Context.h
    trunk/coroutine/arm32/Context.h
    trunk/coroutine/arm64/Context.h
    trunk/coroutine/win32/Context.h
    trunk/coroutine/win64/Context.h
    trunk/coroutine/x86/Context.h
Index: coroutine/win32/Context.h
===================================================================
--- coroutine/win32/Context.h	(revision 65855)
+++ coroutine/win32/Context.h	(revision 65856)
@@ -23,7 +23,7 @@ struct coroutine_context https://github.com/ruby/ruby/blob/trunk/coroutine/win32/Context.h#L23
 	void **stack_pointer;
 };
 
-typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
+typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self);
 
 inline void coroutine_initialize(
 	coroutine_context *context,
Index: coroutine/arm32/Context.h
===================================================================
--- coroutine/arm32/Context.h	(revision 65855)
+++ coroutine/arm32/Context.h	(revision 65856)
@@ -23,7 +23,7 @@ typedef struct https://github.com/ruby/ruby/blob/trunk/coroutine/arm32/Context.h#L23
 	void **stack_pointer;
 } coroutine_context;
 
-typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
+typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self);
 
 inline void coroutine_initialize(
 	coroutine_context *context,
Index: coroutine/x86/Context.h
===================================================================
--- coroutine/x86/Context.h	(revision 65855)
+++ coroutine/x86/Context.h	(revision 65856)
@@ -23,7 +23,7 @@ typedef struct https://github.com/ruby/ruby/blob/trunk/coroutine/x86/Context.h#L23
         void **stack_pointer;
 } coroutine_context;
 
-typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self) __attribute__((fastcall));
+typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self) __attribute__((fastcall));
 
 void coroutine_initialize(
         coroutine_context *context,
Index: coroutine/win64/Context.h
===================================================================
--- coroutine/win64/Context.h	(revision 65855)
+++ coroutine/win64/Context.h	(revision 65856)
@@ -23,7 +23,7 @@ struct coroutine_context https://github.com/ruby/ruby/blob/trunk/coroutine/win64/Context.h#L23
 	void **stack_pointer;
 };
 
-typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
+typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self);
 
 inline void coroutine_initialize(
 	coroutine_context *context,
Index: coroutine/arm64/Context.h
===================================================================
--- coroutine/arm64/Context.h	(revision 65855)
+++ coroutine/arm64/Context.h	(revision 65856)
@@ -23,7 +23,7 @@ typedef struct https://github.com/ruby/ruby/blob/trunk/coroutine/arm64/Context.h#L23
 	void **stack_pointer;
 } coroutine_context;
 
-typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
+typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self);
 
 inline void coroutine_initialize(
 	coroutine_context *context,
Index: coroutine/amd64/Context.h
===================================================================
--- coroutine/amd64/Context.h	(revision 65855)
+++ coroutine/amd64/Context.h	(revision 65856)
@@ -23,7 +23,7 @@ typedef struct https://github.com/ruby/ruby/blob/trunk/coroutine/amd64/Context.h#L23
 	void **stack_pointer;
 } coroutine_context;
 
-typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
+typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self);
 
 inline void coroutine_initialize(
 	coroutine_context *context,

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

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