diff options
author | samuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-20 10:17:17 +0000 |
---|---|---|
committer | samuel <samuel@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-11-20 10:17:17 +0000 |
commit | ae3c8c20850cc03ad0aaae803fd39d9dceeb78a6 (patch) | |
tree | 4859db51a073017c5e4efcce49e29828893e83f0 /coroutine/x86/Context.h | |
parent | a3de4a092df50c3e6e142a65ee2fcaaee99ecfd0 (diff) |
Prefer "static inline" to avoid duplicate symbols.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65861 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'coroutine/x86/Context.h')
-rw-r--r-- | coroutine/x86/Context.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/coroutine/x86/Context.h b/coroutine/x86/Context.h index 8a65800891..82bb6dd6c3 100644 --- a/coroutine/x86/Context.h +++ b/coroutine/x86/Context.h @@ -25,11 +25,11 @@ typedef struct typedef COROUTINE(* coroutine_start)(coroutine_context *from, coroutine_context *self) __attribute__((fastcall)); -void coroutine_initialize( - coroutine_context *context, - coroutine_start start, - void *stack_pointer, - size_t stack_size +static inline void coroutine_initialize( + coroutine_context *context, + coroutine_start start, + void *stack_pointer, + size_t stack_size ) { /* Force 16-byte alignment */ context->stack_pointer = (void**)((uintptr_t)stack_pointer & ~0xF); @@ -49,7 +49,7 @@ void coroutine_initialize( coroutine_context * coroutine_transfer(coroutine_context * current, coroutine_context * target) __attribute__((fastcall)); -inline void coroutine_destroy(coroutine_context * context) +static inline void coroutine_destroy(coroutine_context * context) { context->stack_pointer = NULL; } |