# HG changeset patch # User Jan Dj¸«£rv # Date 1202388389 0 # Node ID 431b8edb4f396c6efbac978480159a0ba2ce0b67 # Parent a2610cd19ac06ae28b95786c9a4a317e78907936 Use "do...while (0)", not "if (1)..else" in macro definitions. diff -r a2610cd19ac0 -r 431b8edb4f39 src/buffer.h --- a/src/buffer.h Thu Feb 07 06:54:39 2008 +0000 +++ b/src/buffer.h Thu Feb 07 12:46:29 2008 +0000 @@ -266,7 +266,7 @@ and store the charpos in CHARPOS and the bytepos in BYTEPOS. */ #define DECODE_POSITION(charpos, bytepos, pos) \ -if (1) \ +do \ { \ Lisp_Object __pos = (pos); \ if (NUMBERP (__pos)) \ @@ -282,7 +282,7 @@ else \ wrong_type_argument (Qinteger_or_marker_p, __pos); \ } \ -else +while (0) /* Return the address of byte position N in current buffer. */