summaryrefslogtreecommitdiff
path: root/proc.c
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-25 02:44:20 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-25 02:44:20 +0000
commit4bdb5ced9a06532d33e6aa0dd6be49e863b31d22 (patch)
treee45cc5127c0734b78ea979be8a572f9123dca8e1 /proc.c
parentace2b68ac4215b46f5de94bad68f3fef91df4245 (diff)
* gc.h: add RUBY_ prefix to debug macros.
* cont.c, proc.c, yarvcore.c, * gc.c: define ruby_gc_debug_indent variable to debug mark/free. * vm.c, insnhelper.ci: rename some functions to vm_* or rb_vm_*. move some functions, definitions, declarations to suitable files. * eval.c, yarvcore.h, eval_error.ci, insnhelper.ci: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'proc.c')
-rw-r--r--proc.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/proc.c b/proc.c
index cb53a0f8ca..8d6ec0e8cd 100644
--- a/proc.c
+++ b/proc.c
@@ -34,29 +34,29 @@ static VALUE rb_obj_is_method(VALUE m);
static void
proc_free(void *ptr)
{
- FREE_REPORT_ENTER("proc");
+ RUBY_FREE_ENTER("proc");
if (ptr) {
ruby_xfree(ptr);
}
- FREE_REPORT_LEAVE("proc");
+ RUBY_FREE_LEAVE("proc");
}
static void
proc_mark(void *ptr)
{
rb_proc_t *proc;
- MARK_REPORT_ENTER("proc");
+ RUBY_MARK_ENTER("proc");
if (ptr) {
proc = ptr;
- MARK_UNLESS_NULL(proc->envval);
- MARK_UNLESS_NULL(proc->blockprocval);
- MARK_UNLESS_NULL((VALUE)proc->special_cref_stack);
- MARK_UNLESS_NULL(proc->block.proc);
+ RUBY_MARK_UNLESS_NULL(proc->envval);
+ RUBY_MARK_UNLESS_NULL(proc->blockprocval);
+ RUBY_MARK_UNLESS_NULL((VALUE)proc->special_cref_stack);
+ RUBY_MARK_UNLESS_NULL(proc->block.proc);
if (proc->block.iseq && RUBY_VM_IFUNC_P(proc->block.iseq)) {
- MARK_UNLESS_NULL((VALUE)(proc->block.iseq));
+ RUBY_MARK_UNLESS_NULL((VALUE)(proc->block.iseq));
}
}
- MARK_REPORT_LEAVE("proc");
+ RUBY_MARK_LEAVE("proc");
}
static VALUE
@@ -126,25 +126,25 @@ static void
binding_free(void *ptr)
{
rb_binding_t *bind;
- FREE_REPORT_ENTER("binding");
+ RUBY_FREE_ENTER("binding");
if (ptr) {
bind = ptr;
ruby_xfree(ptr);
}
- FREE_REPORT_LEAVE("binding");
+ RUBY_FREE_LEAVE("binding");
}
static void
binding_mark(void *ptr)
{
rb_binding_t *bind;
- MARK_REPORT_ENTER("binding");
+ RUBY_MARK_ENTER("binding");
if (ptr) {
bind = ptr;
- MARK_UNLESS_NULL(bind->env);
- MARK_UNLESS_NULL((VALUE)bind->cref_stack);
+ RUBY_MARK_UNLESS_NULL(bind->env);
+ RUBY_MARK_UNLESS_NULL((VALUE)bind->cref_stack);
}
- MARK_REPORT_LEAVE("binding");
+ RUBY_MARK_LEAVE("binding");
}
static VALUE