diff options
author | Yves Orton <demerphq@gmail.com> | 2006-10-18 22:51:41 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2006-10-19 20:52:31 +0000 |
commit | 1e2e3d022b3464fbde4734646678d89865859418 (patch) | |
tree | a8dedc1e0adf28e9b2ba548c114b4467906655bd /regcomp.h | |
parent | 768fd1576db46dc9f6fdf8c63b324c4bc79a426a (diff) | |
download | perl-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 */ |