mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Protoized old pre-ANSI K&R style definitions
This commit is contained in:
parent
a83a51932d
commit
d2b7e1e4b2
5 changed files with 8 additions and 8 deletions
|
@ -17,7 +17,7 @@
|
||||||
#if defined(__sparc)
|
#if defined(__sparc)
|
||||||
__attribute__((noinline))
|
__attribute__((noinline))
|
||||||
// https://marc.info/?l=linux-sparc&m=131914569320660&w=2
|
// https://marc.info/?l=linux-sparc&m=131914569320660&w=2
|
||||||
static void coroutine_flush_register_windows() {
|
static void coroutine_flush_register_windows(void) {
|
||||||
__asm__
|
__asm__
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
__volatile__
|
__volatile__
|
||||||
|
@ -34,11 +34,11 @@ static void coroutine_flush_register_windows() {
|
||||||
;
|
;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
static void coroutine_flush_register_windows() {}
|
static void coroutine_flush_register_windows(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__attribute__((noinline))
|
__attribute__((noinline))
|
||||||
void *coroutine_stack_pointer() {
|
void *coroutine_stack_pointer(void) {
|
||||||
return (void*)(
|
return (void*)(
|
||||||
(char*)__builtin_frame_address(0)
|
(char*)__builtin_frame_address(0)
|
||||||
);
|
);
|
||||||
|
|
|
@ -9,7 +9,7 @@ struct T {
|
||||||
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(struct T, t));
|
RBIMPL_STATIC_ASSERT(RUBY_ALIGNOF, RUBY_ALIGNOF(double) == offsetof(struct T, t));
|
||||||
|
|
||||||
void
|
void
|
||||||
Init_RUBY_ALIGNOF()
|
Init_RUBY_ALIGNOF(void)
|
||||||
{
|
{
|
||||||
// Windows linker mandates this symbol to exist.
|
// Windows linker mandates this symbol to exist.
|
||||||
}
|
}
|
||||||
|
|
2
object.c
2
object.c
|
@ -1133,7 +1133,7 @@ rb_class_search_ancestor(VALUE cl, VALUE c)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
rb_obj_dummy()
|
rb_obj_dummy(void)
|
||||||
{
|
{
|
||||||
return Qnil;
|
return Qnil;
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,7 @@ Init_Scheduler(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_scheduler_get()
|
rb_scheduler_get(void)
|
||||||
{
|
{
|
||||||
rb_thread_t *thread = GET_THREAD();
|
rb_thread_t *thread = GET_THREAD();
|
||||||
VM_ASSERT(thread);
|
VM_ASSERT(thread);
|
||||||
|
@ -76,7 +76,7 @@ rb_threadptr_scheduler_current(rb_thread_t *thread)
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_scheduler_current()
|
rb_scheduler_current(void)
|
||||||
{
|
{
|
||||||
return rb_threadptr_scheduler_current(GET_THREAD());
|
return rb_threadptr_scheduler_current(GET_THREAD());
|
||||||
}
|
}
|
||||||
|
|
2
thread.c
2
thread.c
|
@ -5402,7 +5402,7 @@ rb_thread_backtrace_locations_m(int argc, VALUE *argv, VALUE thval)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Init_Thread_Mutex()
|
Init_Thread_Mutex(void)
|
||||||
{
|
{
|
||||||
rb_thread_t *th = GET_THREAD();
|
rb_thread_t *th = GET_THREAD();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue