freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Uninitalized Face data


From: Bertrand Petit
Subject: Re: Uninitalized Face data
Date: Thu, 24 Feb 2000 11:32:14 +0100

On Thu, Feb 24, 2000 at 10:10:50AM +0100, Antoine Leca wrote:
> > The reason is that freetype arranges TT_instance like:
> > 
> > struct TT_Instance_ { void*  z; };
> > typedef struct TT_Instance_  TT_Instance;
> 
> Well, you did cheat by looking at the sources without:
>  - reading the doc (and in particular docs/apiref.txt)
>  - reading the comments that are just above the part you copied.

        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).

-- 
Toujours pas de ~/.signature



reply via email to

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