diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-29 07:24:55 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-04-29 07:24:55 +0900 |
| commit | 5077f9ec8bca9bc5d8c2802d89290415ec1baea0 (patch) | |
| tree | 82f7c5549c1876e4c27c4722de49ffc3a563db33 /src | |
| parent | 5c68195c88ed45164373b0ca435a7be2421dcc7c (diff) | |
| download | mruby-5077f9ec8bca9bc5d8c2802d89290415ec1baea0.tar.gz mruby-5077f9ec8bca9bc5d8c2802d89290415ec1baea0.zip | |
move mrb_shared_string definition to src/string.c
Diffstat (limited to 'src')
| -rw-r--r-- | src/string.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |
