remove invocation of strlen() on buffer of strings; with refactoring

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-03-09 02:35:49 +09:00
parent ee57789c72
commit 6423011986
3 changed files with 23 additions and 22 deletions
+1
View File
@@ -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