summaryrefslogtreecommitdiffhomepage
path: root/src/string.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2016-09-27 10:29:56 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2016-09-27 10:29:56 +0900
commitafbe211c606a79ccc3395c51eb70dd9e8a46849f (patch)
treef20f27d8c319918be7171e46d093c2565a724912 /src/string.c
parent6bc4b47c4666649c6a043697b00b4664b360b7e8 (diff)
downloadmruby-afbe211c606a79ccc3395c51eb70dd9e8a46849f.tar.gz
mruby-afbe211c606a79ccc3395c51eb70dd9e8a46849f.zip
mrb_str_strlen() should be MRB_API; ref #3216
Diffstat (limited to 'src/string.c')
-rw-r--r--src/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/string.c b/src/string.c
index 61aa08577..15fcc502a 100644
--- a/src/string.c
+++ b/src/string.c
@@ -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);