From a52603a8ea0fa31fd567d42efcbad256bb48e2b5 Mon Sep 17 00:00:00 2001 From: ko1 Date: Thu, 16 Nov 2017 09:00:15 +0000 Subject: make a func static. * vm_backtrace.c (rb_ec_backtrace_location_ary): make it static and remove `rb_` prefix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- eval_intern.h | 1 - vm_backtrace.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/eval_intern.h b/eval_intern.h index d6ed25d4f3..93f866371e 100644 --- a/eval_intern.h +++ b/eval_intern.h @@ -314,7 +314,6 @@ VALUE rb_vm_cbase(void); /* vm_backtrace.c */ VALUE rb_ec_backtrace_object(const rb_execution_context_t *ec); VALUE rb_ec_backtrace_str_ary(const rb_execution_context_t *ec, long lev, long n); -VALUE rb_ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n); #ifndef CharNext /* defined as CharNext[AW] on Windows. */ # ifdef HAVE_MBLEN diff --git a/vm_backtrace.c b/vm_backtrace.c index 0418b6c4d0..93f0cb9772 100644 --- a/vm_backtrace.c +++ b/vm_backtrace.c @@ -683,7 +683,7 @@ rb_ec_backtrace_str_ary(const rb_execution_context_t *ec, long lev, long n) } VALUE -rb_ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n) +ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n) { return backtrace_to_location_ary(rb_ec_backtrace_object(ec), lev, n); } @@ -1203,7 +1203,7 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data) dbg_context.ec = ec; dbg_context.cfp = dbg_context.ec->cfp; - dbg_context.backtrace = rb_ec_backtrace_location_ary(ec, 0, 0); + dbg_context.backtrace = ec_backtrace_location_ary(ec, 0, 0); dbg_context.backtrace_size = RARRAY_LEN(dbg_context.backtrace); dbg_context.contexts = collect_caller_bindings(ec); -- cgit v1.2.1