Re: [xml] questions about using xmlGlobalState
- From: Daniel Veillard <veillard redhat com>
- To: Hisashi T Fujinaka <htodd twofifty com>
- Cc: xml gnome org
- Subject: Re: [xml] questions about using xmlGlobalState
- Date: Sun, 15 Jan 2006 04:18:34 -0500
On Sat, Jan 14, 2006 at 07:22:07PM -0800, Hisashi T Fujinaka wrote:
Thanks for the response. I think I may be looking in the wrong place to
determine whether a global variable is publically accessible
(globals.h). Is there any other way to see whether variables and struct
supposed to be used publically? I need to check the LSB spec for
discrepancies and it seems to imply that _xmlGlobalState is just a
regular struct.
To me it's not part of the API. It's a mechanism to make thread specific
some of the global variables which influence the processing. This is an
error at two level to use them:
- one should not use the global variables, usually there is equivalent
mechanism to influence parsing in the newer APIs
- second this strustucre is thread local storage, not something which
is a general purpose programming tool of the library, it must be made
public for the remapping to work, but it is not intended as a user
tool.
In a nutshell, really don't do this.
Daniel
--
Daniel Veillard | Red Hat http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]