Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/sys since the vax gcc-2.95 does not like comma expressio...
details: https://anonhg.NetBSD.org/src/rev/74e16392475c
branches: trunk
changeset: 580813:74e16392475c
user: christos <christos%NetBSD.org@localhost>
date: Mon May 09 23:43:04 2005 +0000
description:
since the vax gcc-2.95 does not like comma expressions, rewrite these as
while loops.
diffstat:
sys/sys/resourcevar.h | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r a22c4e4c7797 -r 74e16392475c sys/sys/resourcevar.h
--- a/sys/sys/resourcevar.h Mon May 09 23:40:20 2005 +0000
+++ b/sys/sys/resourcevar.h Mon May 09 23:43:04 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: resourcevar.h,v 1.28 2005/05/09 18:34:09 jmc Exp $ */
+/* $NetBSD: resourcevar.h,v 1.29 2005/05/09 23:43:04 christos Exp $ */
/*
* Copyright (c) 1991, 1993
@@ -99,8 +99,16 @@
};
#define UIHASH(uid) (&uihashtbl[(uid) & uihash])
-#define UILOCK(uip, s) s = splsoftnet(); simple_lock(&uip->ui_slock)
-#define UIUNLOCK(uip, s) simple_lock(&uip->ui_slock); splx(s)
+#define UILOCK(uip, s) \
+ do { \
+ s = splsoftnet(); \
+ simple_lock(&uip->ui_slock); \
+ } while (/*CONSTCOND*/0)
+#define UIUNLOCK(uip, s) \
+ do { \
+ simple_unlock(&uip->ui_slock); \
+ splx(s); \
+ } while (/*CONSTCOND*/0)
extern LIST_HEAD(uihashhead, uidinfo) *uihashtbl;
extern u_long uihash; /* size of hash table - 1 */
Home |
Main Index |
Thread Index |
Old Index