Stephen J Baker wrote:
> 
> On Wed, 13 Oct 1999, Brian Paul wrote:
> 
> > I've renamed the memory macros I created a few days ago.  I removed
> > the GL_ prefix on each one in order to prevent future name-space
> > collisions with future GL enums/tokens.
> >
> > The new macros are
> > MALLOC
> > CALLOC
> > MALLOC_STRUCT
> > CALLOC_STRUCT
> > FREE
> 
> It would probably be safer to use an '_GL_' prefix (eg _GL_FREE)
> since there is a fair probability of one of your new tokens
> being a #define in some system header on one OS or another.
> 
> I agree that GL and gl prefixes for internal Mesa names is gonna
> be pretty dangerous though.

Yeah, we'll just have to rename things when problems arise.  For
the time being though, this change may be useful for X server
integration.

Strictly speaking, I probably shouldn't have used the gl_ prefix
for anything in Mesa in the first place. :)

-Brian


_______________________________________________
Mesa-dev maillist  -  [EMAIL PROTECTED]
http://lists.mesa3d.org/mailman/listinfo/mesa-dev

Reply via email to