🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #5331

C function prototyping and large projects

#5331
From: Russell Crook
Date: Wed, 14 Sep 1988 15:56
30 lines
1574 bytes
(line eater fodder)

(Posted for a development group here that doesn't have direct net
access. Please mail replies to russ@motto).

We are just starting to use function prototypes, and are looking for
suggestions on how to use them.

We know that the Microsoft C compiler can automatically generate
function prototypes.  Where do you go from there?  When developing
a large program, composed of many source files, how do you 
make sure each file picks up the right prototypes for the functions
it uses?  Are there conventions about where prototypes are stored -
do you put them in '.h' files, or right in the source file, or
somewhere else?  Do you put all the prototypes for an entire program
in one file, or do you use some means of only picking up the ones
which are needed?  If you put them all in, does it affect compile
time significantly?

Do you regenerate the prototypes automatically, every time you rebuild
or whenever the source file changes, or what?

We also do cross-development under VMS - does anyone have a portable
program to generate function prototypes?

-- 
Russell Crook (UUCP: ...!uunet!mnetor!motto!russ)
Disclaimer: "...we're all mad here. I'm mad. You're mad."
            "How do you know I'm mad?" said Alice.
            "You must be", said the Cat, "or you wouldn't have come here."
Technical Details
Message-ID: <24@motto.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!motto!russ

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!motto!russ
From: russ@motto.UUCP (Russell Crook)
Newsgroups: comp.std.c,comp.lang.c
Subject: C function prototyping and large projects
Message-ID: <24@motto.UUCP>
Date: 14 Sep 88 15:56:25 GMT
Lines: 30