Fix comment describing returns from find_fixedlength().

This commit is contained in:
Philip.Hazel 2016-06-14 15:12:07 +00:00
parent 42f9a5e9e7
commit 4db9b51ce0
2 changed files with 7 additions and 4 deletions

View File

@ -132,6 +132,8 @@ RunTest (see 4 above).
33. Fix typo that gave a compiler error when JIT not supported. 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 Version 10.21 12-January-2016
----------------------------- -----------------------------

View File

@ -879,9 +879,10 @@ Arguments:
Returns: if non-negative, the fixed length, Returns: if non-negative, the fixed length,
or -1 if an OP_RECURSE item was encountered and atend is FALSE or -1 if an OP_RECURSE item was encountered and atend is FALSE
or -2 if there is no fixed length, or -2 if there is no fixed length,
or -3 if \C was encountered (in UTF-8 mode only) or -3 if \C was encountered (in UTF mode only)
or -4 length is too long or -4 if length is too long
or -5 if an unknown opcode was encountered (internal error) or -5 if regex is too complicated
or -6 if an unknown opcode was encountered (internal error)
*/ */
#define FFL_LATER (-1) #define FFL_LATER (-1)
@ -1116,7 +1117,7 @@ for (;;)
cc++; cc++;
break; 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. */ otherwise \C is coded as OP_ALLANY. */
case OP_ANYBYTE: case OP_ANYBYTE: