This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove unecessary EXTEND()s from pp_sys.c
authorNicholas Clark <nick@ccl4.org>
Sat, 12 Jun 2010 18:51:19 +0000 (20:51 +0200)
committerNicholas Clark <nick@ccl4.org>
Sun, 13 Jun 2010 07:52:38 +0000 (09:52 +0200)
commit2addaaf3b439e1adb64bd833a257ff963c73f45a
treef7c5118c4e1360efbc3ff622c79786083ca8db30
parent2116934e2bf4f3c1445ea039e29ff377c3de2648
Remove unecessary EXTEND()s from pp_sys.c

If we've just POP*ed something from the stack, it will already have space.
If we conditionally POP* something from the stack, avoid the EXTEND() in that
path. Also, use PUSH() rather than XPUSH() where we know that the stack is large
enough. Changes to pp_close, pp_binmode, pp_enterwrite, pp_readlink and pp_alarm.
pp_sys.c