Subject: Re: __UNCONST(a)
To: <>
From: Ignatios Souvatzis <is@beverly.kleinbus.org>
List: tech-userlevel
Date: 07/01/2004 10:23:44
--n8g4imXOkfNTN/H1
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Wed, Jun 30, 2004 at 10:21:39PM -0400, der Mouse wrote:
> > static inline void *__UNCONST(const void *a) {
> > return ((const char *)a - (const char *)0) + (char *)0; }
>=20
> Oh, now that is _elegant_. Thank you very much; I've been looking for
> a really good way to define a qualifier-stripper, and that is one of
> those things that is unobvious until pointed out but so blindingly
> obvious once pointed out that I can't understand how I missed it.
David should have filed a patent application in time.
-is
--n8g4imXOkfNTN/H1
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (NetBSD)
iD8DBQFA48oPN4tiz3B8hB0RAhjnAKDfl2tFC+hYQsM+TqM0el7ih+khPwCglHF1
6n525P8PDpQxRAOScoMR6gY=
=Cobk
-----END PGP SIGNATURE-----
--n8g4imXOkfNTN/H1--