summaryrefslogtreecommitdiff
path: root/pad.h
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2011-02-06 15:08:34 +0000
committerDavid Mitchell <davem@iabyn.com>2011-02-06 18:57:16 +0000
commit2df5bdd700b8a6ef036aa5be19d4bda9e3ca20bc (patch)
tree9c1bd302a935d64146e4fefa91ba481c42e09acb /pad.h
parentd1bfb649a8c4cc0b39b0fd6371c009b71c0b497f (diff)
downloadperl-2df5bdd700b8a6ef036aa5be19d4bda9e3ca20bc.tar.gz
rename PAD_MAX to PERL_PADSEQ_INTRO
and increase its scope to all the perl core rather than just pad.c. The scope needs to increase because we'll need to use it in op.c shortly, and the rename is because it's about to lose any significance as a numerical value, and just become a magic number to be tested for equality.
Diffstat (limited to 'pad.h')
-rw-r--r--pad.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/pad.h b/pad.h
index 8602eda7f7..dec267ae27 100644
--- a/pad.h
+++ b/pad.h
@@ -31,6 +31,12 @@ typedef U64TYPE PADOFFSET;
#endif
#define NOT_IN_PAD ((PADOFFSET) -1)
+/* a value that PL_cop_seqmax is guaranteed never to be,
+ * flagging that a lexical is being introduced, or has not yet left scope
+ */
+#define PERL_PADSEQ_INTRO U32_MAX
+
+
/* B.xs needs these for the benefit of B::Deparse */
/* Low range end is exclusive (valid from the cop seq after this one) */
/* High range end is inclusive (valid up to this cop seq) */