summaryrefslogtreecommitdiff
path: root/src/pcre2_context.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-16 09:46:58 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-16 09:46:58 +0000
commit258ffeb078daec58f94e67b872a1e391bc714529 (patch)
treea593807360f583bdeaf95fcc00696a3c5cc104c7 /src/pcre2_context.c
parent976b57b7349675feac40d0c761e75b4379e14486 (diff)
downloadpcre2-258ffeb078daec58f94e67b872a1e391bc714529.tar.gz
Change lengths to PCRE2_SIZE and revise OP_RECURSE processing.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@57 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_context.c')
-rw-r--r--src/pcre2_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pcre2_context.c b/src/pcre2_context.c
index 3376ef6..564f642 100644
--- a/src/pcre2_context.c
+++ b/src/pcre2_context.c
@@ -164,7 +164,7 @@ if (defmemctl)
mcontext->memctl.free = default_free;
mcontext->memctl.memory_data = NULL;
}
-#ifdef NO_RECURSE
+#ifdef HEAP_MATCH_RECURSE
mcontext->stack_memctl = mcontext->memctl;
#endif
mcontext->callout = NULL;
@@ -389,7 +389,7 @@ pcre2_set_recursion_memory_management(pcre2_match_context *mcontext,
void *(*mymalloc)(size_t, void *), void (*myfree)(void *, void *),
void *mydata)
{
-#ifdef NO_RECURSE
+#ifdef HEAP_MATCH_RECURSE
mcontext->stack_memctl.malloc = mymalloc;
mcontext->stack_memctl.free = myfree;
mcontext->stack_memctl.memory_data = mydata;