summaryrefslogtreecommitdiff
path: root/regexp.h
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avar@cpan.org>2007-06-28 20:06:50 +0000
committerYves Orton <demerphq@gmail.com>2007-06-28 22:09:07 +0000
commit0ac6acaed7c2092a5668c6b70ddeaf3003e989d8 (patch)
treeb180dc08771b7c5e7480dd8f7ae97cec29d279a2 /regexp.h
parent0df5f63f6809bbf24ffde62fa2804f0041470b74 (diff)
downloadperl-0ac6acaed7c2092a5668c6b70ddeaf3003e989d8.tar.gz
Move the RXf_WHITE logic for split " " into the regex engine
From: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com> Message-ID: <51dd1af80706281306i4dbba39em3eeb8da1d67ea27c@mail.gmail.com> (with tweaks) p4raw-id: //depot/perl@31495
Diffstat (limited to 'regexp.h')
-rw-r--r--regexp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/regexp.h b/regexp.h
index 3ec8fb4baf..bf4c57da29 100644
--- a/regexp.h
+++ b/regexp.h
@@ -307,7 +307,14 @@ and check for NULL.
#define RXf_USE_INTUIT_NOML 0x01000000
#define RXf_USE_INTUIT_ML 0x02000000
#define RXf_INTUIT_TAIL 0x04000000
-/* one bit here */
+
+/*
+ Set in Perl_pmruntime if op_flags & OPf_SPECIAL, i.e. split. Will
+ be used by regex engines to check whether they should set
+ RXf_SKIPWHITE
+*/
+#define RXf_SPLIT 0x08000000
+
#define RXf_USE_INTUIT (RXf_USE_INTUIT_NOML|RXf_USE_INTUIT_ML)
/* Copy and tainted info */