summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2019-05-17 11:30:38 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2019-05-17 11:30:38 +0900
commit237a57bbe831c57d3ebb0f9cc69768dbc8dda589 (patch)
treec6761e2d0b949d1afcacefff021305aa6195202a
parent0d61bcd823df74c65d8d5a3f8e36661780f92914 (diff)
downloadmruby-237a57bbe831c57d3ebb0f9cc69768dbc8dda589.tar.gz
mruby-237a57bbe831c57d3ebb0f9cc69768dbc8dda589.zip
Make unused functions private.
* mrb_fixnum_plus() * mrb_fixnum_minus() * mrb_fixnum_mul()
-rw-r--r--include/mruby/numeric.h4
-rw-r--r--src/numeric.c6
2 files changed, 3 insertions, 7 deletions
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h
index 2fae3142d..9d87ca5c4 100644
--- a/include/mruby/numeric.h
+++ b/include/mruby/numeric.h
@@ -36,10 +36,6 @@ MRB_API mrb_value mrb_float_to_str(mrb_state *mrb, mrb_value x, const char *fmt)
MRB_API mrb_float mrb_to_flo(mrb_state *mrb, mrb_value x);
#endif
-mrb_value mrb_fixnum_plus(mrb_state *mrb, mrb_value x, mrb_value y);
-mrb_value mrb_fixnum_minus(mrb_state *mrb, mrb_value x, mrb_value y);
-mrb_value mrb_fixnum_mul(mrb_state *mrb, mrb_value x, mrb_value y);
-
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif
diff --git a/src/numeric.c b/src/numeric.c
index 8e5fefa04..6622a46e9 100644
--- a/src/numeric.c
+++ b/src/numeric.c
@@ -787,7 +787,7 @@ int_to_i(mrb_state *mrb, mrb_value num)
return num;
}
-mrb_value
+static mrb_value
mrb_fixnum_mul(mrb_state *mrb, mrb_value x, mrb_value y)
{
mrb_int a;
@@ -1244,7 +1244,7 @@ mrb_flo_to_fixnum(mrb_state *mrb, mrb_value x)
}
#endif
-mrb_value
+static mrb_value
mrb_fixnum_plus(mrb_state *mrb, mrb_value x, mrb_value y)
{
mrb_int a;
@@ -1287,7 +1287,7 @@ fix_plus(mrb_state *mrb, mrb_value self)
return mrb_fixnum_plus(mrb, self, other);
}
-mrb_value
+static mrb_value
mrb_fixnum_minus(mrb_state *mrb, mrb_value x, mrb_value y)
{
mrb_int a;