From 6423011986aca8e71508a8ffe6df823e44c196bd Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sun, 9 Mar 2014 02:35:49 +0900 Subject: remove invocation of strlen() on buffer of strings; with refactoring --- include/mruby/string.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 -- cgit v1.2.3