mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
ext: protoize no-arguments functions
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
02be147c8a
commit
5540c1de81
10 changed files with 13 additions and 13 deletions
|
@ -2092,7 +2092,7 @@ static VALUE cParser_parse(VALUE self)
|
|||
}
|
||||
|
||||
|
||||
static JSON_Parser *JSON_allocate()
|
||||
static JSON_Parser *JSON_allocate(void)
|
||||
{
|
||||
JSON_Parser *json = ALLOC(JSON_Parser);
|
||||
MEMZERO(json, JSON_Parser, 1);
|
||||
|
@ -2145,7 +2145,7 @@ static VALUE cParser_quirks_mode_p(VALUE self)
|
|||
}
|
||||
|
||||
|
||||
void Init_parser()
|
||||
void Init_parser(void)
|
||||
{
|
||||
rb_require("json/common");
|
||||
mJSON = rb_define_module("JSON");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue