gcc/libjava/classpath/native/jni
Dodji Seketeli 4531d13af5 Use accessor functions to manipulate xmlOutputBuffer
This is a fix to prepare the xmlj_io.c file of gnu classpath to a coming
API change in libxml2.

Basically, we were previously accessing fields inside the
xmlOutputBuffer struct of libxml2.  In a coming version of libxml2,
that won't be possible anymore.  Client code will have to use accessor
functions instead.  For the gory details, there is an interestin note
of Daniel Veillard (author of libxml2) at
https://mail.gnome.org/archives/desktop-devel-list/2012-August/msg00007.html.

This patch defines too accessor macros that, depending on the version
of libxml2 we are using will either access the fields of
xmlOutputBuffer directly, or use the new accessor function.

Tested on x86_64-unknown-linux-gnu against trunk.

libjava/classpath/

	* native/jni/xmlj/xmlj_io.c (GET_XML_OUTPUT_BUFFER_CONTENT)
	(GET_XML_OUTPUT_BUFFER_SIZE): New macros.
	(xmljOutputWriteCallback): Use them.

From-SVN: r190249
2012-08-09 12:33:48 +02:00
..
classpath Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
gconf-peer GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00
gstreamer-peer Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
gtk-peer Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
java-io Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
java-lang Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
java-math GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00
java-net Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
java-nio Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
java-util GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00
midi-alsa Merge GNU Classpath 0.99 into libjava. 2012-03-23 15:19:26 +00:00
midi-dssi GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00
native-lib GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00
qt-peer GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00
xmlj Use accessor functions to manipulate xmlOutputBuffer 2012-08-09 12:33:48 +02:00
.cvsignore Merged gcj-eclipse branch to trunk. 2007-01-09 19:58:05 +00:00
Makefile.am re PR libgcj/37636 (java tools are unable to find resource files) 2008-10-21 17:55:01 +00:00
Makefile.in GNU Classpath import (libgcj-snapshot-20100921). 2010-10-12 15:55:12 +00:00