diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-05-31 15:32:38 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-05-31 15:32:38 +0900 |
| commit | 64fc4ac332eab0be7704cf6f7ec5a96c523c0ed9 (patch) | |
| tree | 00bca09773b7584fd2b56c371fe6159550c38b6f /include | |
| parent | 0d8adaaaa16859342a37e3bf6832a8717c54f27c (diff) | |
| download | mruby-64fc4ac332eab0be7704cf6f7ec5a96c523c0ed9.tar.gz mruby-64fc4ac332eab0be7704cf6f7ec5a96c523c0ed9.zip | |
resolve conflict
Diffstat (limited to 'include')
| -rw-r--r-- | include/mruby/string.h | 23 |
1 files changed, 2 insertions, 21 deletions
diff --git a/include/mruby/string.h b/include/mruby/string.h index 08dd306e8..fca28cf72 100644 --- a/include/mruby/string.h +++ b/include/mruby/string.h @@ -30,34 +30,15 @@ extern const char mrb_digitmap[]; struct RString { MRUBY_OBJECT_HEADER; int len; - union { - int capa; - struct RString *shared; - } aux; + int capa; char *buf; }; -extern struct SCOPE { - struct RBasic super; - mrb_sym *local_tbl; - mrb_value *local_vars; - int flags; -} *ruby_scope; - -struct RVarmap { - struct RBasic super; - mrb_sym id; - mrb_value val; - struct RVarmap *next; -}; -extern struct RVarmap *ruby_dyna_vars; - #define mrb_str_ptr(s) ((struct RString*)((s).value.p)) #define RSTRING(s) ((struct RString*)((s).value.p)) #define RSTRING_PTR(s) (RSTRING(s)->buf) #define RSTRING_LEN(s) (RSTRING(s)->len) -#define RSTRING_CAPA(s) (RSTRING(s)->aux.capa) -#define RSTRING_SHARED(s) (RSTRING(s)->aux.shared) +#define RSTRING_CAPA(s) (RSTRING(s)->capa) #define RSTRING_END(s) (RSTRING(s)->buf + RSTRING(s)->len) #define MRB_STR_SHARED 256 |
