Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include use __type_fit() instead of locally brewed macro
details: https://anonhg.NetBSD.org/src/rev/c0c8de8ccfb2
branches: trunk
changeset: 778039:c0c8de8ccfb2
user: christos <christos%NetBSD.org@localhost>
date: Tue Mar 13 21:14:55 2012 +0000
description:
use __type_fit() instead of locally brewed macro
diffstat:
include/db.h | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (19 lines):
diff -r 8d167eea3cbe -r c0c8de8ccfb2 include/db.h
--- a/include/db.h Tue Mar 13 21:13:30 2012 +0000
+++ b/include/db.h Tue Mar 13 21:14:55 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db.h,v 1.24 2008/08/26 21:18:38 joerg Exp $ */
+/* $NetBSD: db.h,v 1.25 2012/03/13 21:14:55 christos Exp $ */
/*-
* Copyright (c) 1990, 1993, 1994
@@ -214,8 +214,7 @@
#ifdef __DBINTERFACE_PRIVATE
-#define _DBMASK(a) (~((1ULL << (sizeof(a) * NBBY)) - 1))
-#define _DBFIT(a, t) _DIAGASSERT(((a) & _DBMASK(t)) == 0)
+#define _DBFIT(a, t) _DIAGASSERT(__type_fit(t, a))
DB *__bt_open(const char *, int, mode_t, const BTREEINFO *, int);
DB *__hash_open(const char *, int, mode_t, const HASHINFO *, int);
Home |
Main Index |
Thread Index |
Old Index