Re: POSIX test suite - including header files

Matthias Urlichs (smurf@smurf.noris.de)
Mon, 21 Oct 1996 09:59:02 -0200


In linux.dev.kernel, article <Pine.LNX.3.95.961020212028.1157C-100000@helix.cs.cuc.edu>,
Elliot Lee <sopwith@cuc.edu> writes:
> problem:
>
> - The .c file #include's errno.h
> - The .c file #undef's all the EXXX errno constants.
> - The .c file #include's errno.h
> - The .c file tries to use all the EXXX constants
>
- The .c file is _really_ stupid.

> Solutions? The easiest would be just to get rid of the #ifndef's
> bracketing all header files (obviously the test suite cannot be altered
> without breaking its validity). I'm asking for ideas on solving this
> problem with regards to header files in general, and the kernel includes
> specifically.
>
The problem is that as sooon as you do that, you break all kind of things
(most header files aren't written so that they can be included twice), and
you slow down compilation immensely because heaps of files are now included
_many_ times. :-(

> Suggestions are appreciated,

Yeah. Tell the people who wrote the standard and/or the conformity test
program to exhibit a bit more intelligence, if any.

-- 
The cheapest, fastest, and most reliable components of a computer
system are those that aren't there.
                 -- "Programming Pearls", Communications of the ACM, Sep. 1985
-- 
Matthias Urlichs         \  noris network GmbH  /  Xlink-POP Nürnberg 
Schleiermacherstraße 12   \   Linux+Internet   /   EMail: urlichs@noris.de
90491 Nürnberg (Germany)   \    Consulting+Programming+Networking+etc'ing
   PGP: 1024/4F578875   1B 89 E2 1C 43 EA 80 44  15 D2 29 CF C6 C7 E0 DE
       Click <A HREF="http://info.noris.de/~smurf/finger">here</A>.    42