ruby-changes:35710
From: nobu <ko1@a...>
Date: Sun, 5 Oct 2014 08:09:47 +0900 (JST)
Subject: [ruby-changes:35710] nobu:r47792 (trunk): ext: protoize no-arguments functions
nobu 2014-10-05 08:09:32 +0900 (Sun, 05 Oct 2014) New Revision: 47792 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47792 Log: ext: protoize no-arguments functions Modified files: trunk/ext/json/generator/generator.c trunk/ext/json/parser/parser.c trunk/ext/openssl/ossl_pkey_ec.c trunk/ext/psych/psych.c trunk/ext/psych/psych_emitter.c trunk/ext/psych/psych_parser.c trunk/ext/syslog/syslog.c trunk/ext/win32ole/win32ole_method.c trunk/ext/win32ole/win32ole_type.c trunk/ext/win32ole/win32ole_variable.c Index: ext/syslog/syslog.c =================================================================== --- ext/syslog/syslog.c (revision 47791) +++ ext/syslog/syslog.c (revision 47792) @@ -418,7 +418,7 @@ static VALUE mSyslogMacros_included(VALU https://github.com/ruby/ruby/blob/trunk/ext/syslog/syslog.c#L418 * * The syslog protocol is standardized in RFC 5424. */ -void Init_syslog() +void Init_syslog(void) { mSyslog = rb_define_module("Syslog"); Index: ext/win32ole/win32ole_method.c =================================================================== --- ext/win32ole/win32ole_method.c (revision 47791) +++ ext/win32ole/win32ole_method.c (revision 47792) @@ -901,7 +901,7 @@ folemethod_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_method.c#L901 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); Index: ext/win32ole/win32ole_type.c =================================================================== --- ext/win32ole/win32ole_type.c (revision 47791) +++ ext/win32ole/win32ole_type.c (revision 47792) @@ -883,7 +883,7 @@ foletype_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_type.c#L883 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); Index: ext/win32ole/win32ole_variable.c =================================================================== --- ext/win32ole/win32ole_variable.c (revision 47791) +++ ext/win32ole/win32ole_variable.c (revision 47792) @@ -351,7 +351,7 @@ folevariable_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_variable.c#L351 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); Index: ext/json/generator/generator.c =================================================================== --- ext/json/generator/generator.c (revision 47791) +++ ext/json/generator/generator.c (revision 47792) @@ -499,7 +499,7 @@ static void State_free(JSON_Generator_St https://github.com/ruby/ruby/blob/trunk/ext/json/generator/generator.c#L499 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_lengt https://github.com/ruby/ruby/blob/trunk/ext/json/generator/generator.c#L1327 /* * */ -void Init_generator() +void Init_generator(void) { rb_require("json/common"); Index: ext/json/parser/parser.c =================================================================== --- ext/json/parser/parser.c (revision 47791) +++ ext/json/parser/parser.c (revision 47792) @@ -2092,7 +2092,7 @@ static VALUE cParser_parse(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.c#L2092 } -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 https://github.com/ruby/ruby/blob/trunk/ext/json/parser/parser.c#L2145 } -void Init_parser() +void Init_parser(void) { rb_require("json/common"); mJSON = rb_define_module("JSON"); Index: ext/openssl/ossl_pkey_ec.c =================================================================== --- ext/openssl/ossl_pkey_ec.c (revision 47791) +++ ext/openssl/ossl_pkey_ec.c (revision 47792) @@ -1556,7 +1556,7 @@ static void no_copy(VALUE klass) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_pkey_ec.c#L1556 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() https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_pkey_ec.c#L1677 } #else /* defined NO_EC */ -void Init_ossl_ec() +void Init_ossl_ec(void) { } #endif /* NO_EC */ Index: ext/psych/psych_parser.c =================================================================== --- ext/psych/psych_parser.c (revision 47791) +++ ext/psych/psych_parser.c (revision 47792) @@ -535,7 +535,7 @@ static VALUE mark(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/psych/psych_parser.c#L535 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"); Index: ext/psych/psych_emitter.c =================================================================== --- ext/psych/psych_emitter.c (revision 47791) +++ ext/psych/psych_emitter.c (revision 47792) @@ -504,7 +504,7 @@ static VALUE set_line_width(VALUE self, https://github.com/ruby/ruby/blob/trunk/ext/psych/psych_emitter.c#L504 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); Index: ext/psych/psych.c =================================================================== --- ext/psych/psych.c (revision 47791) +++ ext/psych/psych.c (revision 47792) @@ -20,7 +20,7 @@ static VALUE libyaml_version(VALUE modul https://github.com/ruby/ruby/blob/trunk/ext/psych/psych.c#L20 VALUE mPsych; -void Init_psych() +void Init_psych(void) { mPsych = rb_define_module("Psych"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/