mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove invocation of strlen() on buffer of strings; with refactoring
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user