Pluggable Regexp

This commit is contained in:
mattn
2013-02-15 04:38:27 +09:00
parent 8578cd622b
commit b1a5146ea8
29 changed files with 147 additions and 22517 deletions
+1 -3
View File
@@ -42,13 +42,11 @@ mrb_class(mrb_state *mrb, mrb_value v)
case MRB_TT_MAIN:
return mrb->object_class;
#ifdef ENABLE_REGEXP
case MRB_TT_REGEX:
case MRB_TT_MATCH:
mrb_raise(mrb, E_TYPE_ERROR, "type mismatch: %s given",
mrb_raisef(mrb, E_TYPE_ERROR, "type mismatch: %s given",
mrb_obj_classname(mrb, v));
return mrb->nil_class; /* not reach */
#endif
default:
return mrb_object(v)->c;
}
+1
View File
@@ -72,6 +72,7 @@ struct mrb_parser_state {
enum mrb_lex_state_enum lstate;
int sterm;
int regexp;
unsigned int cond_stack;
unsigned int cmdarg_stack;
-4
View File
@@ -11,10 +11,6 @@
extern "C" {
#endif
#ifdef INCLUDE_ENCODING
#include "encoding.h"
#endif
#ifndef RB_GC_GUARD
#define RB_GC_GUARD(v) v
#endif