Re: bug or problem with gcc and include files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx
> The gods that smiled on your birth are now laughing out loud.
-- 
Robert Marcano



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux