aboutsummaryrefslogtreecommitdiffstats
path: root/coroutine
diff options
context:
space:
mode:
authorsamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:16:54 +0000
committersamuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-20 10:16:54 +0000
commit9481461cc338d410e25163638af484c38317029e (patch)
treef9ba6c108738d332cd1ad11e9ce06beeea26cacc /coroutine
parent42575570a908aac979a80b89266804c4c688dd7c (diff)
downloadruby-9481461cc338d410e25163638af484c38317029e.tar.gz
Ensure start function has correct declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'coroutine')
-rw-r--r--coroutine/amd64/Context.h2
-rw-r--r--coroutine/arm32/Context.h2
-rw-r--r--coroutine/arm64/Context.h2
-rw-r--r--coroutine/win32/Context.h2
-rw-r--r--coroutine/win64/Context.h2
-rw-r--r--coroutine/x86/Context.h2
6 files changed, 6 insertions, 6 deletions
diff --git a/coroutine/amd64/Context.h b/coroutine/amd64/Context.h
index 2e7b05ba31..f6efd6d1b5 100644
--- a/coroutine/amd64/Context.h
+++ b/coroutine/amd64/Context.h
@@ -23,7 +23,7 @@ typedef struct
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,
diff --git a/coroutine/arm32/Context.h b/coroutine/arm32/Context.h
index 75f6c1dc76..1af67a9065 100644
--- a/coroutine/arm32/Context.h
+++ b/coroutine/arm32/Context.h
@@ -23,7 +23,7 @@ typedef struct
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,
diff --git a/coroutine/arm64/Context.h b/coroutine/arm64/Context.h
index 770e81b076..0d48db2abe 100644
--- a/coroutine/arm64/Context.h
+++ b/coroutine/arm64/Context.h
@@ -23,7 +23,7 @@ typedef struct
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,
diff --git a/coroutine/win32/Context.h b/coroutine/win32/Context.h
index 343c3da1d6..1953646882 100644
--- a/coroutine/win32/Context.h
+++ b/coroutine/win32/Context.h
@@ -23,7 +23,7 @@ struct coroutine_context
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,
diff --git a/coroutine/win64/Context.h b/coroutine/win64/Context.h
index 94fcf53429..28173ba789 100644
--- a/coroutine/win64/Context.h
+++ b/coroutine/win64/Context.h
@@ -23,7 +23,7 @@ struct coroutine_context
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,
diff --git a/coroutine/x86/Context.h b/coroutine/x86/Context.h
index e54dedd776..8a65800891 100644
--- a/coroutine/x86/Context.h
+++ b/coroutine/x86/Context.h
@@ -23,7 +23,7 @@ typedef struct
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,