diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-15 15:34:49 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-15 15:34:49 +0900 |
| commit | 76f7aecff326666543d9bac31fe13e0cab8e05f4 (patch) | |
| tree | e9bf296dc74535f334852e9cb5763005e2747ddb /src/re.c | |
| parent | 4aa9111f9a107b3b0c6f1c13d933cbcd39f2a787 (diff) | |
| download | mruby-76f7aecff326666543d9bac31fe13e0cab8e05f4.tar.gz mruby-76f7aecff326666543d9bac31fe13e0cab8e05f4.zip | |
use ENABLE/DISABLE instead of INCLUDE for configuration macro names
Diffstat (limited to 'src/re.c')
| -rw-r--r-- | src/re.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -13,7 +13,7 @@ #include "regint.h" #include "mruby/class.h" #include "error.h" -#ifdef INCLUDE_REGEXP +#ifdef ENABLE_REGEXP #define REGEX_CLASS (mrb_class_obj_get(mrb, "Regexp")) #define MATCH_CLASS (mrb_class_obj_get(mrb, "MatchData")) @@ -2318,7 +2318,7 @@ mrb_backref_set(mrb_state *mrb, mrb_value val) { vm_svar_set(mrb, 1, val); } -#endif //INCLUDE_REGEXP +#endif //ENABLE_REGEXP #ifdef INCLUDE_ENCODING static inline long @@ -2421,7 +2421,7 @@ mrb_memsearch(mrb_state *mrb, const void *x0, int m, const void *y0, int n, mrb_ } #endif //INCLUDE_ENCODING -#ifdef INCLUDE_REGEXP +#ifdef ENABLE_REGEXP mrb_value mrb_reg_init_str(mrb_state *mrb, mrb_value re, mrb_value s, int options) { @@ -2469,7 +2469,7 @@ re_adjust_startpos(struct re_pattern_buffer *bufp, const char *string, int size, }*/ return startpos; } -#endif //INCLUDE_REGEXP +#endif //ENABLE_REGEXP #ifdef INCLUDE_ENCODING static const unsigned char mbctab_ascii[] = { |
