[hackers] [sbase] No need to use do { } while (0) construct || sin
commit b0e4b45e3b02d8693455d208f90809d8f091d63a
Author: sin <sin_AT_2f30.org>
Date: Tue Feb 4 16:49:18 2014 +0000
No need to use do { } while (0) construct
diff --git a/uudecode.c b/uudecode.c
index 17bf7e4..a508d43 100644
--- a/uudecode.c
+++ b/uudecode.c
_AT_@ -154,9 +154,7 @@ uudecode(FILE *fp, FILE *outfp)
#define DEC(c) (((c) - ' ') & 077) /* single character decode */
#define IS_DEC(c) ( (((c) - ' ') >= 0) && (((c) - ' ') <= 077 + 1) )
-#define OUT_OF_RANGE(c) do { \
- eprintf("character %c out of range: [%d-%d]",(c), 1+' ',077+' '+1); \
- } while (0)
+#define OUT_OF_RANGE(c) eprintf("character %c out of range: [%d-%d]", (c), 1 + ' ', 077 + ' ' + 1)
while (afgets(&bufb,&n,fp)) {
p = bufb;
Received on Tue Feb 04 2014 - 17:51:41 CET
This archive was generated by hypermail 2.3.0
: Tue Feb 04 2014 - 18:00:13 CET