From 5e514c910fdde7ec29c9110e8c9535d8e83b2a8f Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Thu, 4 Feb 2016 23:22:01 +0900 Subject: cache mrb_regexp_p(); ref #980 --- include/mruby.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/mruby.h b/include/mruby.h index 065d835ce..9aa5b2cd3 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -124,9 +124,13 @@ typedef struct { typedef void (*mrb_atexit_func)(struct mrb_state*); +#define MRB_STATE_NO_REGEXP 1 +#define MRB_STATE_REGEXP 2 + typedef struct mrb_state { struct mrb_jmpbuf *jmp; + uint32_t flags; mrb_allocf allocf; /* memory allocation function */ void *allocf_ud; /* auxiliary data of allocf */ -- cgit v1.2.3