after discovering that the Santa Clara Valley Medical Center actually

has a burn unit and is only 8 miles away...

add __DECONST(), __DEVOLATILE(), and __DEQUALIFY()
This commit is contained in:
Bill Fumerola 2001-03-10 12:05:55 +00:00
parent d6511a3c8d
commit 360b348374
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=74070

View File

@ -203,11 +203,23 @@
#endif
#ifndef __RCSID_SOURCE
#define __RCSID_SOURCE(s) __IDSTRING(rcsid_source,s)
#define __RCSID_SOURCE(s) __IDSTRING(rcsid_source,s)
#endif
#ifndef __COPYRIGHT
#define __COPYRIGHT(s) __IDSTRING(copyright,s)
#endif
#ifndef __DECONST
#define __DECONST(type, var) ((type)(uintptr_t)(const void *)(var))
#endif
#ifndef __DEVOLATILE
#define __DEVOLATILE(type, var) ((type)(uintptr_t)(volatile void *)(var))
#endif
#ifndef __DEQUALIFY
#define __DEQUALIFY(type, var) ((type)(uintptr_t)(const volatile void *)(var))
#endif
#endif /* !_SYS_CDEFS_H_ */