'FILE' undefined on -DEVEL?

Joerg Sonnenberger joerg at britannica.bec.de
Sun Mar 9 12:37:30 PDT 2008


On Sun, Mar 09, 2008 at 12:25:17PM -0700, walt wrote:
> AFAICT, the reason is that FILE is undefined, or wrongly defined.
> 
> Is this by intention, and why?

FILE is an incomplete type. That is intentional. The only operation
ISO C90 and C99 allow on FILE are pointer ops. Copying is explicitly
prohibited. The most sane way to enforce that is to make it an
incomplete type. Checking the existance of FILE is just bogus.

Joerg





More information about the Bugs mailing list