🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #1638

Re: May prototypes be required for lib functs

#1638
From: Doug Gwyn
Date: Fri, 07 Sep 1990 17:17
13 lines
1181 bytes
In article <1990Sep7.114544@osf.org> dbrooks@osf.org (David Brooks) writes:
>This loses some of the benefits of prototypes.

Well, yes, but there was that mountain of already-written code that was
correct by previous (K&R) criteria that we wanted to "grandfather in".

>Build a library using prototypes and narrow parameters, ...

I don't recommend excessive use of narrow parameter types, but certainly
if you're going to use them (or even if not!) there should be an associated
header that properly declares them.  A conforming compiler will flag any
type error in the function implementation if the implementation includes
the header.  Otherwise, some form of "lint" should be used by the developer.
Technical Details
Message-ID: <13773@smoke.BRL.MIL>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn
References: <478@hitachi.uucp> <13759@smoke.BRL.MIL> <1990Sep7.114544@osf.org>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!adm!smoke!gwyn
From: gwyn@smoke.BRL.MIL (Doug Gwyn)
Newsgroups: comp.std.c,comp.lang.c
Subject: Re: May prototypes be required for lib functs
Message-ID: <13773@smoke.BRL.MIL>
Date: 7 Sep 90 17:17:41 GMT
References: <478@hitachi.uucp> <13759@smoke.BRL.MIL> <1990Sep7.114544@osf.org>
Followup-To: comp.std.c
Organization: U.S. Army Ballistic Research Laboratory, APG, MD.
Lines: 13