diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-10 09:24:41 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-11-10 09:24:41 +0000 |
commit | bda0e2fd84340e34dee0804e250f531893da763a (patch) | |
tree | e42ef6b671f9453899283457738ff84ce8383c38 /internal.h | |
parent | a56b0f8b29b3be1323ebfde50cab94808ac65375 (diff) | |
download | ruby-bda0e2fd84340e34dee0804e250f531893da763a.tar.gz |
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
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 2 insertions, 0 deletions
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) |