summaryrefslogtreecommitdiff
path: root/src/pcre2_context.c
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-03-12 13:47:01 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2017-03-12 13:47:01 +0000
commit4dc316b04f2ff86d26cebca81c624330f4af6361 (patch)
treee0b777b342b7a0e1711c58dbce3ecb568fe6c211 /src/pcre2_context.c
parent47f31dcbb0aa3ae83c097b7a439fb74b3fa994bb (diff)
downloadpcre2-4dc316b04f2ff86d26cebca81c624330f4af6361.tar.gz
Change "limit recursion" to "limit depth" in code and build systems because the
old name, which is retained as a synonym for the moment, is no longer appropriate. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@678 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_context.c')
-rw-r--r--src/pcre2_context.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pcre2_context.c b/src/pcre2_context.c
index 448b71a..653b2c3 100644
--- a/src/pcre2_context.c
+++ b/src/pcre2_context.c
@@ -7,7 +7,7 @@ and semantics are as close as possible to those of the Perl 5 language.
Written by Philip Hazel
Original API code Copyright (c) 1997-2012 University of Cambridge
- New API code Copyright (c) 2016 University of Cambridge
+ New API code Copyright (c) 2016-2017 University of Cambridge
-----------------------------------------------------------------------------
Redistribution and use in source and binary forms, with or without
@@ -169,7 +169,7 @@ const pcre2_match_context PRIV(default_match_context) = {
NULL,
PCRE2_UNSET, /* Offset limit */
MATCH_LIMIT,
- MATCH_LIMIT_RECURSION };
+ MATCH_LIMIT_DEPTH };
/* The create function copies the default into the new memory, but must
override the default memory handling functions if a gcontext was provided. */
@@ -354,16 +354,16 @@ return 0;
}
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
-pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit)
+pcre2_set_depth_limit(pcre2_match_context *mcontext, uint32_t limit)
{
-mcontext->offset_limit = limit;
+mcontext->depth_limit = limit;
return 0;
}
PCRE2_EXP_DEFN int PCRE2_CALL_CONVENTION
-pcre2_set_recursion_limit(pcre2_match_context *mcontext, uint32_t limit)
+pcre2_set_offset_limit(pcre2_match_context *mcontext, PCRE2_SIZE limit)
{
-mcontext->recursion_limit = limit;
+mcontext->offset_limit = limit;
return 0;
}