From 9de15fec376a8ff90a38fad0ff322c72c2995765 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Mon, 20 Sep 2010 18:57:24 -0600 Subject: Add /d, /l, /u (infixed) regex modifiers This patch adds recognition of these modifiers, with appropriate action for d and l. u does nothing useful yet. This allows for the interpolation of a regex into another one without losing the character set semantics that it was compiled with, as for the first time, the semantics is now specified in the stringification as one of these modifiers. To this end, it allocates an unused bit in the structures. The off- sets change so as to not disturb other bits. --- op.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'op.h') diff --git a/op.h b/op.h index da280b8b8d..a29d516d10 100644 --- a/op.h +++ b/op.h @@ -366,7 +366,7 @@ struct pmop { /* Leave some space, so future bit allocations can go either in the shared or * unshared area without affecting binary compatibility */ -#define PMf_BASE_SHIFT (_RXf_PMf_SHIFT_NEXT+8) +#define PMf_BASE_SHIFT (_RXf_PMf_SHIFT_NEXT+7) /* taint $1 etc. if target tainted */ #define PMf_RETAINT (1<<(PMf_BASE_SHIFT+0)) -- cgit v1.2.1