From 52ad150a75d6a1ae75019e1bcd225b00f0f44b91 Mon Sep 17 00:00:00 2001 From: k0kubun Date: Thu, 13 Sep 2018 13:59:25 +0000 Subject: iseq.c: prefix rb_ to non-static iseq functions I assume we always prefix rb_ to non-static functions to avoid conflict. These functions are not exported and safe to be renamed. iseq.h: ditto compile.c: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- compile.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'compile.c') diff --git a/compile.c b/compile.c index 9ce89bccf1..9c2770d158 100644 --- a/compile.c +++ b/compile.c @@ -9804,7 +9804,7 @@ ibf_dump_setup(struct ibf_dump *dump, VALUE dumper_obj) } VALUE -iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt) +rb_iseq_ibf_dump(const rb_iseq_t *iseq, VALUE opt) { struct ibf_dump *dump; struct ibf_header header = {{0}}; @@ -9863,14 +9863,14 @@ ibf_iseq_list(const struct ibf_load *load) } void -ibf_load_iseq_complete(rb_iseq_t *iseq) +rb_ibf_load_iseq_complete(rb_iseq_t *iseq) { struct ibf_load *load = RTYPEDDATA_DATA(iseq->aux.loader.obj); rb_iseq_t *prev_src_iseq = load->iseq; const ibf_offset_t offset = ibf_iseq_list(load)[iseq->aux.loader.index]; load->iseq = iseq; #if IBF_ISEQ_DEBUG - fprintf(stderr, "ibf_load_iseq_complete: index=%#x offset=%#x size=%#x\n", + fprintf(stderr, "rb_ibf_load_iseq_complete: index=%#x offset=%#x size=%#x\n", iseq->aux.loader.index, offset, load->header->size); #endif @@ -9888,7 +9888,7 @@ ibf_load_iseq_complete(rb_iseq_t *iseq) const rb_iseq_t * rb_iseq_complete(const rb_iseq_t *iseq) { - ibf_load_iseq_complete((rb_iseq_t *)iseq); + rb_ibf_load_iseq_complete((rb_iseq_t *)iseq); return iseq; } #endif @@ -9932,7 +9932,7 @@ ibf_load_iseq(const struct ibf_load *load, const rb_iseq_t *index_iseq) #if IBF_ISEQ_DEBUG fprintf(stderr, "ibf_load_iseq: loading iseq=%p\n", iseq); #endif - ibf_load_iseq_complete(iseq); + rb_ibf_load_iseq_complete(iseq); #endif /* !USE_LAZY_LOAD */ #if IBF_ISEQ_DEBUG @@ -10020,7 +10020,7 @@ static const rb_data_type_t ibf_load_type = { }; const rb_iseq_t * -iseq_ibf_load(VALUE str) +rb_iseq_ibf_load(VALUE str) { struct ibf_load *load; rb_iseq_t *iseq; @@ -10029,14 +10029,14 @@ iseq_ibf_load(VALUE str) ibf_load_setup(load, loader_obj, str); iseq = ibf_load_iseq(load, 0); - iseq_init_trace(iseq); + rb_iseq_init_trace(iseq); RB_GC_GUARD(loader_obj); return iseq; } VALUE -iseq_ibf_load_extra_data(VALUE str) +rb_iseq_ibf_load_extra_data(VALUE str) { struct ibf_load *load; VALUE loader_obj = TypedData_Make_Struct(0, struct ibf_load, &ibf_load_type, load); -- cgit v1.2.3