diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-11-08 22:23:07 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-11-09 18:41:53 +0000 |
commit | 35f82371218a026d1f07258ae020fffabf397fdc (patch) | |
tree | f508a89c7406bcd0da4089201d276d19b81dcdf9 /pad.h | |
parent | d6447115bb9638af823243dbe17f2c14e71cf57d (diff) | |
download | perl-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.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 */ |