Subject: [PATCH] MAD C-style for loop
Message-Id: <
20070321181852.GD31539@ostwald>
p4raw-id: //depot/perl@30676
forop = newUNOP(OP_NULL, 0, append_elem(OP_LINESEQ,
newSTATEOP(0,
CopLABEL_alloc(((ps[(1) - (12)].val.p_tkval))->tk_lval.pval),
- ((ps[(5) - (12)].val.opval) ? newOP(OP_NULL, 0) : (ps[(5) - (12)].val.opval)) ),
+ ((ps[(5) - (12)].val.opval) ? (ps[(5) - (12)].val.opval) : newOP(OP_NULL, 0)) ),
forop));
token_getmad((ps[(2) - (12)].val.i_tkval),forop,'3');
forop = newUNOP(OP_NULL, 0, append_elem(OP_LINESEQ,
newSTATEOP(0,
CopLABEL_alloc(($1)->tk_lval.pval),
- ($5 ? newOP(OP_NULL, 0) : $5) ),
+ ($5 ? $5 : newOP(OP_NULL, 0)) ),
forop));
token_getmad($2,forop,'3');