From bda0e2fd84340e34dee0804e250f531893da763a Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 10 Nov 2015 09:24:41 +0000 Subject: proc.c: cfunc_proc_t * proc.c (cfunc_proc_t): add room for me. * proc.c (cfunc_proc_new): generalise for cfunc proc without env. * proc.c (rb_func_proc_new, rb_func_lambda_new): new functions to make proc/lambda without env from cfunc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- internal.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal.h') diff --git a/internal.h b/internal.h index 3c2be8cb24..dfd02e95cc 100644 --- a/internal.h +++ b/internal.h @@ -1013,6 +1013,8 @@ ID rb_id_attrget(ID id); VALUE rb_proc_location(VALUE self); st_index_t rb_hash_proc(st_index_t hash, VALUE proc); int rb_block_arity(void); +VALUE rb_func_proc_new(rb_block_call_func_t func, VALUE val); +VALUE rb_func_lambda_new(rb_block_call_func_t func, VALUE val); /* process.c */ #define RB_MAX_GROUPS (65536) -- cgit v1.2.3