From f937a7db33f4d330b2827981cb07c482ceb50fc8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Dj=C3=A4rv?= Date: Thu, 7 Feb 2008 12:55:55 +0000 Subject: [PATCH] (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". --- src/ChangeLog | 4 ++++ src/coding.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 8afc3ae7426..6a8c03e80da 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-02-07 Jan Dj,Ad(Brv + + * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)". + 2008-02-07 Jim Meyering Use "do...while (0)", not "if (1)..else" in macro definitions. diff --git a/src/coding.c b/src/coding.c index 7e9a497f1e5..93726169585 100644 --- a/src/coding.c +++ b/src/coding.c @@ -1898,7 +1898,7 @@ detect_coding_emacs_mule (coding, detect_info) value 0. */ #define DECODE_EMACS_MULE_COMPOSITION_CHAR(buf) \ - if (1) \ + do \ { \ int c; \ int nbytes, nchars; \ @@ -1916,7 +1916,7 @@ detect_coding_emacs_mule (coding, detect_info) src += nbytes; \ consumed_chars += nchars; \ } \ - else + while (0) /* Decode a composition rule represented as a component of composition -- 2.39.5