diff options
| author | Jan Djärv | 2008-02-07 12:47:00 +0000 |
|---|---|---|
| committer | Jan Djärv | 2008-02-07 12:47:00 +0000 |
| commit | 92413ef3a119c29af24901e66b393d3c69cc83b5 (patch) | |
| tree | 597e3de17cbc3588975e040fdc239331b439d066 /src/buffer.h | |
| parent | 03fa5713cc5eb2226a5ca3fb1ce59a9e9f46ffae (diff) | |
| download | emacs-92413ef3a119c29af24901e66b393d3c69cc83b5.tar.gz emacs-92413ef3a119c29af24901e66b393d3c69cc83b5.zip | |
Use "do...while (0)", not "if (1)..else" in macro definitions.
Diffstat (limited to 'src/buffer.h')
| -rw-r--r-- | src/buffer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.h b/src/buffer.h index 87d646f35fe..8345c8fa06f 100644 --- a/src/buffer.h +++ b/src/buffer.h | |||
| @@ -266,7 +266,7 @@ extern void enlarge_buffer_text P_ ((struct buffer *, int)); | |||
| 266 | and store the charpos in CHARPOS and the bytepos in BYTEPOS. */ | 266 | and store the charpos in CHARPOS and the bytepos in BYTEPOS. */ |
| 267 | 267 | ||
| 268 | #define DECODE_POSITION(charpos, bytepos, pos) \ | 268 | #define DECODE_POSITION(charpos, bytepos, pos) \ |
| 269 | if (1) \ | 269 | do \ |
| 270 | { \ | 270 | { \ |
| 271 | Lisp_Object __pos = (pos); \ | 271 | Lisp_Object __pos = (pos); \ |
| 272 | if (NUMBERP (__pos)) \ | 272 | if (NUMBERP (__pos)) \ |
| @@ -282,7 +282,7 @@ if (1) \ | |||
| 282 | else \ | 282 | else \ |
| 283 | wrong_type_argument (Qinteger_or_marker_p, __pos); \ | 283 | wrong_type_argument (Qinteger_or_marker_p, __pos); \ |
| 284 | } \ | 284 | } \ |
| 285 | else | 285 | while (0) |
| 286 | 286 | ||
| 287 | /* Return the address of byte position N in current buffer. */ | 287 | /* Return the address of byte position N in current buffer. */ |
| 288 | 288 | ||