Global renaming regarding integer and float.

Consistent number conversion function names:
* `mrb_value` to immediate (C) value
  * `mrb_int()` -> `mrb_as_int()`
  * `mrb_to_flo()` -> `mrb_as_float()`
* `mrb_value` to `mrb_value` (converted)
  * `mrb_to_int()'
  * `mrb_Integer()` - removed
  * `mrb_Float()` -> `mrb_to_float`

Consistent function name (avoid `_flo` suffix):
* `mrb_div_flo()` -> `mrb_div_float`
This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-05-17 15:07:05 +09:00
parent ea7f1953c3
commit 5eebbd7df2
18 changed files with 91 additions and 102 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ str_casecmp_p(const char *s1, mrb_int len1, const char *s2, mrb_int len2)
static mrb_value
int_chr_binary(mrb_state *mrb, mrb_value num)
{
mrb_int cp = mrb_int(mrb, num);
mrb_int cp = mrb_as_int(mrb, num);
char c;
mrb_value str;