GCC to open the C++ demangle API?
Carlo Wood
carlo@alinoe.com
Mon Mar 4 09:48:00 GMT 2002
On Mon, Mar 04, 2002 at 12:28:03PM -0500, Phil Edwards wrote:
> To be a drop-in replacement for the libiberty stuff, you would need to
> provide those two functions as wrappers to your own demangler. That way
> existing code won't change. Take a look at libiberty/cp-demangle.c.
>
> The cplus_demangle_v3 is the more public entry point, I /think/, and
> the __cxa_demangle one is for completeness with the rest of the new ABI.
> There are a couple of places in libcups++ where it's almost called, but
> avoided with a comment saying, "must wait until it's LGPL."
Hmm.
Since I was forced to write my demangler ONLY because libiberty
is GPL - I feel like kicking back by refusing to release my demangler
under the GPL. Instead I want to release it under the LGPL or the libstdc++
license (which gives people much more freedom to use it).
I have no intention to put people in the same shitty situation that
I was in: the code exists as Open Source but you can't use it because
of the license. Sorry, but I don't like the GPL.
The (legal) problem now is: how can I write a drop-in for these libiberty
functions when I want it to be LGPL?
--
Carlo Wood <carlo@alinoe.com>
More information about the Gcc
mailing list