diff options
author | David Mitchell <davem@iabyn.com> | 2012-12-15 00:31:40 +0000 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2012-12-16 20:13:03 +0000 |
commit | 92da3157402727e9c7bdca6b9497423ca094acbe (patch) | |
tree | 68923971deeb7d40493145791f2ff45711fde43a /regexp.h | |
parent | f67f9e537710bc816e5e7ba69a559e004ba340dd (diff) | |
download | perl-92da3157402727e9c7bdca6b9497423ca094acbe.tar.gz |
eliminate PL_regsize
This var (or rather PL_reg_state.re_state_regsize, which it is #deffed to)
just holds the index of the maximum opening paren index seen so far in
S_regmatch(). So make it a local var of S_regmatch() and pass it as a
param to the couple of static functions called from there that need it.
(Also give the local var the more meaningful name 'maxopenparen'.)
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -765,7 +765,6 @@ typedef struct regmatch_slab { #define PL_reg_leftiter PL_reg_state.re_state_reg_leftiter #define PL_reg_poscache PL_reg_state.re_state_reg_poscache #define PL_reg_poscache_size PL_reg_state.re_state_reg_poscache_size -#define PL_regsize PL_reg_state.re_state_regsize #define PL_reg_starttry PL_reg_state.re_state_reg_starttry #define PL_nrs PL_reg_state.re_state_nrs @@ -787,7 +786,6 @@ struct re_save_state { I32 re_state_reg_oldpos; /* from regexec.c */ I32 re_state_reg_maxiter; /* max wait until caching pos */ I32 re_state_reg_leftiter; /* wait until caching pos */ - U32 re_state_regsize; /* from regexec.c */ char *re_state_reg_poscache; /* cache of pos of WHILEM */ char *re_state_reg_starttry; /* from regexec.c */ #ifdef PERL_ANY_COW |