Subject: Re: __UNCONST(a)
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Christos Zoulas <christos@zoulas.com>
List: tech-userlevel
Date: 06/30/2004 08:35:13
On Jun 30, 9:33pm, yamt@mwd.biglobe.ne.jp (YAMAMOTO Takashi) wrote:
-- Subject: Re: __UNCONST(a)
| > I would like to add:
| >
| > /* No intptr_t dependency here */
| > #define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
| >
| > in <sys/cdefs.h>
| >
| > Any objections?
|
| FreeBSD has __DECONST.
| please follow it unless there's a compelling reason.
Ok, DECONST it is...
christos