(DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
authorJan Djärv <jan.h.d@swipnet.se>
Thu, 7 Feb 2008 12:55:55 +0000 (12:55 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Thu, 7 Feb 2008 12:55:55 +0000 (12:55 +0000)
src/ChangeLog
src/coding.c

index 8afc3ae..6a8c03e 100644 (file)
@@ -1,3 +1,7 @@
+2008-02-07  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
+
+       * coding.c (DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
+
 2008-02-07  Jim Meyering  <meyering@redhat.com>
 
         Use "do...while (0)", not "if (1)..else" in macro definitions.
index 7e9a497..9372616 100644 (file)
@@ -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