[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Uninitalized Face data
From: |
David Turner |
Subject: |
Re: Uninitalized Face data |
Date: |
Fri, 25 Feb 2000 12:49:51 +0100 |
Werner LEMBERG a écrit :
>
> > This schema would be easier to understand if struct
> > TT_Instance_ was called _TT_Instance. The location of the
> > underscore is important as it's semantic is documented: underscored
> > symbols and type names are private and shall never be directly
> > referenced by library users (K&R, ANSI C).
>
> Hmm, we had this first, but for a reason I no longer know we have been
> advised (about two years ago) *not* to start with an underscore.
>
> Werner
Yes, this really is an old thread :-) We actually started with "struct _TT_Face"
when coding the C engine, then someone spoke about the ANSI standard that
mandated
that an identifier couldn't start with an underscore unless it was used by the
compiler or the standard libraries.
Then we switched to "struct TT_Face_". In my opinion, the trailing underscore is
a good thing. I usually do not like C's brain-dead name-spaces partition and I
tend to use different identifiers for struct types and their equivalent
typedefs.
It really is a matter of taste. I don't think we should debat too long about it
:o)
- David
- Uninitalized Face data, Arnar Mar Hrafnkelsson, 2000/02/23
- Re: Uninitalized Face data, Antoine Leca, 2000/02/24
- Re: Uninitalized Face data, Arnar Mar Hrafnkelsson, 2000/02/24
- Re: Uninitalized Face data, Bertrand Petit, 2000/02/24
- Re: Uninitalized Face data, Just van Rossum, 2000/02/24
- Re: Uninitalized Face data, Antoine Leca, 2000/02/24
- Re: Uninitalized Face data, Werner LEMBERG, 2000/02/24
- Re: Uninitalized Face data, Just van Rossum, 2000/02/24
- Re: Uninitalized Face data, Stefan Seefeld, 2000/02/24
- Re: Uninitalized Face data, Antoine Leca, 2000/02/25
- Re: Uninitalized Face data,
David Turner <=
Re: Uninitalized Face data, Pavel Kankovsky, 2000/02/24
Re: Uninitalized Face data, Antoine Leca, 2000/02/24
Re: Uninitalized Face data, David Turner, 2000/02/25