string.c: make mrb_str_len_{inum,dbl}() static.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-06-08 17:19:31 +09:00
parent d8ec544564
commit 3acc09ae61
2 changed files with 2 additions and 4 deletions
-2
View File
@@ -60,8 +60,6 @@ str_to_double(mrb_state *mrb, const char *p)
}
#endif
mrb_value mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, mrb_int base, int badcheck);
static mrb_bool
read_irep_record_1(mrb_state *mrb, const uint8_t *bin, size_t *len, uint8_t flags, mrb_irep **irepp)
{
+2 -2
View File
@@ -2199,7 +2199,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
return result;
}
mrb_value
static mrb_value
mrb_str_len_to_inum(mrb_state *mrb, const char *str, size_t len, mrb_int base, int badcheck)
{
const char *p = str;
@@ -2440,7 +2440,7 @@ mrb_str_to_i(mrb_state *mrb, mrb_value self)
}
#ifndef MRB_NO_FLOAT
double
static double
mrb_str_len_to_dbl(mrb_state *mrb, const char *s, size_t len, mrb_bool badcheck)
{
char buf[DBL_DIG * 4 + 20];