Subject: re: Namespace issues and lint
To: Nathan J. Williams <nathanw@wasabisystems.com>
From: matthew green <mrg@eterna.com.au>
List: tech-toolchain
Date: 06/15/2004 23:40:44
   
   > 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 :)


i agree.  perhaps you want to use a macro not in the user's
namespace instead of DECLARE_TRAPFRAME_32..


.mrg.