* regmatch_state union. */
typedef struct {
- REGEXP *prog;
+ REGEXP *prog; /* the regex being executed */
const char * strbeg; /* real start of string */
- char *strend; /* one byte beyond last char of match string */
- char *till;
- SV *sv;
- char *ganch;
- char *cutpoint;
+ char *strend; /* one byte beyond last char of match string */
+ char *till; /* matches shorter than this fail (see minlen arg) */
+ SV *sv; /* the SV string currently being matched */
+ char *ganch; /* position of \G anchor */
+ char *cutpoint; /* (*COMMIT) position (if any) */
regmatch_info_aux *info_aux; /* extra fields that need cleanup */
regmatch_info_aux_eval *info_aux_eval; /* extra saved state for (?{}) */
I32 poscache_maxiter; /* how many whilems todo before S-L cache kicks in */
struct regmatch_slab *prev, *next;
} regmatch_slab;
-#define PL_reg_starttry PL_reg_state.re_state_reg_starttry
-struct re_save_state {
- char *re_state_reg_starttry; /* from regexec.c */
-};
-
-#define SAVESTACK_ALLOC_FOR_RE_SAVE_STATE \
- (1 + ((sizeof(struct re_save_state) - 1) / sizeof(*PL_savestack)))
/*
* Local variables: