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

refactor dump.c

Thread Next
From:
Jim Cromie
Date:
February 21, 2007 21:35
Subject:
refactor dump.c
Message ID:
45DD2BB9.4020008@gmail.com

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


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About