summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2017-06-27 10:28:05 +0200
committerYves Orton <demerphq@gmail.com>2017-06-27 10:29:53 +0200
commit3a61151187ec2eaba17315536fd6b4886b365319 (patch)
tree36a0c73a4c2151a09f3a3234dfdacab709e4b8fc
parent98b61a5858be6e46fbcdef7efc525b2d8f52ae64 (diff)
downloadperl-3a61151187ec2eaba17315536fd6b4886b365319.tar.gz
regcomp.c: correct the regdata which paratermers under DEBUG
this worked because 'a' and 'o' are treated the same for all intents and purposes, but it is confusing as 'a' stands for array, and 'o' for hash, and the DEBUG mode code here adds two arrays not hashes.
-rw-r--r--regcomp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index 17b4a78f65..e2bdacc394 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2462,8 +2462,11 @@ S_make_trie(pTHX_ RExC_state_t *pRExC_state, regnode *startbranch,
/* we just use folder as a flag in utf8 */
const U8 * folder = NULL;
+ /* in the below add_data call we are storing either 'tu' or 'tuaa'
+ * which stands for one trie structure, one hash, optionally followed
+ * by two arrays */
#ifdef DEBUGGING
- const U32 data_slot = add_data( pRExC_state, STR_WITH_LEN("tuuu"));
+ const U32 data_slot = add_data( pRExC_state, STR_WITH_LEN("tuaa"));
AV *trie_words = NULL;
/* along with revcharmap, this only used during construction but both are
* useful during debugging so we store them in the struct when debugging.