[RFC] Moving apart SGI extensions

Phil Edwards pedwards@disaster.jaj.com
Wed Dec 26 22:58:00 GMT 2001


On Thu, Dec 27, 2001 at 07:56:14AM +0100, Gabriel Dos Reis wrote:
> Benjamin Kosnik <bkoz@redhat.com> writes:
> 
> [...]
> 
> | > What else should I do? Even inside __gnu_cxx should the names be uglifyied? In
> | > case, how exactly, i.e., how when, f.i., __random_sample and random_sample are
> | > both already used??
> | 
> | Yeah usually the names have to be uglified even in the squestered namespace.
> | So, random_sample -> __random_sample. I believe they all have different 
> | arguments, so it shouldn't matter if some already are named __random_sample.
> 
> Existing codes using such extensions might get in troubles.  I don't
> recall if we have a macro along the line _GLIBCPP_USE_SGI_EXTENSIONS.

We don't.  It sounds like a good idea though.

I have some ideas for managing new extensions, but I'm ambivalent about
the current/old SGI extensions.


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams



More information about the Libstdc++ mailing list