diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-04-22 12:19:57 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-04-22 12:19:57 -0700 |
commit | 8e09f77a7aee616096060d321798732221e69c09 (patch) | |
tree | 08dde9b4fff567203566e8538791f8ddda72cfe7 | |
parent | eea2111f6190c7f42c548c4bde3110834447a2fb (diff) | |
download | rpatricia-8e09f77a7aee616096060d321798732221e69c09.tar.gz |
reduce symbol visibility in rpatricia.c
There is no need for these functions and global variable to be visible outside of rpatricia.c, so mark them as static to avoid potential conflicts with other libraries.
-rw-r--r-- | ext/rpatricia/rpatricia.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/rpatricia/rpatricia.c b/ext/rpatricia/rpatricia.c index 75000e1..ec8c6a3 100644 --- a/ext/rpatricia/rpatricia.c +++ b/ext/rpatricia/rpatricia.c @@ -8,9 +8,9 @@ #include <stdlib.h> #include "patricia.h" -VALUE cPatricia; +static VALUE cPatricia; -void dummy(void) {} +static void dummy(void) {} static VALUE p_destroy (VALUE self) @@ -21,7 +21,7 @@ p_destroy (VALUE self) return Qtrue; } -VALUE +static VALUE p_add (int argc, VALUE *argv, VALUE self) { int str_len; |