diff options
| author | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-04 13:56:08 +0900 |
|---|---|---|
| committer | Yukihiro Matz Matsumoto <[email protected]> | 2012-11-04 13:56:08 +0900 |
| commit | c903910c6b8f82b7f158a189b1671296618b0fe0 (patch) | |
| tree | 21acd324ea56ce7ee958bdabd87eb98da9f36375 /src/re.c | |
| parent | 3e22c939e6f1968c46e251c363de49c1fd0fd9f1 (diff) | |
| download | mruby-c903910c6b8f82b7f158a189b1671296618b0fe0.tar.gz mruby-c903910c6b8f82b7f158a189b1671296618b0fe0.zip | |
replace RBASIC by mrb_basic
Diffstat (limited to 'src/re.c')
| -rw-r--r-- | src/re.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -344,8 +344,8 @@ mrb_reg_options(mrb_state *mrb, mrb_value re) mrb_reg_check(mrb, re); options = RREGEXP(re)->ptr->options & ARG_REG_OPTION_MASK; - if (RBASIC(re)->flags & KCODE_FIXED) options |= ARG_ENCODING_FIXED; - if (RBASIC(re)->flags & REG_ENCODING_NONE) options |= ARG_ENCODING_NONE; + if (mrb_basic(re)->flags & KCODE_FIXED) options |= ARG_ENCODING_FIXED; + if (mrb_basic(re)->flags & REG_ENCODING_NONE) options |= ARG_ENCODING_NONE; return options; } @@ -361,7 +361,7 @@ mrb_reg_desc(mrb_state *mrb, const char *s, long len, mrb_value re) mrb_reg_check(mrb, re); if (*option_to_str(opts, RREGEXP(re)->ptr->options)) mrb_str_buf_cat(mrb, str, opts, strlen(opts));//mrb_str_buf_cat2(str, opts); - if (RBASIC(re)->flags & REG_ENCODING_NONE) + if (mrb_basic(re)->flags & REG_ENCODING_NONE) mrb_str_buf_cat(mrb, str, "n", 1); } |
