diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-20 10:46:47 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-05-21 08:13:38 +0900 |
| commit | beaf365dd4758b4d42c0ee72ef18a61fb43e0569 (patch) | |
| tree | 5e8e973dae8e02f7d3dad14619e7edb001209948 /include | |
| parent | 03c4e114a9e919b4a8e93624f789a9e0fe4ff306 (diff) | |
| download | mruby-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 'include')
| -rw-r--r-- | include/mruby/numeric.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/mruby/numeric.h b/include/mruby/numeric.h index 21fbd583d..2eed1b051 100644 --- a/include/mruby/numeric.h +++ b/include/mruby/numeric.h @@ -161,15 +161,15 @@ mrb_int_mul_overflow(mrb_int a, mrb_int b, mrb_int *c) # endif /* MRB_USE_FLOAT32 */ MRB_API mrb_value mrb_float_to_integer(mrb_state *mrb, mrb_value val); -MRB_API mrb_value mrb_float_to_str(mrb_state *mrb, mrb_value x, const char *fmt); -/* ArgumentError if format string doesn't match /%(\.[0-9]+)?[aAeEfFgG]/ */ -MRB_API int mrb_float_to_cstr(mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_float f); MRB_API mrb_float mrb_as_float(mrb_state *mrb, mrb_value x); -/* internal function(s) */ +/* internal functions */ mrb_float mrb_div_float(mrb_float x, mrb_float y); +/* ArgumentError if format string doesn't match /%(\.[0-9]+)?[aAeEfFgG]/ */ +mrb_value mrb_float_to_str(mrb_state *mrb, mrb_value x); +int mrb_float_to_cstr(mrb_state *mrb, char *buf, size_t len, const char *fmt, mrb_float f); -/* obsolete function(s); will be removed */ +/* obsolete functions; will be removed */ #define mrb_flo_to_fixnum(mrb, val) mrb_float_to_integer(mrb, val) #define mrb_to_flo(mrb, x) mrb_as_float(mrb, x) |
