summaryrefslogtreecommitdiff
path: root/pcre_internal.h
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-04-13 09:31:55 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2015-04-13 09:31:55 +0000
commite75637b2efc61520e5bb4a99643620a27d4b036a (patch)
treeb96a41d90b3ac9194b1c820845b1557d5ddac134 /pcre_internal.h
parent6719c2cdeb7670d4bf10f15a8511ca15af7ea595 (diff)
downloadpcre-e75637b2efc61520e5bb4a99643620a27d4b036a.tar.gz
Fix slow study when much mutual recursion.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1547 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcre_internal.h')
-rw-r--r--pcre_internal.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/pcre_internal.h b/pcre_internal.h
index 1c5f4ce..871520e 100644
--- a/pcre_internal.h
+++ b/pcre_internal.h
@@ -2460,6 +2460,13 @@ typedef struct branch_chain {
pcre_uchar *current_branch;
} branch_chain;
+/* Structure for mutual recursion detection. */
+
+typedef struct recurse_check {
+ struct recurse_check *prev;
+ const pcre_uchar *group;
+} recurse_check;
+
/* Structure for items in a linked list that represents an explicit recursive
call within the pattern; used by pcre_exec(). */