diff options
author | Yves Orton <demerphq@gmail.com> | 2007-01-13 18:18:01 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-01-15 16:37:21 +0000 |
commit | a20207d7c00bd54d6d2718961a96cd5c7ed1e37b (patch) | |
tree | 0b43606006e1c20c7552202ed54244b4d5525013 /regexp.h | |
parent | cde0cee5716418bb58782f073048ee9685ed2368 (diff) | |
download | perl-a20207d7c00bd54d6d2718961a96cd5c7ed1e37b.tar.gz |
Re: [PATCH] Add support for /k modfier for matching along with ${^PREMATCH}, ${^MATCH}, ${^POSTMATCH}
Message-ID: <9b18b3110701130818h6badbd3o1b38f2660d258173@mail.gmail.com>
macroize regexp modifiers
p4raw-id: //depot/perl@29834
Diffstat (limited to 'regexp.h')
-rw-r--r-- | regexp.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -149,11 +149,11 @@ typedef struct regexp_engine { #define RXf_PMf_STD_PMMOD (RXf_PMf_MULTILINE|RXf_PMf_SINGLELINE|RXf_PMf_FOLD|RXf_PMf_EXTENDED) #define RXf_PMf_COMPILETIME (RXf_PMf_MULTILINE|RXf_PMf_SINGLELINE|RXf_PMf_LOCALE|RXf_PMf_FOLD|RXf_PMf_EXTENDED|RXf_PMf_KEEPCOPY) -#define CASE_STD_PMMOD_FLAGS_PARSE_SET(pmfl) \ - case 'i': *(pmfl) |= RXf_PMf_FOLD; break; \ - case 'm': *(pmfl) |= RXf_PMf_MULTILINE; break; \ - case 's': *(pmfl) |= RXf_PMf_SINGLELINE; break; \ - case 'x': *(pmfl) |= RXf_PMf_EXTENDED; break +#define CASE_STD_PMMOD_FLAGS_PARSE_SET(pmfl) \ + case IGNORE_PAT_MOD: *(pmfl) |= RXf_PMf_FOLD; break; \ + case MULTILINE_PAT_MOD: *(pmfl) |= RXf_PMf_MULTILINE; break; \ + case SINGLE_PAT_MOD: *(pmfl) |= RXf_PMf_SINGLELINE; break; \ + case XTENDED_PAT_MOD: *(pmfl) |= RXf_PMf_EXTENDED; break /* What we have seen */ #define RXf_LOOKBEHIND_SEEN 0x00020000 |