Subject: Re: missing #include ?
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: tech-userlevel
Date: 12/10/2006 20:26:24
At 13:22 Uhr -0500 10.12.2006, der Mouse wrote:
>> Any comments about this problem?  Should any header file which uses
>> e.g. `u_long' include <sys/types.h>?
>
>In my opinion, yes.

How much of a performance penalty would we take on {slow,
memory-limited} machines?

Since we do not (like e.g. Macintosh sources used to) check for redundancy
with something like

#ifndef FOO_HEADER_H
#include <foo_header.h>
#endif

_before_ the preprocessor #include, we would read many headers multiple times.

	hauke

--
"It's never straight up and down"     (DEVO)