mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
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`.
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user