aboutsummaryrefslogtreecommitdiffstats
path: root/coroutine
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:18:01 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:18:01 +0000
commit0ba0ad8b415bd9601d05e14a30d34344dfcc1b71 (patch)
treef8737d08f3df4e5eb456a17b5ac9809735fa335a /coroutine
parent972cc2d50bab1b25099c0740457912b10e997346 (diff)
downloadruby-0ba0ad8b415bd9601d05e14a30d34344dfcc1b71.tar.gz
Fix struct usage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/win32/Context.h4
-rw-r--r--coroutine/win64/Context.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/coroutine/win32/Context.h b/coroutine/win32/Context.h
index 95b4ccdba1..c4f041f501 100644
--- a/coroutine/win32/Context.h
+++ b/coroutine/win32/Context.h
@@ -19,10 +19,10 @@ extern "C" {
/* 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);
diff --git a/coroutine/win64/Context.h b/coroutine/win64/Context.h
index b3afed691f..a72ce530f8 100644
--- a/coroutine/win64/Context.h
+++ b/coroutine/win64/Context.h
@@ -19,10 +19,10 @@ extern "C" {
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);