mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Pluggable Regexp
This commit is contained in:
-10
@@ -8,9 +8,6 @@
|
||||
#include "mruby/dump.h"
|
||||
|
||||
#include "mruby/string.h"
|
||||
#ifdef ENABLE_REGEXP
|
||||
#include "re.h"
|
||||
#endif
|
||||
#include "mruby/proc.h"
|
||||
#include "mruby/irep.h"
|
||||
|
||||
@@ -435,13 +432,6 @@ read_rite_irep_record(mrb_state *mrb, unsigned char *src, uint32_t* len)
|
||||
irep->pool[i] = mrb_str_new(mrb, buf, pdl);
|
||||
break;
|
||||
|
||||
#ifdef ENABLE_REGEXP
|
||||
case MRB_TT_REGEX:
|
||||
str = mrb_str_new(mrb, buf, pdl);
|
||||
irep->pool[i] = mrb_reg_quote(mrb, str);
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
irep->pool[i] = mrb_nil_value();
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user