Date: Fri, 20 Feb 2004 16:32:25 +1100 (EST) From: Bruce Evans <bde@zeta.org.au> To: Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?= <des@des.no> Cc: Jun Kuriyama <kuriyama@imgsrc.co.jp> Subject: Re: 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 Message-ID: <20040220161017.E4096@gamplex.bde.org> In-Reply-To: <xzp1xorxqyi.fsf@dwp.des.no> References: <200401192127.i0JLRBL3041817@repoman.freebsd.org> <20040213035557.M24031@gamplex.bde.org> <20040215094444.F6303@gamplex.bde.org> <20040217170647.GA95247@dhcp01.pn.xcllnt.net> <20040218093149.A19121@gamplex.bde.org> <xzplln0ua9x.fsf@dwp.des.no> <20040219213717.O1230@gamplex.bde.org> <xzp1xorxqyi.fsf@dwp.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 19 Feb 2004, Dag-Erling [iso-8859-1] Sm=F8rgrav wrote: > Bruce Evans <bde@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040220161017.E4096>