From 0cda8bce757be5e817b7c22c84a53a91d15dd2f5 Mon Sep 17 00:00:00 2001 From: Alex Dowad Date: Thu, 29 Aug 2024 05:58:47 +0200 Subject: [PATCH] Add missing constants for ERR100 and ERR101 in pcre.h For all other error codes returned by pcre2_compile(), there are constants defined in pcre2.h which describe the error. Add the missing constants for the last two error codes. --- src/pcre2.h.generic | 2 ++ src/pcre2.h.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pcre2.h.generic b/src/pcre2.h.generic index baa709512..ef5d9b7b0 100644 --- a/src/pcre2.h.generic +++ b/src/pcre2.h.generic @@ -321,6 +321,8 @@ pcre2_pattern_convert(). */ #define PCRE2_ERROR_TOO_MANY_CAPTURES 197 #define PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED 198 #define PCRE2_ERROR_BACKSLASH_K_IN_LOOKAROUND 199 +#define PCRE2_ERROR_MAX_VAR_LOOKBEHIND_EXCEEDED 200 +#define PCRE2_ERROR_PATTERN_COMPILED_SIZE_TOO_BIG 201 /* "Expected" matching error codes: no match and partial match. */ diff --git a/src/pcre2.h.in b/src/pcre2.h.in index 2f6b4e866..92f68842f 100644 --- a/src/pcre2.h.in +++ b/src/pcre2.h.in @@ -321,6 +321,8 @@ pcre2_pattern_convert(). */ #define PCRE2_ERROR_TOO_MANY_CAPTURES 197 #define PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED 198 #define PCRE2_ERROR_BACKSLASH_K_IN_LOOKAROUND 199 +#define PCRE2_ERROR_MAX_VAR_LOOKBEHIND_EXCEEDED 200 +#define PCRE2_ERROR_PATTERN_COMPILED_SIZE_TOO_BIG 201 /* "Expected" matching error codes: no match and partial match. */