Subject: Re: __UNCONST(a)
To: David Laight <david@l8s.co.uk>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-userlevel
Date: 07/01/2004 10:54:43
David Laight <david@l8s.co.uk> writes:

> #define __UNCONST(a) ((void *)(((const char *)(a) - (const char *)0) + (char *)0))

Although this will likely work on most (if not all) architechtures,
it's not really allowed by C. When subtracting pointers they both have
to point into the same array. We can probably ignore this for now.

/Johan