Robert Blum: "C-Compilers on a 2Meg-Machine" (Nov 11, 18:54):
Wow. Things are moving along...
a) Not very easy (mild understatement).
b) I *HATE* unclear include-files
c) No way.
I'd like to propose a following change to /usr/include/*:
Add a directory "/usr/include/non-ansi", and to each file (example
ctype.h, cdiff type adding):
#ifndef _CTYPE_H
#define _CTYPE_H
+ #if !defined(__STDC__) && !defined(__GCC__)
+ #include <non-ansi/ctype.h>
+ #else
... old ctype.h unchanged (except for the bug-fix, see below)
+ #endif /* __STDC__ */
#endif /* _CTYPE_H */
That way we can keep the non-ansi headers distinct. Anybody got
something against this? I'd suggest Blum do all the hard work :-) and
set cdiffs somewhere? No? The non-ansi files could be a part of the C386
package, and not everyone would need them.
At the same time you can correct a bug in ctype.h (I don't remember who
noticed this one, but it sure wasn't me): tolower has a '+' where there
should be a '-'. I never used it, so I never noticed. Urgh.
Linus