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

ruby-changes:48689

From: ko1 <ko1@a...>
Date: Thu, 16 Nov 2017 17:01:30 +0900 (JST)
Subject: [ruby-changes:48689] ko1:r60805 (trunk): make a func static.

ko1	2017-11-16 17:01:26 +0900 (Thu, 16 Nov 2017)

  New Revision: 60805

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

  Log:
    make a func static.
    
    * addr2line.c (main_exe_path): make it static.

  Modified files:
    trunk/addr2line.c
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 60804)
+++ addr2line.c	(revision 60805)
@@ -654,7 +654,7 @@ fail: https://github.com/ruby/ruby/blob/trunk/addr2line.c#L654
  * it is NUL terminated.
  */
 #if defined(__linux__)
-ssize_t
+static ssize_t
 main_exe_path(void)
 {
 # define PROC_SELF_EXE "/proc/self/exe"
@@ -663,7 +663,7 @@ main_exe_path(void) https://github.com/ruby/ruby/blob/trunk/addr2line.c#L663
     return len;
 }
 #elif defined(__FreeBSD__)
-ssize_t
+static ssize_t
 main_exe_path(void)
 {
     int mib[4] = {CTL_KERN, KERN_PROC, KERN_PROC_PATHNAME, -1};

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

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