summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:07:41 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-08 15:07:41 (GMT)
commitbb4d72c51f9c7233c2d3b54c4fc1359557f3482d (patch)
tree2b4f0884dfe9dc59181e87e173bba0b888c30e7b /variable.c
parentbd7e04e4d75512fd98a4084ec6f706d643e49fe6 (diff)
make local symbols static
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index f6dd3ee..e64a2fb 100644
--- a/variable.c
+++ b/variable.c
@@ -1038,7 +1038,7 @@ gen_ivtbl_bytes(size_t n)
return sizeof(struct gen_ivtbl) + n * sizeof(VALUE) - sizeof(VALUE);
}
-struct gen_ivtbl *
+static struct gen_ivtbl *
gen_ivtbl_resize(struct gen_ivtbl *old, long n)
{
long len = old ? old->numiv : 0;
@@ -1052,7 +1052,8 @@ gen_ivtbl_resize(struct gen_ivtbl *old, long n)
return ivtbl;
}
-struct gen_ivtbl *
+#if 0
+static struct gen_ivtbl *
gen_ivtbl_dup(const struct gen_ivtbl *orig)
{
size_t s = gen_ivtbl_bytes(orig->numiv);
@@ -1062,6 +1063,7 @@ gen_ivtbl_dup(const struct gen_ivtbl *orig)
return ivtbl;
}
+#endif
static long
iv_index_tbl_newsize(struct ivar_update *ivup)