summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 02:35:49 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 02:35:49 +0900
commit6423011986aca8e71508a8ffe6df823e44c196bd (patch)
tree773085ee7a0a3bd3070ea13a798a08612e14a96c /include
parentee57789c724cb8bb86ebeda2dfd2ef585e996f68 (diff)
downloadmruby-6423011986aca8e71508a8ffe6df823e44c196bd.tar.gz
mruby-6423011986aca8e71508a8ffe6df823e44c196bd.zip
remove invocation of strlen() on buffer of strings; with refactoring
Diffstat (limited to 'include')
-rw-r--r--include/mruby/string.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h
index 8a26192e6..31e101246 100644
--- a/include/mruby/string.h
+++ b/include/mruby/string.h
@@ -47,6 +47,7 @@ struct RString {
RSTRING_EMBED_LEN_MAX :\
RSTRING(s)->as.heap.aux.capa)
#define RSTRING_END(s) (RSTRING_PTR(s) + RSTRING_LEN(s))
+mrb_int mrb_str_strlen(mrb_state*, struct RString*);
#define MRB_STR_SHARED 1
#define MRB_STR_NOFREE 2