ruby-changes:11243
From: nobu <ko1@a...>
Date: Mon, 9 Mar 2009 15:25:21 +0900 (JST)
Subject: [ruby-changes:11243] Ruby:r22852 (trunk): * ext/dl/dl.c (Init_dl): protoized.
nobu 2009-03-09 15:25:14 +0900 (Mon, 09 Mar 2009) New Revision: 22852 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22852 Log: * ext/dl/dl.c (Init_dl): protoized. Modified files: trunk/ext/dl/cfunc.c trunk/ext/dl/cptr.c trunk/ext/dl/dl.c trunk/ext/dl/handle.c Index: ext/dl/cfunc.c =================================================================== --- ext/dl/cfunc.c (revision 22851) +++ ext/dl/cfunc.c (revision 22852) @@ -496,7 +496,7 @@ } void -Init_dlcfunc() +Init_dlcfunc(void) { id_last_error = rb_intern("__DL2_LAST_ERROR__"); #if defined(HAVE_WINDOWS_H) Index: ext/dl/dl.c =================================================================== --- ext/dl/dl.c (revision 22851) +++ ext/dl/dl.c (revision 22852) @@ -74,11 +74,11 @@ } void -Init_dl() +Init_dl(void) { - void Init_dlhandle(); - void Init_dlcfunc(); - void Init_dlptr(); + void Init_dlhandle(void); + void Init_dlcfunc(void); + void Init_dlptr(void); rbdl_id_cdecl = rb_intern_const("cdecl"); rbdl_id_stdcall = rb_intern_const("stdcall"); Index: ext/dl/cptr.c =================================================================== --- ext/dl/cptr.c (revision 22851) +++ ext/dl/cptr.c (revision 22852) @@ -446,7 +446,7 @@ } void -Init_dlptr() +Init_dlptr(void) { id_to_ptr = rb_intern("to_ptr"); Index: ext/dl/handle.c =================================================================== --- ext/dl/handle.c (revision 22851) +++ ext/dl/handle.c (revision 22852) @@ -214,7 +214,7 @@ } void -Init_dlhandle() +Init_dlhandle(void) { rb_cDLHandle = rb_define_class_under(rb_mDL, "Handle", rb_cObject); rb_define_alloc_func(rb_cDLHandle, rb_dlhandle_s_allocate); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/