From 5077f9ec8bca9bc5d8c2802d89290415ec1baea0 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Mon, 29 Apr 2013 07:24:55 +0900 Subject: move mrb_shared_string definition to src/string.c --- src/string.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/string.c') diff --git a/src/string.c b/src/string.c index 34769222a..c5e1b1534 100644 --- a/src/string.c +++ b/src/string.c @@ -23,6 +23,12 @@ const char mrb_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz"; +typedef struct mrb_shared_string { + int refcnt; + char *ptr; + mrb_int len; +} mrb_shared_string; + static mrb_value str_replace(mrb_state *mrb, struct RString *s1, struct RString *s2); static mrb_value mrb_str_subseq(mrb_state *mrb, mrb_value str, mrb_int beg, mrb_int len); -- cgit v1.2.3