From beae72eec1a5f0babdb94514be158b0d599d674a Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 31 Jul 2010 22:21:54 -0600 Subject: [PATCH] op.h: Move bits around to allow for future growth This creates an unallocated space at the shared/unshared boundary of the data with regexp.h. This allows any future bits that may be needed to go into either, without affecting binary compatibility. I chose a number of spare bits larger than I thought we would ever need --- op.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/op.h b/op.h index 0102e36..4241f02 100644 --- a/op.h +++ b/op.h @@ -360,7 +360,9 @@ struct pmop { #define PM_SETRE(o,r) ((o)->op_pmregexp = (r)) #endif -#define PMf_BASE_SHIFT _RXf_PMf_SHIFT_NEXT +/* 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) /* taint $1 etc. if target tainted */ #define PMf_RETAINT (1<<(PMf_BASE_SHIFT+0)) -- 1.8.3.1