Re: Headers ????
- From: "Duane Hebert" <spoo@xxxxxxxxx>
- Date: Mon, 23 Jun 2008 14:45:51 -0400
"Robby" <Robby@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:ED3B96A1-64C0-4906-86ED-28C9F8DC3AF4@xxxxxxxxxxxxxxxx
Hello,
Is it customary or typical to declare all function prototypes in one header
as opposed to creating a header file for every .c file and declaring the
function prototypes in the respective .h header file?
I mean, right now, for every .c file, I have a .h file where I define the
functions that exist in the .c file . I find this redundant of having so many
.h files. Can't I just have one .h file and define all the .c functions in
there?
Just wondering and all feedback is appreciated!
In general I would try to limit dependencies as much
as possible. If you put all of your declarations in one header, then
you need to expose all declarations to any source that needs
even one.
If you do this and you change any one of the declarations,
you will have to recompile all of the source files using them.
What benefit do you expect from combining all of them?
.
- Follow-Ups:
- Re: Headers ????
- From: Robby
- Re: Headers ????
- Prev by Date: Re: Headers ????
- Next by Date: Re: boost/multi_index_container.hpp in vc6 sp5
- Previous by thread: Re: Headers ????
- Next by thread: Re: Headers ????
- Index(es):
Relevant Pages
|