mrb_str_strlen() should be MRB_API; ref #3216

parent 6bc4b47c
...@@ -76,7 +76,7 @@ struct RString { ...@@ -76,7 +76,7 @@ struct RString {
#define RSTRING_LEN(s) RSTR_LEN(RSTRING(s)) #define RSTRING_LEN(s) RSTR_LEN(RSTRING(s))
#define RSTRING_CAPA(s) RSTR_CAPA(RSTRING(s)) #define RSTRING_CAPA(s) RSTR_CAPA(RSTRING(s))
#define RSTRING_END(s) (RSTRING_PTR(s) + RSTRING_LEN(s)) #define RSTRING_END(s) (RSTRING_PTR(s) + RSTRING_LEN(s))
mrb_int mrb_str_strlen(mrb_state*, struct RString*); MRB_API mrb_int mrb_str_strlen(mrb_state*, struct RString*);
#define MRB_STR_SHARED 1 #define MRB_STR_SHARED 1
#define MRB_STR_NOFREE 2 #define MRB_STR_NOFREE 2
......
...@@ -576,7 +576,7 @@ str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos) ...@@ -576,7 +576,7 @@ str_rindex(mrb_state *mrb, mrb_value str, mrb_value sub, mrb_int pos)
} }
} }
mrb_int MRB_API mrb_int
mrb_str_strlen(mrb_state *mrb, struct RString *s) mrb_str_strlen(mrb_state *mrb, struct RString *s)
{ {
mrb_int i, max = RSTR_LEN(s); mrb_int i, max = RSTR_LEN(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment