aboutsummaryrefslogtreecommitdiffstats
path: root/regint.h
diff options
context:
space:
mode:
authorTSUYUSATO Kitsune <make.just.on@gmail.com>2022-10-04 01:02:51 +0900
committerYusuke Endoh <mame@ruby-lang.org>2022-11-09 23:21:26 +0900
commitf07dea16e3f70fbc33c51dbc73ef0f33f965e010 (patch)
tree4462cbd5332fda1ce5cc60bd6a06aa661f51e64d /regint.h
parent881bf9a0b8b52c05a5917b95d988ae4b9a391a47 (diff)
downloadruby-f07dea16e3f70fbc33c51dbc73ef0f33f965e010.tar.gz
Keep cache optimization info to MatchArg for global matching
Diffstat (limited to 'regint.h')
-rw-r--r--regint.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/regint.h b/regint.h
index 1f0d815db0..c310946886 100644
--- a/regint.h
+++ b/regint.h
@@ -893,6 +893,13 @@ typedef struct {
#else
uint64_t end_time;
#endif
+#ifdef USE_CACHE_MATCH_OPT
+ int num_fail;
+ int enable_cache_match_opt;
+ int num_cache_opcode;
+ UChar** cache_index_table; /* array of pointer to p (regex program) */
+ uint8_t *match_cache;
+#endif
} OnigMatchArg;