Module Name: src
Committed By: christos
Date: Sat Jan 24 18:07:37 UTC 2015
Modified Files:
src/sys/sys: cdefs.h
Log Message:
add cast-through-void * macros
To generate a diff of this commit:
cvs rdiff -u -r1.122 -r1.123 src/sys/sys/cdefs.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/cdefs.h
diff -u src/sys/sys/cdefs.h:1.122 src/sys/sys/cdefs.h:1.123
--- src/sys/sys/cdefs.h:1.122 Fri Sep 5 01:44:50 2014
+++ src/sys/sys/cdefs.h Sat Jan 24 13:07:37 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: cdefs.h,v 1.122 2014/09/05 05:44:50 matt Exp $ */
+/* $NetBSD: cdefs.h,v 1.123 2015/01/24 18:07:37 christos Exp $ */
/* * Copyright (c) 1991, 1993
* The Regents of the University of California. All rights reserved.
@@ -580,6 +580,9 @@
#define __CAST(__dt, __st) ((__dt)(__st))
#endif
+#define __CASTV(__dt, __st) __CAST(__dt, __CAST(void *, __st))
+#define __CASTCV(__dt, __st) __CAST(__dt, __CAST(const void *, __st))
+
#define __USE(a) ((void)(a))
#define __type_mask(t) (/*LINTED*/sizeof(t) < sizeof(intmax_t) ? \