This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
rpeep(): remove trailing OP_NULLs etc
authorDavid Mitchell <davem@iabyn.com>
Wed, 5 Mar 2014 19:42:02 +0000 (19:42 +0000)
committerDavid Mitchell <davem@iabyn.com>
Sun, 16 Mar 2014 18:34:37 +0000 (18:34 +0000)
commit1022336546c7c8280b26bac6ed9c55bfd217804f
tree07f2cf1ef75b9c44e4b8174894e020a823d9ca46
parentcdec98ff86310d40c5a05f14e7e624f52ddcc156
rpeep(): remove trailing OP_NULLs etc

Perl_rpeep() elides OP_NULLs etc in the middle of an op_next chain, but
not at the start or end. Doing it at the start is hard (and not addressed
here); doing it at the end is trivial, and it just looks like a mistake in
the original code (there since 1994) that was (incorrectly) worried about
following through a null pointer.
embed.fnc
op.c
proto.h