Subject: Re: Namespace issues and lint
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: Martin Husemann <martin@duskware.de>
List: tech-toolchain
Date: 06/12/2004 07:54:45
On Fri, Jun 11, 2004 at 04:15:14PM -0400, Nathan J. Williams wrote:
> I guess we get to duplicate the
> definitions to clean up this mess

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? :-}

Martin