mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
type func(); is different from type func(void);
If a function declarator includes no parameter list, that doesn't mean the function takes zero parameter. rb_ast_new here does take zero parameter, so it should be explicitly prototypes as (void). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
58823392b4
commit
01d998aafe
1 changed files with 1 additions and 1 deletions
2
node.h
2
node.h
|
@ -487,7 +487,7 @@ typedef struct rb_ast_struct {
|
|||
VALUE mark_ary;
|
||||
rb_ast_body_t body;
|
||||
} rb_ast_t;
|
||||
rb_ast_t *rb_ast_new();
|
||||
rb_ast_t *rb_ast_new(void);
|
||||
void rb_ast_mark(rb_ast_t*);
|
||||
void rb_ast_dispose(rb_ast_t*);
|
||||
void rb_ast_free(rb_ast_t*);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue