From 1ee51d7ef248366649de1c50dafe89b2a2fa7cbb Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Thu, 26 Jan 2023 16:50:37 +0100 Subject: regexp.h - fixup mistake in comment rex->maxlen holds the maximum length the pattern can match, not the minimum. The copy was obviously copied from the rex->minlen case, so fix it to be correct. --- regexp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regexp.h') diff --git a/regexp.h b/regexp.h index 036f681018..8898e1b2bb 100644 --- a/regexp.h +++ b/regexp.h @@ -135,6 +135,7 @@ typedef struct regexp { physical with the same logical id */ U32 extflags; /* Flags used both externally and internally */ + SSize_t maxlen; /* maximum possible number of chars in string to match */ SSize_t minlen; /* minimum possible number of chars in string to match */ SSize_t minlenret; /* minimum possible number of chars in $& */ STRLEN gofs; /* chars left of pos that we search from */ @@ -175,7 +176,6 @@ typedef struct regexp { SSize_t sublen; /* Length of string pointed by subbeg */ SSize_t suboffset; /* byte offset of subbeg from logical start of str */ SSize_t subcoffset; /* suboffset equiv, but in chars (for @-/@+) */ - SSize_t maxlen; /* minimum possible number of chars in string to match */ /*---------------------------------------------------------------------- */ -- cgit v1.2.1