summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-01-26 16:50:37 +0100
committerYves Orton <demerphq@gmail.com>2023-03-13 21:26:08 +0800
commit1ee51d7ef248366649de1c50dafe89b2a2fa7cbb (patch)
treefa0f7c059e046821f336f1d2b6c9d03805bd1ec7 /regexp.h
parent1c182948727448fbc828fea5d504bc4fcbac9fcd (diff)
downloadperl-1ee51d7ef248366649de1c50dafe89b2a2fa7cbb.tar.gz
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.
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h2
1 files changed, 1 insertions, 1 deletions
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 */
/*---------------------------------------------------------------------- */