mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix struct usage.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65872 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
972cc2d50b
commit
0ba0ad8b41
2 changed files with 4 additions and 4 deletions
|
@ -19,10 +19,10 @@ extern "C" {
|
||||||
/* This doesn't include thread information block */
|
/* This doesn't include thread information block */
|
||||||
const size_t COROUTINE_REGISTERS = 4;
|
const size_t COROUTINE_REGISTERS = 4;
|
||||||
|
|
||||||
struct coroutine_context
|
typedef struct
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
};
|
} coroutine_context;
|
||||||
|
|
||||||
typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(__fastcall * coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
|
|
|
@ -19,10 +19,10 @@ extern "C" {
|
||||||
const size_t COROUTINE_REGISTERS = 8;
|
const size_t COROUTINE_REGISTERS = 8;
|
||||||
const size_t COROUTINE_XMM_REGISTERS = 1+10*2;
|
const size_t COROUTINE_XMM_REGISTERS = 1+10*2;
|
||||||
|
|
||||||
struct coroutine_context
|
typedef struct
|
||||||
{
|
{
|
||||||
void **stack_pointer;
|
void **stack_pointer;
|
||||||
};
|
} coroutine_context;
|
||||||
|
|
||||||
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
typedef void(* coroutine_start)(coroutine_context *from, coroutine_context *self);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue