summaryrefslogtreecommitdiff
path: root/pad.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-11-08 22:23:07 +0000
committerNicholas Clark <nick@ccl4.org>2009-11-09 18:41:53 +0000
commit35f82371218a026d1f07258ae020fffabf397fdc (patch)
treef508a89c7406bcd0da4089201d276d19b81dcdf9 /pad.h
parentd6447115bb9638af823243dbe17f2c14e71cf57d (diff)
downloadperl-35f82371218a026d1f07258ae020fffabf397fdc.tar.gz
Add length and flags arguments to Perl_pad_check_dup().
Currently only pad_add_OUR is used. The length is cross-checked against strlen() on the pointer, but the intent is to re-work the entire pad API to be UTF-8 aware, from the current situation of char * pointers only.
Diffstat (limited to 'pad.h')
-rw-r--r--pad.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/pad.h b/pad.h
index 352a592f83..074d52ed21 100644
--- a/pad.h
+++ b/pad.h
@@ -112,6 +112,17 @@ typedef enum {
padtidy_FORMAT /* or a format */
} padtidy_type;
+#ifdef PERL_CORE
+
+/* flags for pad_add_name/pad_check_dup. SVf_UTF8 will also be valid in the
+ future. */
+
+# define pad_add_OUR 0x01 /* our declaration. */
+# define pad_add_STATE 0x02 /* state declaration. */
+# define pad_add_FAKE 0x04
+
+#endif
+
/* ASSERT_CURPAD_LEGAL and ASSERT_CURPAD_ACTIVE respectively determine
* whether PL_comppad and PL_curpad are consistent and whether they have
* active values */