diff options
author | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 19:03:43 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2014-12-28 19:07:02 -0800 |
commit | d3261b99be3c97f17dbd8874de53a72cc328b6e7 (patch) | |
tree | f55edc78f192f5525b4e05d449c206e5b20afe8f /pp.c | |
parent | 6ba92227a05cb0b26b9fe4ed47f969152c06691c (diff) | |
download | perl-d3261b99be3c97f17dbd8874de53a72cc328b6e7.tar.gz |
pp.c:pp_chr: Less stack fiddling
No need for pop and push, since we accept and return one item. No
need to extend the stack. No need for PUTBACK.
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -3389,7 +3389,7 @@ PP(pp_chr) dSP; dTARGET; char *tmps; UV value; - SV *top = POPs; + SV *top = TOPs; SvGETMAGIC(top); if (UNLIKELY(SvAMAGIC(top))) @@ -3426,8 +3426,8 @@ PP(pp_chr) *tmps = '\0'; (void)SvPOK_only(TARG); SvUTF8_on(TARG); - XPUSHTARG; - RETURN; + SETTARG; + return NORMAL; } SvGROW(TARG,2); @@ -3453,8 +3453,8 @@ PP(pp_chr) } } - XPUSHTARG; - RETURN; + SETTARG; + return NORMAL; } PP(pp_crypt) |