summaryrefslogtreecommitdiffhomepage
path: root/src/fmt_fp.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-05-20 10:46:47 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-05-21 08:13:38 +0900
commitbeaf365dd4758b4d42c0ee72ef18a61fb43e0569 (patch)
tree5e8e973dae8e02f7d3dad14619e7edb001209948 /src/fmt_fp.c
parent03c4e114a9e919b4a8e93624f789a9e0fe4ff306 (diff)
downloadmruby-beaf365dd4758b4d42c0ee72ef18a61fb43e0569.tar.gz
mruby-beaf365dd4758b4d42c0ee72ef18a61fb43e0569.zip
numeric.h: remove 2 functions from `MRB_API`
- `mrb_float_to_str()` - `mrb_float_to_cstr()` Both functions will be replaced to support new coming `format-float.c`.
Diffstat (limited to 'src/fmt_fp.c')
-rw-r--r--src/fmt_fp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fmt_fp.c b/src/fmt_fp.c
index d3fe97ce3..1fcbbd5ac 100644
--- a/src/fmt_fp.c
+++ b/src/fmt_fp.c
@@ -410,7 +410,7 @@ fmt_core(struct fmt_args *f, const char *fmt, mrb_float flo)
}
}
-MRB_API mrb_value
+mrb_value
mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt)
{
struct fmt_args f;
@@ -425,7 +425,7 @@ mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt)
return str;
}
-MRB_API int
+int
mrb_float_to_cstr(mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_float fval)
{
struct fmt_args f;
@@ -445,7 +445,7 @@ mrb_float_to_cstr(mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_fl
#else /* MRB_NO_STDIO || _WIN32 || _WIN64 */
#include <stdio.h>
-MRB_API mrb_value
+mrb_value
mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt)
{
char buf[25];