jacob navia said:
lcc -ansic tggets.c
Warning tggets.c: 14 Missing prototype for 'ggets'
0 errors, 1 warning
lcc tggets.c
Error tggets.c: 4 redefinition of 'fggets'
Error c:\lcc\include\stdio.h: 188 Previous definition of 'fggets' here
OK?
If "lcc -ansic" is not intended to be a conforming C implementation,
then it's perfectly ok (and I suggest that discussion of it should be
limited to comp.compilers.lcc).
If it is intended to be a conforming C implementation, then this is a
bug, and you just might want to consider fixing it.
Since I'm not an lcc-win user, I'm mostly indifferent to whether you
consider this a bug or not. But *if* you want to claim that lcc-win
(mostly) conforms to the C99 standard, my advice is to go through the
standard headers and make sure that any identifiers outside the
implementation name space that aren't specified in the standard do not
appear in conforming mode.
If I were in a position to want to use lcc-win, this kind of thing (of
which numerous instances have shown up in discussions here) would
strongly influence my decision. Your apparent attitude that it's
perfectly acceptable to add whatever declarations you like to the
standard headers is one that I find troubling. You needn't care
whether I want to use lcc-win, but you might want to care about other
users, and about conformance to the standard that you've repeatedly
advocated here.
If nothing else, consider a user who wants to compile a program that
includes its own copy of CBFalconer's ggets.