Skip to content

Commit a52603a

Browse files
committed
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
1 parent b453fc2 commit a52603a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

eval_intern.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ VALUE rb_vm_cbase(void);
314314
/* vm_backtrace.c */
315315
VALUE rb_ec_backtrace_object(const rb_execution_context_t *ec);
316316
VALUE rb_ec_backtrace_str_ary(const rb_execution_context_t *ec, long lev, long n);
317-
VALUE rb_ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n);
318317

319318
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
320319
# ifdef HAVE_MBLEN

vm_backtrace.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ rb_ec_backtrace_str_ary(const rb_execution_context_t *ec, long lev, long n)
683683
}
684684

685685
VALUE
686-
rb_ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n)
686+
ec_backtrace_location_ary(const rb_execution_context_t *ec, long lev, long n)
687687
{
688688
return backtrace_to_location_ary(rb_ec_backtrace_object(ec), lev, n);
689689
}
@@ -1203,7 +1203,7 @@ rb_debug_inspector_open(rb_debug_inspector_func_t func, void *data)
12031203

12041204
dbg_context.ec = ec;
12051205
dbg_context.cfp = dbg_context.ec->cfp;
1206-
dbg_context.backtrace = rb_ec_backtrace_location_ary(ec, 0, 0);
1206+
dbg_context.backtrace = ec_backtrace_location_ary(ec, 0, 0);
12071207
dbg_context.backtrace_size = RARRAY_LEN(dbg_context.backtrace);
12081208
dbg_context.contexts = collect_caller_bindings(ec);
12091209

0 commit comments

Comments
 (0)