----- Original Message -----
From: Brian Paul <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 14, 1999 7:27 PM
Subject: Re: [Mesa-dev] check-in: renamed memory macros


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

My $0.02:
If everything was prefixed with "MESA" (or variations thereof) there would
be no issues with namespace pollution.

BTW How's the new job? ;-)

Regards,

Keith Harrison
SiO2 Software.
Birmingham, UK.
[EMAIL PROTECTED] (personal)
[EMAIL PROTECTED] (work)




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

Reply via email to