(DECODE_EMACS_MULE_COMPOSITION_CHAR): Use "do...while (0)".

This commit is contained in:
Jan Djärv 2008-02-07 12:55:55 +00:00
parent a1c2ac9a20
commit f937a7db33
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2008-02-07 Jan Dj,Ad(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.

View 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