Skip to content
Permalink
Browse files
mrb_str_strlen() should be MRB_API; ref #3216
  • Loading branch information
matz committed Sep 27, 2016
1 parent 6bc4b47 commit afbe211c606a79ccc3395c51eb70dd9e8a46849f
Showing 2 changed files with 2 additions and 2 deletions.
@@ -76,7 +76,7 @@ struct RString {
#define RSTRING_LEN(s) RSTR_LEN(RSTRING(s))
#define RSTRING_CAPA(s) RSTR_CAPA(RSTRING(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_NOFREE 2
@@ -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_int i, max = RSTR_LEN(s);

0 comments on commit afbe211

Please sign in to comment.