diff options
author | Nicholas Clark <nick@ccl4.org> | 2009-11-08 10:18:02 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2009-11-09 18:41:52 +0000 |
commit | d6447115bb9638af823243dbe17f2c14e71cf57d (patch) | |
tree | 113eaa4bf540550b9f1cb3ecaf830fc019e3d4b3 /toke.c | |
parent | 829e8f2be6ba11895519e0a29d4ed05fe6700685 (diff) | |
download | perl-d6447115bb9638af823243dbe17f2c14e71cf57d.tar.gz |
Add length and flags arguments to Perl_allocmy().
Currently no flags bits are used, and 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 'toke.c')
-rw-r--r-- | toke.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -7094,7 +7094,7 @@ S_pending_ident(pTHX) yyerror(Perl_form(aTHX_ "No package name allowed for " "variable %s in \"our\"", PL_tokenbuf)); - tmp = allocmy(PL_tokenbuf); + tmp = allocmy(PL_tokenbuf, tokenbuf_len, 0); } else { if (has_colon) @@ -7102,7 +7102,7 @@ S_pending_ident(pTHX) PL_in_my == KEY_my ? "my" : "state", PL_tokenbuf)); pl_yylval.opval = newOP(OP_PADANY, 0); - pl_yylval.opval->op_targ = allocmy(PL_tokenbuf); + pl_yylval.opval->op_targ = allocmy(PL_tokenbuf, tokenbuf_len, 0); return PRIVATEREF; } } |