cvs commit: src/sys/alpha/alpha support.s src/sys/i386/i386
swtch.s src/sys/kern kern_shutdown.c src/sys/sys systm.h
Bruce Evans
bde at zeta.org.au
Thu Feb 19 21:32:37 PST 2004
On Thu, 19 Feb 2004, Dag-Erling [iso-8859-1] Sm=F8rgrav wrote:
> Bruce Evans <bde at zeta.org.au> writes:
> > I'd prefer not to use variadic macros until we have several C99 compile=
rs
> > that support them instead of half of a C99 compiler.
>
> CURRENT's GCC supports both ISO C variadic macro syntax and its own.
That's the half of a C99 compiler.
> The latter is also supported in STABLE's GCC.
I forgot about -stable. s/until we have several C99 compilers/until C99
compilers are so normal that -stable has a choice of several of them/
> I imagine ICC supports
> at least ISO C syntax and possibly also the old GCC syntax, since it
> tries to be GCC-compatible, and that both TenDRA and Watcom support
> the ISO C syntax.
TenDRA is only C90 AFAIK, and the others aren't free or routinely used
for FreeBSD development.
> See src/contrib/openpam/include/security/openpam.h
> for an example of code that selects the right syntax depending on what
> the compiler is expected to support.
I prefer to avoid such messes by using only the fallback case. It does
set a good example by not passing __FILE__ and __LINE__ (it passes
__func__ instead). Anyway, not passing any of these and using debugging
info works better.
Bruce
More information about the cvs-src
mailing list