From: Vincent Pit Date: Mon, 29 Dec 2008 00:08:07 +0000 (+0100) Subject: Prefer STMT_{START,END} over do/while(0) X-Git-Tag: v0.03~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=f0cfe9b5c3139bdfb9110efd9b56c180f9bc8cc4;p=perl%2Fmodules%2FScope-Upper.git Prefer STMT_{START,END} over do/while(0) --- diff --git a/Upper.xs b/Upper.xs index 264bfda..801f719 100644 --- a/Upper.xs +++ b/Upper.xs @@ -165,10 +165,10 @@ typedef struct { #define SU_UD_ORIGIN(U) (((su_ud_common *) (U))->origin) #define SU_UD_HANDLER(U) (((su_ud_common *) (U))->handler) -#define SU_UD_FREE(U) do { \ +#define SU_UD_FREE(U) STMT_START { \ if (SU_UD_ORIGIN(U)) Safefree(SU_UD_ORIGIN(U)); \ Safefree(U); \ -} while (0) +} STMT_END /* ... Reap ................................................................ */