From: Lukas Mai Date: Fri, 22 Jun 2012 12:36:21 +0000 (+0200) Subject: use STMT_START/_END instead of do/while(0) X-Git-Tag: v0.06_01~18 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9cb05a12d2fbbf1cd1cd3bac7f8f694ea3eb15cf;p=p5sagit%2FFunction-Parameters.git use STMT_START/_END instead of do/while(0) --- diff --git a/padop_on_crack.c.inc b/padop_on_crack.c.inc index 4f229f1..523b4ba 100644 --- a/padop_on_crack.c.inc +++ b/padop_on_crack.c.inc @@ -5,9 +5,9 @@ /* vi: set ft=c inde=: */ #define COP_SEQ_RANGE_LOW_set(SV, VAL) \ - do { ((XPVNV*)SvANY(SV))->xnv_u.xpad_cop_seq.xlow = (VAL); } while (0) + STMT_START { ((XPVNV*)SvANY(SV))->xnv_u.xpad_cop_seq.xlow = (VAL); } STMT_END #define COP_SEQ_RANGE_HIGH_set(SV, VAL) \ - do { ((XPVNV*)SvANY(SV))->xnv_u.xpad_cop_seq.xhigh = (VAL); } while (0) + STMT_START { ((XPVNV*)SvANY(SV))->xnv_u.xpad_cop_seq.xhigh = (VAL); } STMT_END static void S_pad_block_start(pTHX_ int full) { dVAR;