Subject: Re: K&R vs. ANSI call conventions (was Re: a new KNF)
To: Simon J. Gerraty <sjg@quick.com.au>
From: Todd Vierling <tv@pobox.com>
List: tech-toolchain
Date: 02/17/2000 09:17:46
On Thu, 17 Feb 2000, Simon J. Gerraty wrote:
: > short convert2 __P((float));
: > short convert2(f)
: > float f;
: > {
: > return f;
: > }
:
: The code is simply wrong.
`Yes, I know that.' However, it's what all of the NetBSD codebase uses,
where WARNS=1 is in effect; that includes everything in src/lib. (See
-Wstrict-prototypes -Wmissing-prototypes in bsd.sys.mk.)
...Which means that we won't break the ABI of shlibs (the original thread
supposition) by makine the NetBSD code use proper ANSI function definitions,
as we're already depending on that by making use of a gcc extension.
--
-- Todd Vierling (tv@pobox.com)