diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-07-21 08:53:02 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-07-21 08:53:02 +0000 |
commit | e5a7fbea3d4478a57346135b8965c943a11da9c1 (patch) | |
tree | 1b0e883b8f3ff152d556ab18b75386ce23f428ab /src/pcre2.h.in | |
parent | 26a97295100dc462ca8e5d1242955a9d929c4ac5 (diff) | |
download | pcre2-e5a7fbea3d4478a57346135b8965c943a11da9c1.tar.gz |
Put back pcre2_set_recursion_limit() as a real function, synonym for
pcre2_set_depth_limit() in order to preserve the ABI.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@846 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2.h.in')
-rw-r--r-- | src/pcre2.h.in | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pcre2.h.in b/src/pcre2.h.in index 399ddcd..4a8e126 100644 --- a/src/pcre2.h.in +++ b/src/pcre2.h.in @@ -489,6 +489,8 @@ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ pcre2_set_offset_limit(pcre2_match_context *, PCRE2_SIZE); \ PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ + pcre2_set_recursion_limit(pcre2_match_context *, uint32_t); \ +PCRE2_EXP_DECL int PCRE2_CALL_CONVENTION \ pcre2_set_recursion_memory_management(pcre2_match_context *, \ void *(*)(PCRE2_SIZE, void *), void (*)(void *, void *), void *); @@ -760,7 +762,7 @@ pcre2_compile are called by application code. */ #define pcre2_substring_number_from_name PCRE2_SUFFIX(pcre2_substring_number_from_name_) /* Keep this old function name for backwards compatibility */ -#define pcre2_set_recursion_limit pcre2_set_depth_limit +#define pcre2_set_recursion_limit PCRE2_SUFFIX(pcre2_set_recursion_limit_) /* Keep this obsolete function for backwards compatibility: it is now a noop. */ #define pcre2_set_recursion_memory_management PCRE2_SUFFIX(pcre2_set_recursion_memory_management_) |