X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=cop.h;h=4fbcf263a4afe23e70148627167e3821510dcfb0;hb=e5c81feb3d32a96869ed78abc5cecef7e294da38;hp=e0a81278c17d4c7f9bbae00aa757e7c538c18b3e;hpb=cc9b67681954df413fe79f7c379e7b91a3121259;p=p5sagit%2Fp5-mst-13.2.git diff --git a/cop.h b/cop.h index e0a8127..4fbcf26 100644 --- a/cop.h +++ b/cop.h @@ -80,6 +80,7 @@ struct block_sub { U16 olddepth; U8 hasargs; U8 lval; /* XXX merge lval and hasargs? */ + SV ** oldcurpad; }; #define PUSHSUB(cx) \ @@ -126,7 +127,7 @@ struct block_sub { cx->blk_sub.argarray = newAV(); \ av_extend(cx->blk_sub.argarray, fill); \ AvFLAGS(cx->blk_sub.argarray) = AVf_REIFY; \ - PL_curpad[0] = (SV*)cx->blk_sub.argarray; \ + cx->blk_sub.oldcurpad[0] = (SV*)cx->blk_sub.argarray; \ } \ else { \ CLEAR_ARGARRAY(cx->blk_sub.argarray); \ @@ -392,7 +393,7 @@ Used to indicate scalar context. See C, C, and L. =for apidoc AmU||G_ARRAY -Used to indicate array context. See C, C and +Used to indicate list context. See C, C and L. =for apidoc AmU||G_VOID