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


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

Re: Clean up cpplib's internal namespace


On Sun, Mar 12, 2000 at 11:52:50PM +0100, Philipp Thomas wrote:
> * Zack Weinberg (zack@wolery.cumb.org) [20000307 21:55]:
> 
> > This patch renames a bunch of internal but globally visible functions
> > so their names all begin with "_cpp_".  This will make life easier for
> > users of the library.
> > 
> > The namespace is not yet perfect, I haven't decided what to do about
> > some of the functions exported by cpplib.c.
> 
> Wouldn't this be a case of using symbol versioning, at least on those
> platforms that support it? I know it wouldn't solve it everywhere, but it
> would be start, wouldn't it?

Symbol versioning is overkill for this problem - it's a tiny library
and it's got two or three programs that use it.  And it only works with
shared libraries.

Also, when I say 'I haven't decided what to do' I mean that there's a
genuine design question, e.g. will someone using the library ever need
to call output_line_command?  (Maybe.)

zw

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