This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [RFC] Moving apart SGI extensions
- From: Gabriel Dos Reis <gdr at codesourcery dot com>
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Cc: Paolo Carlini <pcarlini at unitus dot it>, libstdc++ at gcc dot gnu dot org, pedwards at disaster dot jaj dot com
- Date: 27 Dec 2001 07:56:14 +0100
- Subject: Re: [RFC] Moving apart SGI extensions
- Organization: CodeSourcery, LLC
- References: <Pine.SOL.3.91.1011226222914.9370C-100000@taarna.cygnus.com>
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.
| > Perhaps another namespace (not __gnu_cxx) should be used for SGI extensions vs
| > general extensions?
|
| Hmm. This is to be avoided if at all possible.
100% agreed.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com