This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove dSP from all filetest ops.
authorNicholas Clark <nick@ccl4.org>
Fri, 27 Jul 2012 11:16:29 +0000 (13:16 +0200)
committerNicholas Clark <nick@ccl4.org>
Sat, 28 Jul 2012 07:56:58 +0000 (09:56 +0200)
commitd2f677201f78036f37e6a614b0bc4cfa46cf02d8
tree3e552c55e3f3d3eddd7909f6c92cb63e6fd5f8e8
parent75a8cd125e994761848db7aca480a8aa108078a0
Remove dSP from all filetest ops.

Following commit d2c4d2d1e22d3125, all filetest ops avoid manipulating the
stack pointer until the point of pushing a return value. As all the filetest
returns now go through either FT_RETURN_FALSE() or FT_RETURN_TRUE(), it's
viable to put the dSP inside those two macros and use *PL_stack_sp in place
of TOPs. This eliminates all uses of sp in the bodies of the functions
(explicit, or implicit via macros), and that makes it clear that the main
bodies of the functions are not manipulating the stack.
pp_sys.c