bug or problem with gcc and include files
Robert Marcano
robert at marcanoonline.com
Thu Mar 25 15:30:46 UTC 2004
On Thu, 2004-03-25 at 11:14, Steve Wampler wrote:
> On Thu, 2004-03-25 at 06:59, jludwig wrote:
> > If include is a preprocessor directive how can it be in the body of a
> > function?
>
> Uh, how can it not be ok there? The preprocessor doesn't know
> anything about function bodies - it's just processing text, not
> C code.
>
> In fact, you can do some amazing things with the preprocessor,
> most of which shouldn't be done.
A good example of this is located at
http://lxr.mozilla.org/security/source/security/nss/lib/softoken/pkcs11.c#110
this #include allows this code to define a function pointers structure
with the same function definitions previously included
>
> --
> Steve Wampler -- swampler at noao.edu
> The gods that smiled on your birth are now laughing out loud.
--
Robert Marcano
More information about the users
mailing list