diff options
author | Yves Orton <demerphq@gmail.com> | 2023-01-26 16:50:37 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-13 21:26:08 +0800 |
commit | 1ee51d7ef248366649de1c50dafe89b2a2fa7cbb (patch) | |
tree | fa0f7c059e046821f336f1d2b6c9d03805bd1ec7 /regexp.h | |
parent | 1c182948727448fbc828fea5d504bc4fcbac9fcd (diff) | |
download | perl-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ /*---------------------------------------------------------------------- */ |