Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 07 May 2002 20:43:50 -0600
From:      Mike Makonnen <makonnen@pacbell.net>
To:        John Utz <john@utzweb.net>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: how does the kernel build process resolve struct defs that	arent defined in the compilation unit, declared extern or included in?
Message-ID:  <1020825830.50729.14.camel@kokeb.ambesa.net>
In-Reply-To: <Pine.LNX.4.44.0205071944040.16721-100000@jupiter.linuxengine.net>
References:  <Pine.LNX.4.44.0205071944040.16721-100000@jupiter.linuxengine.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2002-05-07 at 19:01, John Utz wrote:
> Hi;
> 
> if /usr/src/sys/isa/pnp.c has a structure that is an array of struct
> pnp_cinfo and struct pnp_cinfo is only declared in
> /usr/src/sys/boot/isapnp.h and struct pnp_cinfo isnt declared extern in
> /usr/src/sys/isa/pnp.c and /usr/src/sys/isa/pnp.c doesnt #include 
> <isa/isapnp.h> nore does any of the files that pnp.c actually includes, 
> then how could it possibly compile? i have a pnp.o in my build dir and the 
> pnp stuff works in my kernel, so i am kinda lost
> 
> any insight into how this works, or any pointer to mistakes i may have
> made in interpreting the facts on my box would be greatly appreciated.

That declaration is inside an #if 0 block.

#if 0
...
#endif

The #if will always evaluate to false, so it won't try and compile it.
The only reference to it is also #if 0'ed out.


Cheers,
Mike Makonnen

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1020825830.50729.14.camel>