Mail Archives: djgpp-workers/2001/01/21/12:45:39
>
> According to Eli Zaretskii:
> > > Date: Sun, 21 Jan 2001 08:54:15 -0500 (EST)
> > > From: "Alain Magloire" <alain AT qnx DOT com>
> > > Variables, macros, etc .. that are start with a leading '_' are reserved
> > > by the C/C++ implementation
> >
> > That's true if the identifier begins with an underscore and an
> > upper-case letter, or with two underscores. One underscore and a
> > lower-case letter should be okay.
hmm .. I do not have the Std so can not confirm.
> Isn't the C library part of the C implementation?
8-)
Yes, I believe so.
GNU Lib C can get away with it since they follow GNU C and make sure
of not having clashes.
The problem is a bit more difficult for other free standing C Lib.
I'm not saying not to use it, because that is the way the lib can protect
itself from things like
// User fonction
#define my_dj_string int
#include <stdio.h>
and in stdio.h
// Library prototypes
char *fgets(char *s, int my_dj_string, FILE *stream);
I suppose, I was pointing out little gotchas, for example
_Bool I believe is a reserved word in the C99 drafts, so doing this
char *fgets (char *_s, int _Bool, FILE *_stream);
Can get you in trouble on certain compilers, like lcc.
IIRC, djgpp will compile with no other compiler then gcc, so tracking
gcc and keeping out of trouble should be enough.
> Right,
>
> MartinS
>
--
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!
- Raw text -