Skip to content

Commit

Permalink
Add missing constants for ERR100 and ERR101 in pcre.h (#448)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexdowad authored Aug 29, 2024
1 parent 727edc8 commit 7ec9ecb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/pcre2.h.generic
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down
2 changes: 2 additions & 0 deletions src/pcre2.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 7ec9ecb

Please sign in to comment.