Mail Archives: djgpp/2000/02/14/15:12:10
On Sun, 13 Feb 2000, David Cleaver wrote:
> I was wondering why you can do this when I was told just a few weeks ago
> that I shouldn't use the underscore character in my header declaration.
> ie, In your example, I shouldn't use __example_h_ , everyone told me
> that it should be changed to example_h_ in order to use good programming
> style. Please, I would just like an explanation of why I was told
> this.
The reason someone could have told you this is that the ANSI C
standard says that all macro names which begin with two underscores or
one underscore and an uppercase letter are *reserved*. This means
that the library implementors are free to use such names without
risking to step on user-defined macros. If you use such names, your
program might commit all kinds of atrocities, like breaking system
headers or otherwise be buggy.
- Raw text -