tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ansi.h include guards



On Fri, Feb 09, 2018 at 12:52:10PM +0000, David Brownlee wrote:
 > > >Surely all the per arch values should be consistently _MACHINE_ANSI_?
 > >
 > > No, that does not work (see previous explanation):
 > > i386 -> x86 -> sys
 > >
 > > You can't have both i386 and x86 be _MACHINE.
 > 
 > Erk... Is there a sane _ANSI_   _MACHINE_ANSI_   _MACHINE_ARCH_ANSI_
 > pattern somewhere or is that trying to force it...

IME, the only way to do these that doesn't eventually lead to problems
is to use the physical name of the header for each guard. Otherwise
when something changes and the include pattern gets more complicated
you have to go change them all :(

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index