mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Fix missing MRB_API prefix for functions below; clse #4267
Functions to add prototypes to headers: * mrb_ary_splice() * mrb_notimplement() * mrb_vformat() * mrb_cstr_to_dbl() * mrb_cstr_to_inum() Functions to be made `static` (`MRB_API` was not needed): * mrb_mod_module_function() * mrb_obj_hash() * mrb_str_len_to_inum() Functions to remove `MRB_API` from definitions (referenced from within `libmruby`): * mrb_mod_cv_defined() * mrb_mod_cv_get() * mrb_f_send()
This commit is contained in:
+2
-2
@@ -2006,7 +2006,7 @@ mrb_str_split_m(mrb_state *mrb, mrb_value str)
|
||||
return result;
|
||||
}
|
||||
|
||||
MRB_API mrb_value
|
||||
static mrb_value
|
||||
mrb_str_len_to_inum(mrb_state *mrb, const char *str, mrb_int len, mrb_int base, int badcheck)
|
||||
{
|
||||
const char *p = str;
|
||||
@@ -2174,7 +2174,7 @@ mrb_str_len_to_inum(mrb_state *mrb, const char *str, mrb_int len, mrb_int base,
|
||||
}
|
||||
|
||||
MRB_API mrb_value
|
||||
mrb_cstr_to_inum(mrb_state *mrb, const char *str, int base, int badcheck)
|
||||
mrb_cstr_to_inum(mrb_state *mrb, const char *str, mrb_int base, mrb_bool badcheck)
|
||||
{
|
||||
return mrb_str_len_to_inum(mrb, str, strlen(str), base, badcheck);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user