From beaf365dd4758b4d42c0ee72ef18a61fb43e0569 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 20 May 2021 10:46:47 +0900 Subject: 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`. --- src/fmt_fp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 -MRB_API mrb_value +mrb_value mrb_float_to_str(mrb_state *mrb, mrb_value flo, const char *fmt) { char buf[25]; -- cgit v1.2.3