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 with 2 additions and 2 deletions.
  1. +1 −1 include/mruby/string.h
  2. +1 −1 src/string.c
View
@@ -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
View
@@ -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.