diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2014-06-28 14:23:18 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2014-06-28 14:23:18 +0000 |
commit | ebfcede344e7f3147185970649cc32b2f037eb82 (patch) | |
tree | 6a3d4738eade043947692c95fc9259eddae0fff9 /src/pcre2_context.c | |
parent | 760ca3f35c304d2ad5655317ac72d837b6b0164b (diff) | |
download | pcre2-ebfcede344e7f3147185970649cc32b2f037eb82.tar.gz |
The pcre2_match() function's basic facilities are working (though hardly
tested).
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@22 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_context.c')
-rw-r--r-- | src/pcre2_context.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pcre2_context.c b/src/pcre2_context.c index 724a152..d772e8f 100644 --- a/src/pcre2_context.c +++ b/src/pcre2_context.c @@ -172,6 +172,7 @@ mcontext->stack_malloc = mcontext->malloc; mcontext->stack_free = mcontext->free; #endif mcontext->callout = NULL; +mcontext->callout_data = NULL; mcontext->newline_convention = 0; mcontext->bsr_convention = 0; mcontext->match_limit = MATCH_LIMIT; @@ -368,9 +369,10 @@ switch(newline) PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION pcre2_set_callout(pcre2_match_context *mcontext, - int (*callout)(pcre2_callout_block *, void *)) + int (*callout)(pcre2_callout_block *), void *callout_data) { mcontext->callout = callout; +mcontext->callout_data = callout_data; return 1; } |