ruby-changes:35662
From: nobu <ko1@a...>
Date: Tue, 30 Sep 2014 14:26:01 +0900 (JST)
Subject: [ruby-changes:35662] nobu:r47744 (trunk): protoize no-arguments functions
nobu 2014-09-30 14:25:32 +0900 (Tue, 30 Sep 2014) New Revision: 47744 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=47744 Log: protoize no-arguments functions Modified files: trunk/dir.c trunk/eval.c trunk/ext/digest/md5/md5.c trunk/ext/digest/md5/md5init.c trunk/ext/digest/rmd160/rmd160init.c trunk/ext/digest/sha1/sha1init.c trunk/ext/digest/sha2/sha2init.c trunk/ext/dl/callback/mkcallback.rb trunk/ext/fcntl/fcntl.c trunk/ext/fiddle/closure.c trunk/ext/io/wait/wait.c trunk/ext/nkf/nkf-utf8/nkf.c trunk/ext/nkf/nkf.c trunk/ext/openssl/ossl.c trunk/ext/openssl/ossl_asn1.c trunk/ext/openssl/ossl_bn.c trunk/ext/openssl/ossl_config.c trunk/ext/openssl/ossl_digest.c trunk/ext/openssl/ossl_engine.c trunk/ext/openssl/ossl_hmac.c trunk/ext/openssl/ossl_ns_spki.c trunk/ext/openssl/ossl_ocsp.c trunk/ext/openssl/ossl_pkcs12.c trunk/ext/openssl/ossl_pkcs5.c trunk/ext/openssl/ossl_pkcs7.c trunk/ext/openssl/ossl_pkey.c trunk/ext/openssl/ossl_pkey_dh.c trunk/ext/openssl/ossl_pkey_dsa.c trunk/ext/openssl/ossl_pkey_rsa.c trunk/ext/openssl/ossl_rand.c trunk/ext/openssl/ossl_ssl.c trunk/ext/openssl/ossl_x509.c trunk/ext/openssl/ossl_x509attr.c trunk/ext/openssl/ossl_x509cert.c trunk/ext/openssl/ossl_x509crl.c trunk/ext/openssl/ossl_x509ext.c trunk/ext/openssl/ossl_x509name.c trunk/ext/openssl/ossl_x509req.c trunk/ext/openssl/ossl_x509revoked.c trunk/ext/openssl/ossl_x509store.c trunk/ext/pathname/pathname.c trunk/ext/pty/pty.c trunk/ext/readline/readline.c trunk/ext/sdbm/init.c trunk/ext/socket/init.c trunk/ext/socket/raddrinfo.c trunk/ext/socket/socket.c trunk/ext/stringio/stringio.c trunk/ext/strscan/strscan.c trunk/ext/tk/stubs.c trunk/ext/tk/tcltklib.c trunk/ext/tk/tkutil/tkutil.c trunk/ext/win32ole/win32ole.c trunk/ext/win32ole/win32ole_event.c trunk/ext/win32ole/win32ole_param.c trunk/ext/win32ole/win32ole_record.c trunk/ext/win32ole/win32ole_typelib.c trunk/ext/win32ole/win32ole_variant.c trunk/ext/zlib/zlib.c trunk/hash.c trunk/load.c trunk/nacl/pepper_main.c trunk/process.c Index: load.c =================================================================== --- load.c (revision 47743) +++ load.c (revision 47744) @@ -1159,7 +1159,7 @@ rb_f_autoload_p(VALUE obj, VALUE sym) https://github.com/ruby/ruby/blob/trunk/load.c#L1159 } void -Init_load() +Init_load(void) { #undef rb_intern #define rb_intern(str) rb_intern2((str), strlen(str)) Index: dir.c =================================================================== --- dir.c (revision 47743) +++ dir.c (revision 47744) @@ -2248,7 +2248,7 @@ dir_s_home(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/dir.c#L2248 * */ VALUE -rb_file_directory_p() +rb_file_directory_p(void) { } #endif Index: eval.c =================================================================== --- eval.c (revision 47743) +++ eval.c (revision 47744) @@ -1132,7 +1132,7 @@ rb_mod_prepend(int argc, VALUE *argv, VA https://github.com/ruby/ruby/blob/trunk/eval.c#L1132 } static VALUE -hidden_identity_hash_new() +hidden_identity_hash_new(void) { VALUE hash = rb_hash_new(); Index: nacl/pepper_main.c =================================================================== --- nacl/pepper_main.c (revision 47743) +++ nacl/pepper_main.c (revision 47744) @@ -676,7 +676,7 @@ PPP_GetInterface(const char* interface_n https://github.com/ruby/ruby/blob/trunk/nacl/pepper_main.c#L676 * Called before the plugin module is unloaded. */ PP_EXPORT void -PPP_ShutdownModule() +PPP_ShutdownModule(void) { ruby_cleanup(0); } Index: process.c =================================================================== --- process.c (revision 47743) +++ process.c (revision 47744) @@ -1126,7 +1126,7 @@ before_exec_async_signal_safe(void) https://github.com/ruby/ruby/blob/trunk/process.c#L1126 } static void -before_exec_non_async_signal_safe() +before_exec_non_async_signal_safe(void) { /* * On Mac OS X 10.5.x (Leopard) or earlier, exec() may return ENOTSUP @@ -1139,7 +1139,7 @@ before_exec_non_async_signal_safe() https://github.com/ruby/ruby/blob/trunk/process.c#L1139 } static void -before_exec() +before_exec(void) { before_exec_non_async_signal_safe(); before_exec_async_signal_safe(); Index: ext/digest/md5/md5.c =================================================================== --- ext/digest/md5/md5.c (revision 47743) +++ ext/digest/md5/md5.c (revision 47744) @@ -61,7 +61,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/digest/md5/md5.c#L61 */ #include <string.h> int -main() +main(void) { static const char *const test[7*2] = { "", "d41d8cd98f00b204e9800998ecf8427e", @@ -102,7 +102,7 @@ main() https://github.com/ruby/ruby/blob/trunk/ext/digest/md5/md5.c#L102 #ifdef COMPUTE_T_VALUES #include <math.h> int -main() +main(void) { int i; for (i = 1; i <= 64; ++i) { Index: ext/digest/md5/md5init.c =================================================================== --- ext/digest/md5/md5init.c (revision 47743) +++ ext/digest/md5/md5init.c (revision 47744) @@ -24,7 +24,7 @@ static const rb_digest_metadata_t md5 = https://github.com/ruby/ruby/blob/trunk/ext/digest/md5/md5init.c#L24 * RFC1321. */ void -Init_md5() +Init_md5(void) { VALUE mDigest, cDigest_Base, cDigest_MD5; Index: ext/digest/rmd160/rmd160init.c =================================================================== --- ext/digest/rmd160/rmd160init.c (revision 47743) +++ ext/digest/rmd160/rmd160init.c (revision 47744) @@ -24,7 +24,7 @@ static const rb_digest_metadata_t rmd160 https://github.com/ruby/ruby/blob/trunk/ext/digest/rmd160/rmd160init.c#L24 * Bosselaers, and Bart Preneel. */ void -Init_rmd160() +Init_rmd160(void) { VALUE mDigest, cDigest_Base, cDigest_RMD160; Index: ext/digest/sha1/sha1init.c =================================================================== --- ext/digest/sha1/sha1init.c (revision 47743) +++ ext/digest/sha1/sha1init.c (revision 47744) @@ -24,7 +24,7 @@ static const rb_digest_metadata_t sha1 = https://github.com/ruby/ruby/blob/trunk/ext/digest/sha1/sha1init.c#L24 * Technology), described in FIPS PUB 180-1. */ void -Init_sha1() +Init_sha1(void) { VALUE mDigest, cDigest_Base, cDigest_SHA1; Index: ext/digest/sha2/sha2init.c =================================================================== --- ext/digest/sha2/sha2init.c (revision 47743) +++ ext/digest/sha2/sha2init.c (revision 47744) @@ -29,7 +29,7 @@ FOREACH_BITLEN(DEFINE_ALGO_METADATA) https://github.com/ruby/ruby/blob/trunk/ext/digest/sha2/sha2init.c#L29 * Standards and Technology), described in FIPS PUB 180-2. */ void -Init_sha2() +Init_sha2(void) { VALUE mDigest, cDigest_Base; ID id_metadata; Index: ext/sdbm/init.c =================================================================== --- ext/sdbm/init.c (revision 47743) +++ ext/sdbm/init.c (revision 47744) @@ -72,7 +72,7 @@ struct dbmdata { https://github.com/ruby/ruby/blob/trunk/ext/sdbm/init.c#L72 }; static void -closed_sdbm() +closed_sdbm(void) { rb_raise(rb_eDBMError, "closed SDBM file"); } @@ -991,7 +991,7 @@ fsdbm_reject(VALUE obj) https://github.com/ruby/ruby/blob/trunk/ext/sdbm/init.c#L991 } void -Init_sdbm() +Init_sdbm(void) { rb_cDBM = rb_define_class("SDBM", rb_cObject); rb_eDBMError = rb_define_class("SDBMError", rb_eStandardError); Index: ext/dl/callback/mkcallback.rb =================================================================== --- ext/dl/callback/mkcallback.rb (revision 47743) +++ ext/dl/callback/mkcallback.rb (revision 47744) @@ -123,10 +123,15 @@ end https://github.com/ruby/ruby/blob/trunk/ext/dl/callback/mkcallback.rb#L123 def gencallback(ty, calltype, proc_entry, argc, n) dltype = DLTYPE[ty] ret = dltype[:conv] + if argc == 0 + args = "void" + else + args = (0...argc).collect{|i| "DLSTACK_TYPE stack#{i}"}.join(", ") + end src = <<-EOS #{calltype == STDCALL ? "\n#ifdef FUNC_STDCALL" : ""} static #{dltype[:type]} -FUNC_#{calltype.upcase}(#{func_name(ty,argc,n,calltype)})(#{(0...argc).collect{|i| "DLSTACK_TYPE stack#{i}"}.join(", ")}) +FUNC_#{calltype.upcase}(#{func_name(ty,argc,n,calltype)})(#{args}) { VALUE #{ret ? "ret, " : ""}cb#{argc > 0 ? ", args[#{argc}]" : ""}; #{ @@ -177,7 +182,7 @@ extern ID rb_dl_cb_call; https://github.com/ruby/ruby/blob/trunk/ext/dl/callback/mkcallback.rb#L182 yield body body << <<-EOS void -#{initname}() +#{initname}(void) { #{gen_push_proc_ary(ty, "rb_DLCdeclCallbackProcs")} #{gen_push_addr_ary(ty, "rb_DLCdeclCallbackAddrs", CDECL)} @@ -201,7 +206,7 @@ for ty in 0...MAX_DLTYPE https://github.com/ruby/ruby/blob/trunk/ext/dl/callback/mkcallback.rb#L206 end end } - $out << "void #{initname}();\n" + $out << "void #{initname}(void);\n" callbacks << [filename, body] end Property changes on: ext/dl/callback/mkcallback.rb ___________________________________________________________________ Added: svn:executable + * Index: ext/zlib/zlib.c =================================================================== --- ext/zlib/zlib.c (revision 47743) +++ ext/zlib/zlib.c (revision 47744) @@ -4200,7 +4200,7 @@ rb_gzreader_readlines(int argc, VALUE *a https://github.com/ruby/ruby/blob/trunk/ext/zlib/zlib.c#L4200 #endif /* GZIP_SUPPORT */ void -Init_zlib() +Init_zlib(void) { VALUE mZlib, cZStream, cDeflate, cInflate; #if GZIP_SUPPORT Index: ext/win32ole/win32ole_record.c =================================================================== --- ext/win32ole/win32ole_record.c (revision 47743) +++ ext/win32ole/win32ole_record.c (revision 47744) @@ -563,7 +563,7 @@ folerecord_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_record.c#L563 } void -Init_win32ole_record() +Init_win32ole_record(void) { cWIN32OLE_RECORD = rb_define_class("WIN32OLE_RECORD", rb_cObject); rb_define_alloc_func(cWIN32OLE_RECORD, folerecord_s_allocate); Index: ext/win32ole/win32ole.c =================================================================== --- ext/win32ole/win32ole.c (revision 47743) +++ ext/win32ole/win32ole.c (revision 47744) @@ -375,7 +375,7 @@ static /* [local] */ HRESULT ( STDMETHOD https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole.c#L375 } BOOL -ole_initialized() +ole_initialized(void) { return g_ole_initialized; } Index: ext/win32ole/win32ole_event.c =================================================================== --- ext/win32ole/win32ole_event.c (revision 47743) +++ ext/win32ole/win32ole_event.c (revision 47744) @@ -1240,7 +1240,7 @@ fev_get_handler(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_event.c#L1240 } void -Init_win32ole_event() +Init_win32ole_event(void) { ary_ole_event = rb_ary_new(); rb_gc_register_mark_object(ary_ole_event); Index: ext/win32ole/win32ole_param.c =================================================================== --- ext/win32ole/win32ole_param.c (revision 47743) +++ ext/win32ole/win32ole_param.c (revision 47744) @@ -400,7 +400,7 @@ foleparam_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_param.c#L400 } void -Init_win32ole_param() +Init_win32ole_param(void) { cWIN32OLE_PARAM = rb_define_class("WIN32OLE_PARAM", rb_cObject); rb_define_alloc_func(cWIN32OLE_PARAM, foleparam_s_allocate); Index: ext/win32ole/win32ole_variant.c =================================================================== --- ext/win32ole/win32ole_variant.c (revision 47743) +++ ext/win32ole/win32ole_variant.c (revision 47744) @@ -665,7 +665,7 @@ folevariant_set_value(VALUE self, VALUE https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_variant.c#L665 } void -Init_win32ole_variant() +Init_win32ole_variant(void) { cWIN32OLE_VARIANT = rb_define_class("WIN32OLE_VARIANT", rb_cObject); rb_define_alloc_func(cWIN32OLE_VARIANT, folevariant_s_allocate); Index: ext/win32ole/win32ole_typelib.c =================================================================== --- ext/win32ole/win32ole_typelib.c (revision 47743) +++ ext/win32ole/win32ole_typelib.c (revision 47744) @@ -811,7 +811,7 @@ foletypelib_inspect(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/win32ole/win32ole_typelib.c#L811 } void -Init_win32ole_typelib() +Init_win32ole_typelib(void) { cWIN32OLE_TYPELIB = rb_define_class("WIN32OLE_TYPELIB", rb_cObject); rb_define_singleton_method(cWIN32OLE_TYPELIB, "typelibs", foletypelib_s_typelibs, 0); Index: ext/pty/pty.c =================================================================== --- ext/pty/pty.c (revision 47743) +++ ext/pty/pty.c (revision 47744) @@ -745,7 +745,7 @@ static VALUE cPTY; https://github.com/ruby/ruby/blob/trunk/ext/pty/pty.c#L745 */ void -Init_pty() +Init_pty(void) { cPTY = rb_define_module("PTY"); /* :nodoc */ Index: ext/tk/stubs.c =================================================================== --- ext/tk/stubs.c (revision 47743) +++ ext/tk/stubs.c (revision 47744) @@ -24,7 +24,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L24 static int call_macinit = 0; static void -_macinit() +_macinit(void) { if (!call_macinit) { tcl_macQdPtr = &qd; /* setup QuickDraw globals */ @@ -157,7 +157,7 @@ ruby_open_tcl_dll(appname) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L157 } int -ruby_open_tk_dll() +ruby_open_tk_dll(void) { int n; char *ruby_tk_dll = 0; @@ -202,13 +202,13 @@ ruby_open_tcltk_dll(appname) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L202 } int -tcl_stubs_init_p() +tcl_stubs_init_p(void) { return(tclStubsPtr != (TclStubs*)NULL); } int -tk_stubs_init_p() +tk_stubs_init_p(void) { return(tkStubsPtr != (TkStubs*)NULL); } @@ -285,7 +285,7 @@ ruby_tcl_create_ip_and_stubs_init(st) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L285 } int -ruby_tcl_stubs_init() +ruby_tcl_stubs_init(void) { int st; Tcl_Interp *tcl_ip; @@ -397,7 +397,7 @@ ruby_tk_stubs_safeinit(tcl_ip) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L397 } int -ruby_tcltk_stubs() +ruby_tcltk_stubs(void) { int st; Tcl_Interp *tcl_ip; @@ -467,7 +467,7 @@ ruby_open_tcl_dll(appname) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L467 } int -ruby_open_tk_dll() +ruby_open_tk_dll(void) { if (!open_tcl_dll) { /* ruby_open_tcl_dll(RSTRING_PTR(rb_argv0)); */ @@ -489,13 +489,13 @@ ruby_open_tcltk_dll(appname) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L489 } int -tcl_stubs_init_p() +tcl_stubs_init_p(void) { return 1; } int -tk_stubs_init_p() +tk_stubs_init_p(void) { return call_tk_stubs_init; } @@ -528,7 +528,7 @@ ruby_tcl_create_ip_and_stubs_init(st) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L528 } int -ruby_tcl_stubs_init() +ruby_tcl_stubs_init(void) { return TCLTK_STUBS_OK; } @@ -582,7 +582,7 @@ ruby_tk_stubs_safeinit(tcl_ip) https://github.com/ruby/ruby/blob/trunk/ext/tk/stubs.c#L582 } int -ruby_tcltk_stubs() +ruby_tcltk_stubs(void) { /* Tcl_FindExecutable(RSTRING_PTR(rb_argv0)); */ Tcl_FindExecutable(rb_argv0 ? RSTRING_PTR(rb_argv0) : 0); Index: ext/tk/tcltklib.c =================================================================== --- ext/tk/tcltklib.c (revision 47743) +++ ext/tk/tcltklib.c (revision 47744) @@ -114,7 +114,7 @@ static struct { https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L114 } tcltk_version = {0, 0, 0, 0}; static void -set_tcltk_version() +set_tcltk_version(void) { if (tcltk_version.major) return; @@ -1057,7 +1057,7 @@ set_rubytk_kitpath(const char *kitpath) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1057 #endif static void -check_tclkit_std_channels() +check_tclkit_std_channels(void) { Tcl_Channel chan; @@ -1141,7 +1141,7 @@ rubytk_kitpath_init(Tcl_Interp *interp) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1141 /*--------------------------------------------------------*/ static void -init_static_tcltk_packages() +init_static_tcltk_packages(void) { /* * Ensure that std channels exist (creating them if necessary) @@ -1228,7 +1228,7 @@ void rbtk_win32_SetHINSTANCE(const char https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1228 /*--------------------------------------------------------*/ static void -setup_rubytkkit() +setup_rubytkkit(void) { init_static_tcltk_packages(); @@ -1281,7 +1281,7 @@ setup_rubytkkit() https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1281 /* stub status */ static void -tcl_stubs_check() +tcl_stubs_check(void) { if (!tcl_stubs_init_p()) { int st = ruby_tcl_stubs_init(); @@ -1382,7 +1382,7 @@ static int rbtk_internal_eventloop_handl https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1382 static int -pending_exception_check0() +pending_exception_check0(void) { volatile VALUE exc = rbtk_pending_exception; @@ -1645,7 +1645,7 @@ _timer_for_tcl(clientData) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L1645 #ifdef RUBY_USE_NATIVE_THREAD #if USE_TOGGLE_WINDOW_MODE_FOR_IDLE static int -toggle_eventloop_window_mode_for_idle() +toggle_eventloop_window_mode_for_idle(void) { if (window_event_mode & TCL_IDLE_EVENTS) { /* idle -> event */ @@ -2099,7 +2099,7 @@ eventloop_sleep(dummy) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L2099 #if USE_EVLOOP_THREAD_ALONE_CHECK_FLAG static int -get_thread_alone_check_flag() +get_thread_alone_check_flag(void) { #ifdef RUBY_USE_NATIVE_THREAD return 0; @@ -2168,7 +2168,7 @@ trap_check(int *check_var) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L2168 } static int -check_eventloop_interp() +check_eventloop_interp(void) { DUMP1("check eventloop_interp"); if (eventloop_interp != (Tcl_Interp*)NULL @@ -9975,7 +9975,7 @@ lib_get_reltype_name(self) https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L9975 static VALUE -tcltklib_compile_info() +tcltklib_compile_info(void) { volatile VALUE ret; size_t size; @@ -10714,7 +10714,7 @@ ip_make_menu_embeddable(interp, menu_pat https://github.com/ruby/ruby/blob/trunk/ext/tk/tcltklib.c#L10714 /*---- initialization ----*/ void -Init_tcltklib() +Init_tcltklib(void) { int ret; Index: ext/tk/tkutil/tkutil.c =================================================================== --- ext/tk/tkutil/tkutil.c (revision 47743) +++ ext/tk/tkutil/tkutil.c (revision 47744) @@ -1198,7 +1198,7 @@ allocate_cbsubst_info(struct cbsubst_inf https://github.com/ruby/ruby/blob/trunk/ext/tk/tkutil/tkutil.c#L1198 } static void -cbsubst_init() +cbsubst_init(void) { rb_const_set(cCB_SUBST, ID_SUBST_INFO, allocate_cbsubst_info((struct cbsubst_info **)NULL)); @@ -1738,7 +1738,7 @@ tkobj_path(self) https://github.com/ruby/ruby/blob/trunk/ext/tk/tkutil/tkutil.c#L1738 const char tkutil_release_date[] = TKUTIL_RELEASE_DATE; void -Init_tkutil() +Init_tkutil(void) { VALUE cTK = rb_define_class("TkKernel", rb_cObject); VALUE mTK = rb_define_module("TkUtil"); Index: ext/nkf/nkf.c =================================================================== --- ext/nkf/nkf.c (revision 47743) +++ ext/nkf/nkf.c (revision 47744) @@ -478,7 +478,7 @@ rb_nkf_guess(VALUE obj, VALUE src) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf.c#L478 */ void -Init_nkf() +Init_nkf(void) { VALUE mNKF = rb_define_module("NKF"); Index: ext/nkf/nkf-utf8/nkf.c =================================================================== --- ext/nkf/nkf-utf8/nkf.c (revision 47743) +++ ext/nkf/nkf-utf8/nkf.c (revision 47744) @@ -774,7 +774,7 @@ nkf_enc_find(const char *name) https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L774 #ifdef DEFAULT_CODE_LOCALE static const char* -nkf_locale_charmap() +nkf_locale_charmap(void) { #ifdef HAVE_LANGINFO_H return nl_langinfo(CODESET); @@ -802,7 +802,7 @@ nkf_locale_charmap() https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L802 } static nkf_encoding* -nkf_locale_encoding() +nkf_locale_encoding(void) { nkf_encoding *enc = 0; const char *encname = nkf_locale_charmap(); @@ -813,13 +813,13 @@ nkf_locale_encoding() https://github.com/ruby/ruby/blob/trunk/ext/nkf/nkf-utf8/nkf.c#L813 #endif /* DEFAULT_CODE_LOCALE */ static nkf_encoding* -nkf_utf8_encoding() +nkf_utf8_encoding(void) { return &nkf_encoding_table[UTF_8]; } static nkf_encoding* -nkf_default_encoding() +nkf_default_encoding(void) { nkf_encoding *enc = 0; #ifdef DEFAULT_CODE_LOCALE Index: ext/readline/readline.c =================================================================== --- ext/readline/readline.c (revision 47743) +++ ext/readline/readline.c (revision 47744) @@ -1786,7 +1786,7 @@ username_completion_proc_call(VALUE self https://github.com/ruby/ruby/blob/trunk/ext/readline/readline.c#L1786 } void -Init_readline() +Init_readline(void) { VALUE history, fcomp, ucomp, version; Index: ext/openssl/ossl_pkey_dsa.c =================================================================== --- ext/openssl/ossl_pkey_dsa.c (revision 47743) +++ ext/openssl/ossl_pkey_dsa.c (revision 47744) @@ -563,7 +563,7 @@ OSSL_PKEY_BN(dsa, priv_key) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_pkey_dsa.c#L563 * INIT */ void -Init_ossl_dsa() +Init_ossl_dsa(void) { #if 0 mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL and mPKey */ @@ -617,7 +617,7 @@ Init_ossl_dsa() https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl_pkey_dsa.c#L617 #else /* defined NO_DSA */ void -Init_ossl_dsa() +Init_ossl_dsa(void) { } #endif /* NO_DSA */ Index: ext/openssl/ossl_x509attr.c =================================================================== --- ext/openssl/ossl_x509attr.c (revision 47743) +++ ext/openssl/ossl_x509attr.c (revision 47744) @@ -260,7 +260,7 @@ ossl_x509attr_to_der(VALUE self) https://github.com/ruby/ruby/blob/trunk/ext/openssl/ossl (... truncated) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/