aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 09:00:15 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-16 09:00:15 +0000
commita52603a8ea0fa31fd567d42efcbad256bb48e2b5 (patch)
treef862fd996baab687f0656534fddbd35669dafc8a
parentb453fc2cb91eec4527f4039a965f27cc7715c365 (diff)
downloadruby-a52603a8ea0fa31fd567d42efcbad256bb48e2b5.tar.gz
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
-rw-r--r--eval_intern.h1
-rw-r--r--vm_backtrace.c4
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);