freetype
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]