mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05: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
|
@ -499,7 +499,7 @@ static void State_free(JSON_Generator_State *state)
|
|||
ruby_xfree(state);
|
||||
}
|
||||
|
||||
static JSON_Generator_State *State_allocate()
|
||||
static JSON_Generator_State *State_allocate(void)
|
||||
{
|
||||
JSON_Generator_State *state = ALLOC(JSON_Generator_State);
|
||||
MEMZERO(state, JSON_Generator_State, 1);
|
||||
|
@ -1327,7 +1327,7 @@ static VALUE cState_buffer_initial_length_set(VALUE self, VALUE buffer_initial_l
|
|||
/*
|
||||
*
|
||||
*/
|
||||
void Init_generator()
|
||||
void Init_generator(void)
|
||||
{
|
||||
rb_require("json/common");
|
||||
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -1556,7 +1556,7 @@ static void no_copy(VALUE klass)
|
|||
rb_undef_method(klass, "initialize_copy");
|
||||
}
|
||||
|
||||
void Init_ossl_ec()
|
||||
void Init_ossl_ec(void)
|
||||
{
|
||||
#ifdef DONT_NEED_RDOC_WORKAROUND
|
||||
mOSSL = rb_define_module("OpenSSL");
|
||||
|
@ -1677,7 +1677,7 @@ void Init_ossl_ec()
|
|||
}
|
||||
|
||||
#else /* defined NO_EC */
|
||||
void Init_ossl_ec()
|
||||
void Init_ossl_ec(void)
|
||||
{
|
||||
}
|
||||
#endif /* NO_EC */
|
||||
|
|
|
@ -20,7 +20,7 @@ static VALUE libyaml_version(VALUE module)
|
|||
|
||||
VALUE mPsych;
|
||||
|
||||
void Init_psych()
|
||||
void Init_psych(void)
|
||||
{
|
||||
mPsych = rb_define_module("Psych");
|
||||
|
||||
|
|
|
@ -504,7 +504,7 @@ static VALUE set_line_width(VALUE self, VALUE width)
|
|||
return width;
|
||||
}
|
||||
|
||||
void Init_psych_emitter()
|
||||
void Init_psych_emitter(void)
|
||||
{
|
||||
VALUE psych = rb_define_module("Psych");
|
||||
VALUE handler = rb_define_class_under(psych, "Handler", rb_cObject);
|
||||
|
|
|
@ -535,7 +535,7 @@ static VALUE mark(VALUE self)
|
|||
return rb_class_new_instance(3, args, mark_klass);
|
||||
}
|
||||
|
||||
void Init_psych_parser()
|
||||
void Init_psych_parser(void)
|
||||
{
|
||||
#if 0
|
||||
mPsych = rb_define_module("Psych");
|
||||
|
|
|
@ -418,7 +418,7 @@ static VALUE mSyslogMacros_included(VALUE mod, VALUE target)
|
|||
*
|
||||
* The syslog protocol is standardized in RFC 5424.
|
||||
*/
|
||||
void Init_syslog()
|
||||
void Init_syslog(void)
|
||||
{
|
||||
mSyslog = rb_define_module("Syslog");
|
||||
|
||||
|
|
|
@ -901,7 +901,7 @@ folemethod_inspect(VALUE self)
|
|||
return default_inspect(self, "WIN32OLE_METHOD");
|
||||
}
|
||||
|
||||
void Init_win32ole_method()
|
||||
void Init_win32ole_method(void)
|
||||
{
|
||||
cWIN32OLE_METHOD = rb_define_class("WIN32OLE_METHOD", rb_cObject);
|
||||
rb_define_alloc_func(cWIN32OLE_METHOD, folemethod_s_allocate);
|
||||
|
|
|
@ -883,7 +883,7 @@ foletype_inspect(VALUE self)
|
|||
return default_inspect(self, "WIN32OLE_TYPE");
|
||||
}
|
||||
|
||||
void Init_win32ole_type()
|
||||
void Init_win32ole_type(void)
|
||||
{
|
||||
cWIN32OLE_TYPE = rb_define_class("WIN32OLE_TYPE", rb_cObject);
|
||||
rb_define_singleton_method(cWIN32OLE_TYPE, "ole_classes", foletype_s_ole_classes, 1);
|
||||
|
|
|
@ -351,7 +351,7 @@ folevariable_inspect(VALUE self)
|
|||
return make_inspect("WIN32OLE_VARIABLE", detail);
|
||||
}
|
||||
|
||||
void Init_win32ole_variable()
|
||||
void Init_win32ole_variable(void)
|
||||
{
|
||||
cWIN32OLE_VARIABLE = rb_define_class("WIN32OLE_VARIABLE", rb_cObject);
|
||||
rb_define_method(cWIN32OLE_VARIABLE, "name", folevariable_name, 0);
|
||||
|
|
Loading…
Reference in a new issue