summaryrefslogtreecommitdiff
path: root/src/pcre2_jit_match.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-08 18:18:18 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-08 18:18:18 +0000
commitcb1193f6394970585aef1ff47242c1a977df06c4 (patch)
treeb9042d8854be4209efc18ac953150b9efc5a4463 /src/pcre2_jit_match.c
parent673a3212b952177dc0d130e1e01c54f779df8f1f (diff)
downloadpcre2-cb1193f6394970585aef1ff47242c1a977df06c4.tar.gz
Preparatory work for JIT.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@42 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_jit_match.c')
-rw-r--r--src/pcre2_jit_match.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/pcre2_jit_match.c b/src/pcre2_jit_match.c
index b3c65e1..c779387 100644
--- a/src/pcre2_jit_match.c
+++ b/src/pcre2_jit_match.c
@@ -59,6 +59,7 @@ Arguments:
start_offset where to start in the subject string
options option bits
match_data points to a match_data block
+ mcontext points to a match context
jit_stack points to a JIT stack
Returns: > 0 => success; value is the number of ovector pairs filled
@@ -72,7 +73,7 @@ Returns: > 0 => success; value is the number of ovector pairs filled
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
pcre2_jit_match(const pcre2_code *code, PCRE2_SPTR subject, int length,
PCRE2_OFFSET start_offset, uint32_t options, pcre2_match_data *match_data,
- pcre2_jit_stack *jit_stack)
+ pcre2_match_context *mcontext, pcre2_jit_stack *jit_stack)
{
#ifndef SUPPORT_JIT
(void)code;
@@ -81,16 +82,18 @@ pcre2_jit_match(const pcre2_code *code, PCRE2_SPTR subject, int length,
(void)start_offset;
(void)options;
(void)match_data;
+(void)mcontext;
(void)jit_stack;
-return PCRE2_ERROR_NOMATCH;
+return PCRE2_ERROR_JIT_BADOPTION;
#else /* SUPPORT_JIT */
/* Dummy code */
code=code;subject=subject;length=length;
start_offset=start_offset; options=options; match_data=match_data;
+mcontext=mcontext;
jit_stack=jit_stack;
-return PCRE2_ERROR_NOMATCH;
+return PCRE2_ERROR_JIT_BADOPTION;
#endif /* SUPPORT_JIT */
}