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 /op.c | |
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 'op.c')
-rw-r--r-- | op.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -407,7 +407,8 @@ Perl_allocmy(pTHX_ const char *const name, const STRLEN len, const U32 flags) } /* check for duplicate declaration */ - pad_check_dup(name, is_our, (PL_curstash ? PL_curstash : PL_defstash)); + pad_check_dup(name, len, is_our ? pad_add_OUR : 0, + (PL_curstash ? PL_curstash : PL_defstash)); /* allocate a spare slot and store the name in that slot */ |