On Fri, Jan 13, 2006 at 05:55:29PM -0800, Hisashi T Fujinaka wrote:
> I'm trying to figure out the libxml/globals.h headers. My version of
> libxml2 on Red Hat Enterprise Linux AS release 3 (Taroon Update 6) has
> LIBXML_USE_THREAD set. If I try to use the xmlGlobalState struct and
> access, for example, the xmlParserVersion field, the preprocessor
> substitutes in (*(__xmlParserVersion())) and the code will not work.
>
> So I guess the questions are:
> 1) should LIBXML_USE_THREAD be used in userland code?
No see Bjorn's answer
> 2) do I need to include something besides globals.h?
No
> printf(state.xmlParserVersion);
Access them as global variables only ! I.e
printf(xmlParserVersion);
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml