Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Delint. Add /* CONSTCOND */. Add parens to macr...



details:   https://anonhg.NetBSD.org/src/rev/665099b83f57
branches:  trunk
changeset: 526625:665099b83f57
user:      uwe <uwe%NetBSD.org@localhost>
date:      Tue May 07 05:56:47 2002 +0000

description:
Delint.  Add /* CONSTCOND */.  Add parens to macro argument to avoid
interesting interaction between cc -C and comma inside a comment after
macro definition.

diffstat:

 sys/dev/ic/hmereg.h |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r 1f9ba699a22f -r 665099b83f57 sys/dev/ic/hmereg.h
--- a/sys/dev/ic/hmereg.h       Tue May 07 04:52:49 2002 +0000
+++ b/sys/dev/ic/hmereg.h       Tue May 07 05:56:47 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hmereg.h,v 1.11 2001/11/26 10:39:29 tron Exp $ */
+/*     $NetBSD: hmereg.h,v 1.12 2002/05/07 05:56:47 uwe Exp $  */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -283,11 +283,11 @@
        (p) ? le32toh(*((u_int32_t *)HME_XD_FLAGS(b,i))) :              \
                (*((u_int32_t *)HME_XD_FLAGS(b,i)))
 #define HME_XD_SETFLAGS(p, b, i, f)    do {                            \
-       *((u_int32_t *)HME_XD_FLAGS(b,i)) = ((p) ? htole32(f) : (f));   \
-} while(0)
+       *((u_int32_t *)HME_XD_FLAGS(b,i)) = ((p) ? htole32((f)) : (f)); \
+} while(/* CONSTCOND */ 0)
 #define HME_XD_SETADDR(p, b, i, a)     do {                            \
-       *((u_int32_t *)HME_XD_ADDR(b,i)) = ((p) ? htole32(a) : (a));    \
-} while(0)
+       *((u_int32_t *)HME_XD_ADDR(b,i)) = ((p) ? htole32((a)) : (a));  \
+} while(/* CONSTCOND */ 0)
 
 /* Descriptor flag values */
 #define HME_XD_OWN     0x80000000      /* ownership: 1=hw, 0=sw */



Home | Main Index | Thread Index | Old Index