Hello,

* Adam Mercer wrote on Thu, May 20, 2010 at 06:43:38AM CEST:
> On Wed, May 19, 2010 at 23:36, Daniel Herring wrote:
> > ISTM that this is not an ABI change; the addition of const only affects the
> > code being called, and in a manner compatible with the non-const version
> > (assuming calling code did not expect this parameter to be changed).
> 
> This was my thinking as well, I just wanted to double check as I don't
> want to have an incompatible library api bump unless I really need
> one.

For what it's worth, I wouldn't treat this as an incompatible API bump.
I would mention it to my users though, because when they use function
pointers and assign your library function, the change will show up.

> > That said, C++ compilers do change the name mangling based on constness; so
> > the above argument depends on your code being plain C.
> 
> This code is plain C. Although code written in C++ will link against
> this library but AFAIK that won't be an issue?

No, it won't.  You have to use 'extern "C"' in the headers of course.

Cheers,
Ralf

_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to