Vanilla List Maling List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [VANILLA-LIST:2098] Bobs recent changes in the CVS tree



Quoting Kurt Siegl (007@freemail.at):
> No please don't do that. The config.h file should only include the things
> required for every file. In fact it should not include anything and should
> be placed as the first include it each C-file. It's only purpose is to
> set all the config variables.

Then a total re-do of the config.h file is required.

First, I believe it IS included in every file already.

Second, there is many things in config.h that do not need to be in
every file. These things where there before I did the Solaris changes.

The overhead is only there if the feature is defined. 

#if defined(HAVE_SYS_FILIO_H)
#include <sys/filio.h>
#endif

You'd like to see in the C files, the above statement instead of in
the config.h?

-- 
Bob Tanner <tanner@real-time.com>       | Phone : (612)943-8700
http://www.real-time.com                | Fax   : (612)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9