summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorjoerg <joerg@NetBSD.org>2012-01-12 14:10:56 +0000
committerjoerg <joerg@NetBSD.org>2012-01-12 14:10:56 +0000
commit7f7cc83c9922a3e9805f08970b68bc1f4a2c2f62 (patch)
tree43bbf06a5fabe7ad23f5d4ec5c04b8ba137939eb /gnu
parent8492a252337a5e3e4f245b54e4b75937af859ce7 (diff)
Second try to sort out the dangling elses. Just use {} markers.
Produces identical on amd64.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/rcs/lib/rcsbase.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/gnu/usr.bin/rcs/lib/rcsbase.h b/gnu/usr.bin/rcs/lib/rcsbase.h
index ce79ae356a5..6d99949c807 100644
--- a/gnu/usr.bin/rcs/lib/rcsbase.h
+++ b/gnu/usr.bin/rcs/lib/rcsbase.h
@@ -1,4 +1,4 @@
-/* $NetBSD: rcsbase.h,v 1.11 2012/01/08 13:57:31 tron Exp $ */
+/* $NetBSD: rcsbase.h,v 1.12 2012/01/12 14:10:56 joerg Exp $ */
/* RCS common definitions and data structures */
@@ -33,6 +33,10 @@ Report problems and direct all questions to:
/*
* $Log: rcsbase.h,v $
+ * Revision 1.12 2012/01/12 14:10:56 joerg
+ * Second try to sort out the dangling elses. Just use {} markers.
+ * Produces identical on amd64.
+ *
* Revision 1.11 2012/01/08 13:57:31 tron
* Revert last change. The extra while loop intruced by the macro changes
* causes an end-less loop in ci(1) which uses "break" inside one of the
@@ -291,14 +295,14 @@ Report problems and direct all questions to:
# if maps_memory
# define declarecache register Iptr_type ptr, lim
# define setupcache(f) (lim = (f)->lim)
-# define Igeteof_(f,c,s) if ((f)->ptr==(f)->lim) s else (c)= *(f)->ptr++;
-# define cachegeteof_(c,s) if (ptr==lim) s else (c)= *ptr++;
+# define Igeteof_(f,c,s) { if ((f)->ptr==(f)->lim) s else (c)= *(f)->ptr++; }
+# define cachegeteof_(c,s) { if (ptr==lim) s else (c)= *ptr++; }
# else
int Igetmore P((RILE*));
# define declarecache register Iptr_type ptr; register RILE *rRILE
# define setupcache(f) (rRILE = (f))
-# define Igeteof_(f,c,s) if ((f)->ptr==(f)->readlim && !Igetmore(f)) s else (c)= *(f)->ptr++;
-# define cachegeteof_(c,s) if (ptr==rRILE->readlim && !Igetmore(rRILE)) s else (c)= *ptr++;
+# define Igeteof_(f,c,s) { if ((f)->ptr==(f)->readlim && !Igetmore(f)) s else (c)= *(f)->ptr++; }
+# define cachegeteof_(c,s) { if (ptr==rRILE->readlim && !Igetmore(rRILE)) s else (c)= *ptr++; }
# endif
# define uncache(f) ((f)->ptr = ptr)
# define cache(f) (ptr = (f)->ptr)