mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* ext/dl/dl.c (Init_dl): protoized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									2d2cf42ed1
								
							
						
					
					
						commit
						3b759e62ac
					
				
					 4 changed files with 7 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -496,7 +496,7 @@ rb_dlcfunc_to_i(VALUE self)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
Init_dlcfunc()
 | 
			
		||||
Init_dlcfunc(void)
 | 
			
		||||
{
 | 
			
		||||
    id_last_error = rb_intern("__DL2_LAST_ERROR__");
 | 
			
		||||
#if defined(HAVE_WINDOWS_H)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -446,7 +446,7 @@ rb_dlptr_s_to_ptr(VALUE self, VALUE val)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
void
 | 
			
		||||
Init_dlptr()
 | 
			
		||||
Init_dlptr(void)
 | 
			
		||||
{
 | 
			
		||||
    id_to_ptr = rb_intern("to_ptr");
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -74,11 +74,11 @@ rb_dl_init_callbacks(VALUE dl)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
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");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -214,7 +214,7 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
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);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue