This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Moving apart SGI extensions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]