dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] fiddle/closure: static callback function
@ 2015-10-19 20:38 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-10-19 20:38 UTC (permalink / raw)
  To: spew

This function is not used outside of this file and should not be
able to cause namespace conflicts in compilers without visibility
pragmas.
---
 ext/fiddle/closure.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c
index d857bfe..ca1b10a 100644
--- a/ext/fiddle/closure.c
+++ b/ext/fiddle/closure.c
@@ -55,7 +55,7 @@ const rb_data_type_t closure_data_type = {
     {0, dealloc, closure_memsize,},
 };
 
-void
+static void
 callback(ffi_cif *cif, void *resp, void **args, void *ctx)
 {
     VALUE self      = (VALUE)ctx;
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-10-19 20:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-19 20:38 [PATCH] fiddle/closure: static callback function Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).