Orphaning GCL

Jerry James loganjerry at gmail.com
Wed Nov 5 14:18:41 UTC 2008


On Wed, Nov 5, 2008 at 7:05 AM, Bryn M. Reeves <bmr at redhat.com> wrote:
> OT but.. That snippet *is* legal C, but the validity of compiling this file
> then depends on the content of unistd.h (which if it's a "real" unistd.h
> will of course never produce legal preprocessed C...).

When I filed a bug about this, Jakub Jelinek replied:

Then GCL is buggy.  Standard headers are never meant to be included inside of a
function.  E.g. ISO C99 says in 7.1.2/4:
... "If used, a header shall be included outside of any external declaration or
definition, and it shall first be included before the first reference to any of
the functions or objects it declares, or to any of the types or macros it
defines."...

Regards,
-- 
Jerry James
http://loganjerry.googlepages.com/




More information about the fedora-devel-list mailing list