Use ANSI-style prototype declarations instead of the old K&R style

This commit is contained in:
Nobuyoshi Nakada 2023-09-21 23:01:02 +09:00
parent 20bd19a9ad
commit 22a44735f0
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

2
node.h
View File

@ -50,7 +50,7 @@ RUBY_SYMBOL_EXPORT_BEGIN
#ifdef UNIVERSAL_PARSER
rb_ast_t *rb_ast_new(rb_parser_config_t *config);
#else
rb_ast_t *rb_ast_new();
rb_ast_t *rb_ast_new(void);
#endif
size_t rb_ast_memsize(const rb_ast_t*);
void rb_ast_dispose(rb_ast_t*);