Commit 7dabb33c authored by cremno's avatar cremno

change linkage of mrb_str_size to internal

Use RSTRING_LEN to get the length.
parent 206f89e2
...@@ -445,7 +445,7 @@ mrb_str_bytesize(mrb_state *mrb, mrb_value self) ...@@ -445,7 +445,7 @@ mrb_str_bytesize(mrb_state *mrb, mrb_value self)
* *
* Returns a new string object containing a copy of <i>str</i>. * Returns a new string object containing a copy of <i>str</i>.
*/ */
MRB_API mrb_value static mrb_value
mrb_str_size(mrb_state *mrb, mrb_value self) mrb_str_size(mrb_state *mrb, mrb_value self)
{ {
struct RString *s = mrb_str_ptr(self); struct RString *s = mrb_str_ptr(self);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment