changeset 91622:0a283ea23533

(DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".
author Jan Djärv <jan.h.d@swipnet.se>
date Thu, 07 Feb 2008 12:55:44 +0000
parents d8d7c4cd2096
children 6bd1ac03e002
files src/coding.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Thu Feb 07 12:55:00 2008 +0000
+++ b/src/coding.c	Thu Feb 07 12:55:44 2008 +0000
@@ -1898,7 +1898,7 @@
    value 0.  */
 
 #define DECODE_EMACS_MULE_COMPOSITION_CHAR(buf)			\
-  if (1)							\
+  do    							\
     {								\
       int c;							\
       int nbytes, nchars;					\
@@ -1916,7 +1916,7 @@
       src += nbytes;						\
       consumed_chars += nchars;					\
     }								\
-  else
+  while (0)
 
 
 /* Decode a composition rule represented as a component of composition