Subject: Re: Namespace issues and lint
To: Martin Husemann <martin@duskware.de>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: tech-toolchain
Date: 06/15/2004 09:37:36
Martin Husemann <martin@duskware.de> writes:

> We could use macros to supply the members, like
>
> #define DECLARE_TRAPFRAME_32	\
> 	int tf_pser;		\
> 	int tf_pc;		\
> 	...			\
> 	int tf_out[8];
>
> struct trapframe32 {
> 	DECLARE_TRAPFRAME_32
> };
>
> #ifndef __arch64__
> struct trapframe {
> 	DECLARE_TRAPFRAME_32
> };
> #endif
>
> #undef DECLARE_TRAPFRAME_32
>
> Would this still be called clean up? :-}

I think that would actually be an improvement, yes. Still gross, but
more of an aesthetic grossness than a funtional grossness :)

	- Nathan