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

ruby-changes:40117

From: normal <ko1@a...>
Date: Tue, 20 Oct 2015 05:56:26 +0900 (JST)
Subject: [ruby-changes:40117] normal:r52198 (trunk): ext/fiddle/closure.c (callback): static function

normal	2015-10-20 05:56:08 +0900 (Tue, 20 Oct 2015)

  New Revision: 52198

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

  Log:
    ext/fiddle/closure.c (callback): static function
    
    The `callback' function is not used outside of closure.c and
    should not be able to cause namespace conflicts in compilers
    without visibility pragmas.

  Modified files:
    trunk/ChangeLog
    trunk/ext/fiddle/closure.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 52197)
+++ ChangeLog	(revision 52198)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Oct 20 05:54:46 2015  Eric Wong  <e@8...>
+
+	* ext/fiddle/closure.c (callback): static function
+
 Mon Oct 19 10:33:46 2015  Nobuyoshi Nakada  <nobu@r...>
 
 	* ext/socket/init.c (rsock_raise_socket_error): get rid of a glibc
Index: ext/fiddle/closure.c
===================================================================
--- ext/fiddle/closure.c	(revision 52197)
+++ ext/fiddle/closure.c	(revision 52198)
@@ -55,7 +55,7 @@ const rb_data_type_t closure_data_type = https://github.com/ruby/ruby/blob/trunk/ext/fiddle/closure.c#L55
     {0, dealloc, closure_memsize,},
 };
 
-void
+static void
 callback(ffi_cif *cif, void *resp, void **args, void *ctx)
 {
     VALUE self      = (VALUE)ctx;

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

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