diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-12-25 10:30:48 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-12-25 10:30:48 +0900 |
| commit | 673d9183cf7ea96cb695187ccbfac18b3fd16ec2 (patch) | |
| tree | e99328d50c6d020984d962e5d0c9557e2387dee6 /src/string.c | |
| parent | 9b7b18aaf4e02601eb86303b3ce25daf9565892f (diff) | |
| download | mruby-673d9183cf7ea96cb695187ccbfac18b3fd16ec2.tar.gz mruby-673d9183cf7ea96cb695187ccbfac18b3fd16ec2.zip | |
avoid copying when the original string comes with MRB_STR_NOFREE
Diffstat (limited to 'src/string.c')
| -rw-r--r-- | src/string.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/string.c b/src/string.c index ade601db2..1c577188e 100644 --- a/src/string.c +++ b/src/string.c @@ -30,9 +30,6 @@ typedef struct mrb_shared_string { mrb_int len; } mrb_shared_string; -#define MRB_STR_SHARED 1 -#define MRB_STR_NOFREE 2 - 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); |
