summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-10-18 22:51:41 +0200
committerNicholas Clark <nick@ccl4.org>2006-10-19 20:52:31 +0000
commit1e2e3d022b3464fbde4734646678d89865859418 (patch)
treea8dedc1e0adf28e9b2ba548c114b4467906655bd /regcomp.h
parent768fd1576db46dc9f6fdf8c63b324c4bc79a426a (diff)
downloadperl-1e2e3d022b3464fbde4734646678d89865859418.tar.gz
Re: Off by one in the trie code?
Message-ID: <9b18b3110610181151i3ca438cdied769ebaa4255079@mail.gmail.com> 1. code necessary to make patterns with interpolated vars behave correctly under lexical re 'debug', including additional tests. 2. changes necessary to resolve the off by one error, 3. tweaks to re.pm to document that re 'debug' is lexical, p4raw-id: //depot/perl@29057
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/regcomp.h b/regcomp.h
index 5fb6b14ae6..f7082bf5bb 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -519,7 +519,8 @@ struct _reg_trie_data {
for the node following a given word. */
U16 *nextword; /* optional 1 indexed array to support linked list
of duplicate wordnums */
- U32 laststate; /* Build only */
+ U32 statecount; /* Build only - number of states in the states array
+ (including the unused zero state) */
U32 wordcount; /* Build only */
#ifdef DEBUGGING
STRLEN charcount; /* Build only */