From 4db9b51ce0e1206314268409a904775fe1ea1869 Mon Sep 17 00:00:00 2001 From: "Philip.Hazel" Date: Tue, 14 Jun 2016 15:12:07 +0000 Subject: [PATCH] Fix comment describing returns from find_fixedlength(). --- ChangeLog | 2 ++ src/pcre2_compile.c | 9 +++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5a532ac..8855f40 100644 --- a/ChangeLog +++ b/ChangeLog @@ -132,6 +132,8 @@ RunTest (see 4 above). 33. Fix typo that gave a compiler error when JIT not supported. +34. Fix comment describing the returns from find_fixedlength(). + Version 10.21 12-January-2016 ----------------------------- diff --git a/src/pcre2_compile.c b/src/pcre2_compile.c index 779c1a2..35f37ba 100644 --- a/src/pcre2_compile.c +++ b/src/pcre2_compile.c @@ -879,9 +879,10 @@ Arguments: Returns: if non-negative, the fixed length, or -1 if an OP_RECURSE item was encountered and atend is FALSE or -2 if there is no fixed length, - or -3 if \C was encountered (in UTF-8 mode only) - or -4 length is too long - or -5 if an unknown opcode was encountered (internal error) + or -3 if \C was encountered (in UTF mode only) + or -4 if length is too long + or -5 if regex is too complicated + or -6 if an unknown opcode was encountered (internal error) */ #define FFL_LATER (-1) @@ -1116,7 +1117,7 @@ for (;;) cc++; break; - /* The single-byte matcher isn't allowed. This only happens in UTF-8 mode; + /* The single-byte matcher isn't allowed. This only happens in UTF mode; otherwise \C is coded as OP_ALLANY. */ case OP_ANYBYTE: