develooper Front page | perl.perl5.porters | Postings from February 2007

refactor dump.c

Thread Next
Jim Cromie
February 21, 2007 21:35
refactor dump.c
Message ID:

dump.c has a large swath of code in op_dump which has been cut-pasted,
756..956 and 2549..  with the former differing by the addition
and subsequent use of an intermediate var;

     const OPCODE optype = o->op_type;

this 3 patch set refactors that code, then calls it

- adds t/run/debugging.t - with 1 test of op-dump
- refactor Perl_do_op_dump - somewhat ideosyncratic to lower diffsize
- reuse refactoring in Perl_do_op_xmldump

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About