From b62374b4b4091fba9b5470819ee9a18a13c486a8 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 18 Jan 2014 16:23:12 +0900 Subject: [PATCH] s/print_irep/pic_dump_irep/g --- include/picrin/irep.h | 2 +- src/codegen.c | 6 +++--- src/vm.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/picrin/irep.h b/include/picrin/irep.h index 66cc8634..67419c2f 100644 --- a/include/picrin/irep.h +++ b/include/picrin/irep.h @@ -66,7 +66,7 @@ struct pic_irep { bool varg; }; -void print_irep(pic_state *, struct pic_irep *); +void pic_dump_irep(pic_state *, struct pic_irep *); #if defined(__cplusplus) } diff --git a/src/codegen.c b/src/codegen.c index 098f310d..49456e90 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -884,7 +884,7 @@ codegen_lambda(codegen_state *state, pic_value obj) #if VM_DEBUG printf("* generated lambda:\n"); - print_irep(pic, irep); + pic_dump_irep(pic, irep); puts(""); #endif @@ -924,7 +924,7 @@ pic_codegen(pic_state *pic, pic_value obj) destroy_codegen_state(pic, state); #if VM_DEBUG - print_irep(pic, proc->u.irep); + pic_dump_irep(pic, proc->u.irep); #endif exit: @@ -1098,7 +1098,7 @@ print_code(pic_state *pic, struct pic_code c) } void -print_irep(pic_state *pic, struct pic_irep *irep) +pic_dump_irep(pic_state *pic, struct pic_irep *irep) { int i; diff --git a/src/vm.c b/src/vm.c index bcb60c96..dacf768d 100644 --- a/src/vm.c +++ b/src/vm.c @@ -420,7 +420,7 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value argv) puts(""); if (! proc->cfunc_p) { printf(" irep = "); - print_irep(pic, proc->u.irep); + pic_dump_irep(pic, proc->u.irep); } else { printf(" cfunc = %p\n", (void *)proc->u.cfunc); @@ -553,7 +553,7 @@ pic_apply(pic_state *pic, struct pic_proc *proc, pic_value argv) puts(""); if (! proc->cfunc_p) { printf(" irep = "); - print_irep(pic, proc->u.irep); + pic_dump_irep(pic, proc->u.irep); } else { printf(" cfunc = %p\n", (void *)proc->u.cfunc);