Re: [libxml++] [patch] Global initialization code
- From: Murray Cumming <murrayc murrayc com>
- To: Thomas Jarosch <thomas jarosch intra2net com>
- Cc: libxml++ <libxmlplusplus-general lists sourceforge net>
- Subject: Re: [libxml++] [patch] Global initialization code
- Date: Thu, 16 Jun 2005 19:04:56 +0200
On Thu, 2005-06-16 at 18:51 +0200, Thomas Jarosch wrote:
> Christophe,
>
> On Monday 13 June 2005 13:08, Thomas Jarosch wrote:
> > > So it looks like a --disable-static-initialisation in the configure
> > > script would solve the issue.
> > >
> > > Any objection ?
> >
> > Fine with me. Of course we have to add a destructor to the Document::Init
> > class and reset the callbacks. The Document::Init constructor needs an
> > additional parameter (default: true) if it should call xmlCleanupParser()
> > during destruction.
> >
> > I had another idea:
> > Would it be possible to create the global _init object via an include file?
> >
> > #define LIBXMLPP_DISABLE_STATIC_INIT 1
> > #include <libxml++.h>
> >
> > Multiple applications which use libxml++ could still
> > share the same binary library file.
>
> I implemented the code like I wrote above. And it works :-)
> It's not ABI compatible as the new library doesn't contain the static init
> object, but it's 100% API compatile. -> It's best to bumb the .so version
> for the next release.
That would be highly undesirable. ABI compatibility must be maintained
until we have a really good reason to break it.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]