1
0
Fork 0
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:
samuel 2018-11-20 10:18:01 +00:00
parent 972cc2d50b
commit 0ba0ad8b41
2 changed files with 4 additions and 4 deletions

View file

@ -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);

View file

@ -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);