<<On Fri, 9 May 2003 18:43:21 +0200 , Schwarz Konrad
<yyyyyyyyyyyyyy@xxxxxxxxxxx> said:
> I don't know how complicated the directory structures are, but note that you
> can do
> # include "../sys/blah.h"
Actually, no, I can't do that, because <foo/bar.h> is not necessarily
found in the same ``usual place'' as <sys/blah.h> (and depending on
how the system is being compiled I may have no way of knowing where
either directory actually is in the filesystem).
If the compiler is processing a header file called <machine/_types.h>
(just to give one real-life example), "../" might be anywhere; the
path to where the particular <sys/*.h> for this specific compilation
is found might be "../../sys", or it might be "../../../sys", or it
might be "../sys", or it might be "$S" (where $S is a variable defined
in a Makefile and only accessible to the compiler by way of the -I
flag).
-GAWollman
|