Re: [xml] questions about using xmlGlobalState

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?



  Access them as global variables only ! I.e



Daniel Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]