Declaring with a prototype

In C99, a function declaration with an empty argument list means "no
information about the arguments", not "it takes no arguments" - the
so-called old K&R style.
This commit is contained in:
Nobuyoshi Nakada 2025-07-02 10:15:24 +09:00
parent d77e02bd85
commit f11daeb625
No known key found for this signature in database
GPG key ID: 3582D74E1FEE4465

2
yjit.h
View file

@ -37,7 +37,7 @@ void rb_yjit_collect_binding_alloc(void);
void rb_yjit_collect_binding_set(void); void rb_yjit_collect_binding_set(void);
void rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception); void rb_yjit_compile_iseq(const rb_iseq_t *iseq, rb_execution_context_t *ec, bool jit_exception);
void rb_yjit_init(bool yjit_enabled); void rb_yjit_init(bool yjit_enabled);
void rb_yjit_free_at_exit(); void rb_yjit_free_at_exit(void);
void rb_yjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop); void rb_yjit_bop_redefined(int redefined_flag, enum ruby_basic_operators bop);
void rb_yjit_constant_state_changed(ID id); void rb_yjit_constant_state_changed(ID id);
void rb_yjit_iseq_mark(void *payload); void rb_yjit_iseq_mark(void *payload);