diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-07 14:20:57 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-07 14:31:56 +0900 |
| commit | 79bc8e25397a0f343a85aebeca036edc0c42562c (patch) | |
| tree | 555a1e6cfdeac0cd28ae2e74c2f894134b365f03 /include | |
| parent | 674d841ead126e41471bd53a490d0d20aa0cff53 (diff) | |
| download | mruby-79bc8e25397a0f343a85aebeca036edc0c42562c.tar.gz mruby-79bc8e25397a0f343a85aebeca036edc0c42562c.zip | |
string.h: rename `mrb_str_to_inum` to `mrb_str_to_integer`.
Consistent naming: `integer` to represent integer packed in `mrb_value`
instead of `inum`.
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/string.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index b214aa7c8..b296832af 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -355,7 +355,9 @@ MRB_API mrb_value mrb_str_dup(mrb_state *mrb, mrb_value str); */ MRB_API mrb_value mrb_str_intern(mrb_state *mrb, mrb_value self); -MRB_API mrb_value mrb_str_to_inum(mrb_state *mrb, mrb_value str, mrb_int base, mrb_bool badcheck); +MRB_API mrb_value mrb_str_to_integer(mrb_state *mrb, mrb_value str, mrb_int base, mrb_bool badcheck); +/* obsolete: use mrb_str_to_integer() */ +#define mrb_str_to_inum(mrb, str, base, badcheck) mrb_str_to_integer(mrb, str, base, badcheck) MRB_API double mrb_str_to_dbl(mrb_state *mrb, mrb_value str, mrb_bool badcheck); /** |
