summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-05-17 13:57:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-05-17 13:59:01 +0900
commitea7f1953c3886d7597eaed21c84fdba209ee6d9b (patch)
tree4ca42ede3745524ea59eed22a7f1d38a99bdfe8d /include
parent080fdbf9e8860c5151aac78081d8a731b09ad545 (diff)
downloadmruby-ea7f1953c3886d7597eaed21c84fdba209ee6d9b.tar.gz
mruby-ea7f1953c3886d7597eaed21c84fdba209ee6d9b.zip
Rename `mrb_fixnum_to_str` to `mrb_integer_to_str`.
Diffstat (limited to 'include')
-rw-r--r--include/mruby/numeric.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h
index 3383b00d0..1735a0ba6 100644
--- a/include/mruby/numeric.h
+++ b/include/mruby/numeric.h
@@ -30,12 +30,15 @@ MRB_BEGIN_DECL
#endif
#endif
-MRB_API mrb_value mrb_fixnum_to_str(mrb_state *mrb, mrb_value x, mrb_int base);
-
MRB_API mrb_value mrb_num_plus(mrb_state *mrb, mrb_value x, mrb_value y);
MRB_API mrb_value mrb_num_minus(mrb_state *mrb, mrb_value x, mrb_value y);
MRB_API mrb_value mrb_num_mul(mrb_state *mrb, mrb_value x, mrb_value y);
+MRB_API mrb_value mrb_integer_to_str(mrb_state *mrb, mrb_value x, mrb_int base);
+
+/* obsolete function(s); will be removed */
+#define mrb_fixnum_to_str(mrb, x, base) mrb_integer_to_str(mrb, x, base)
+
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif