mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	rb_iterate now takes rb_block_call_func_t
After 5e86b005c0, I now think ANYARGS is
dangerous and should be extinct.  This commit makes rb_iterate free
from ANYARGS.
			
			
This commit is contained in:
		
							parent
							
								
									b8fd2e83e7
								
							
						
					
					
						commit
						3cae73133c
					
				
					 3 changed files with 3 additions and 3 deletions
				
			
		|  | @ -592,7 +592,7 @@ ssl_renegotiation_cb(const SSL *ssl) | |||
| #if !defined(OPENSSL_NO_NEXTPROTONEG) || \ | ||||
|     defined(HAVE_SSL_CTX_SET_ALPN_SELECT_CB) | ||||
| static VALUE | ||||
| ssl_npn_encode_protocol_i(VALUE cur, VALUE encoded) | ||||
| ssl_npn_encode_protocol_i(RB_BLOCK_CALL_FUNC_ARGLIST(cur, encoded)) | ||||
| { | ||||
|     int len = RSTRING_LENINT(cur); | ||||
|     char len_byte; | ||||
|  |  | |||
|  | @ -1964,7 +1964,7 @@ VALUE rb_yield_splat(VALUE); | |||
| VALUE rb_yield_block(VALUE, VALUE, int, const VALUE *, VALUE); /* rb_block_call_func */ | ||||
| int rb_block_given_p(void); | ||||
| void rb_need_block(void); | ||||
| VALUE rb_iterate(VALUE(*)(VALUE),VALUE,VALUE(*)(ANYARGS),VALUE); | ||||
| VALUE rb_iterate(VALUE(*)(VALUE),VALUE,rb_block_call_func_t,VALUE); | ||||
| VALUE rb_block_call(VALUE,ID,int,const VALUE*,rb_block_call_func_t,VALUE); | ||||
| VALUE rb_rescue(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE); | ||||
| VALUE rb_rescue2(VALUE(*)(ANYARGS),VALUE,VALUE(*)(ANYARGS),VALUE,...); | ||||
|  |  | |||
|  | @ -1193,7 +1193,7 @@ rb_iterate0(VALUE (* it_proc) (VALUE), VALUE data1, | |||
| 
 | ||||
| VALUE | ||||
| rb_iterate(VALUE (* it_proc)(VALUE), VALUE data1, | ||||
| 	   VALUE (* bl_proc)(ANYARGS), VALUE data2) | ||||
|            rb_block_call_func_t bl_proc, VALUE data2) | ||||
| { | ||||
|     return rb_iterate0(it_proc, data1, | ||||
| 		       bl_proc ? rb_vm_ifunc_proc_new(bl_proc, (void *)data2) : 0, | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 卜部昌平
						卜部昌平