[lkml]   [1996]   [Oct]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: POSIX test suite - including header files
In, article <>,
Elliot Lee <> 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:
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="">here</A>. 42

 \ /
  Last update: 2005-03-22 13:38    [W:0.053 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site