summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2012-12-25 18:24:50 +0000
committerDavid Mitchell <davem@iabyn.com>2012-12-25 18:24:50 +0000
commit39819bd9daad8177c22032658cbd5c354aa2b92f (patch)
tree66e8b337898a4dab878eb0e13a131bccc7e38fd7 /regexp.h
parent984e6dd18b2c93d4a6ae228bb9d2d98aadf7ca6e (diff)
downloadperl-39819bd9daad8177c22032658cbd5c354aa2b92f.tar.gz
eliminate RF_warned flag from PL_reg_flags
This global flag indicates whether the currently executing regex has issued a recursion limit warning yet. Replace it with a boolean var local to the regmatch_info struct. This is a second step to eliminating PL_reg_flags.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/regexp.h b/regexp.h
index 035e2bab3b..38633084b3 100644
--- a/regexp.h
+++ b/regexp.h
@@ -576,6 +576,7 @@ typedef struct {
char *ganch;
char *cutpoint;
bool is_utf8_pat;
+ bool warned; /* we have issued a recursion warning; no need for more */
} regmatch_info;