From a20207d7c00bd54d6d2718961a96cd5c7ed1e37b Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Sat, 13 Jan 2007 18:18:01 +0100 Subject: 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 --- regexp.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'regexp.h') diff --git a/regexp.h b/regexp.h index 4045fbd84b..a2e0fc1a31 100644 --- a/regexp.h +++ b/regexp.h @@ -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 -- cgit v1.2.1