summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/proc.c b/proc.c
index 1628f68..d5c0ce4 100644
--- a/proc.c
+++ b/proc.c
@@ -59,8 +59,8 @@ proc_mark(void *ptr)
RUBY_MARK_LEAVE("proc");
}
-static VALUE
-proc_alloc(VALUE klass)
+VALUE
+rb_proc_alloc(VALUE klass)
{
VALUE obj;
rb_proc_t *proc;
@@ -70,12 +70,6 @@ proc_alloc(VALUE klass)
}
VALUE
-rb_proc_alloc(void)
-{
- return proc_alloc(rb_cProc);
-}
-
-VALUE
rb_obj_is_proc(VALUE proc)
{
if (TYPE(proc) == T_DATA &&
@@ -90,7 +84,7 @@ rb_obj_is_proc(VALUE proc)
static VALUE
proc_dup(VALUE self)
{
- VALUE procval = proc_alloc(rb_cProc);
+ VALUE procval = rb_proc_alloc(rb_cProc);
rb_proc_t *src, *dst;
GetProcPtr(self, src);
GetProcPtr(procval, dst);