summaryrefslogtreecommitdiff
path: root/regcomp.h
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2006-11-22 18:11:02 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2006-11-22 17:09:33 +0000
commit58e23c8d7d24dd08c87b5d56819ad45527176c15 (patch)
tree1ed907b4695e2e09aa8e20c637acf4ac4ac1c1f3 /regcomp.h
parentb775e6bae012223b0a5cf674d4a41f12f635fb75 (diff)
downloadperl-58e23c8d7d24dd08c87b5d56819ad45527176c15.tar.gz
\G with /g results in infinite loop in 5.6 and later
Message-ID: <9b18b3110611220811k1a54f650t1bd7c6a9450b0a7e@mail.gmail.com> p4raw-id: //depot/perl@29354
Diffstat (limited to 'regcomp.h')
-rw-r--r--regcomp.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/regcomp.h b/regcomp.h
index f64168ae89..e8fd39ff02 100644
--- a/regcomp.h
+++ b/regcomp.h
@@ -11,10 +11,18 @@
typedef OP OP_4tree; /* Will be redefined later. */
+/* Convert branch sequences to more efficient trie ops? */
#define PERL_ENABLE_TRIE_OPTIMISATION 1
+
+/* Be really agressive about optimising patterns with trie sequences? */
#define PERL_ENABLE_EXTENDED_TRIE_OPTIMISATION 1
+
+/* Should the optimiser take positive assertions into account? */
#define PERL_ENABLE_POSITIVE_ASSERTION_STUDY 1
+
+/* Not for production use: */
#define PERL_ENABLE_EXPERIMENTAL_REGEX_OPTIMISATIONS 0
+
/* Unless the next line is uncommented it is illegal to combine lazy
matching with possessive matching. Frankly it doesn't make much sense
to allow it as X*?+ matches nothing, X+?+ matches a single char only,