[前][次][番号順一覧][スレッド一覧]

ruby-changes:48693

From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 18:00:20 +0900 (JST)
Subject: [ruby-changes:48693] ko1:r60809 (trunk): make a func static.

ko1	2017-11-16 18:00:15 +0900 (Thu, 16 Nov 2017)

  New Revision: 60809

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60809

  Log:
    make a func static.
    
    * vm_backtrace.c (rb_ec_backtrace_location_ary): make it static and
      remove `rb_` prefix.

  Modified files:
    trunk/eval_intern.h
    trunk/vm_backtrace.c
Index: eval_intern.h
===================================================================
--- eval_intern.h	(revision 60808)
+++ eval_intern.h	(revision 60809)
@@ -314,7 +314,6 @@ VALUE rb_vm_cbase(void); https://github.com/ruby/ruby/blob/trunk/eval_intern.h#L314
 /* 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
Index: vm_backtrace.c
===================================================================
--- vm_backtrace.c	(revision 60808)
+++ vm_backtrace.c	(revision 60809)
@@ -683,7 +683,7 @@ rb_ec_backtrace_str_ary(const rb_executi https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L683
 }
 
 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_inspect https://github.com/ruby/ruby/blob/trunk/vm_backtrace.c#L1203
 
     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);
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]