Subject: Re: Namespace issues and lint
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Jason Thorpe <thorpej@wasabisystems.com>
List: tech-toolchain
Date: 06/11/2004 13:06:37
--Apple-Mail-2--844468142
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed


On Jun 10, 2004, at 1:32 PM, Nathan J. Williams wrote:

> Martin Husemann <martin@duskware.de> writes:
>
>> on sparc64 the <machine/reg.h> header does play dirty, name space 
>> polluting
>> tricks to be usable for both 32bit and 64bit builds - and to be able
>> to build a gdb that supports both.
>
> That's gross. At the very least, why not use typedef instead of
> #define?

Because it needs to be "struct reg".  Can you do:

typedef struct reg struct reg64;

?

My compiler says "no".

         -- Jason R. Thorpe <thorpej@wasabisystems.com>


--Apple-Mail-2--844468142
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFAyhDNOpVKkaBm8XkRAvFSAKCC+W8Jlj8smQP8lX7MdSfFHvzHFQCdEx0o
z/3zp/oAzHgJtSp2Q7wYGw0=
=O6WT
-----END PGP SIGNATURE-----

--Apple-Mail-2--844468142--