aboutsummaryrefslogtreecommitdiffstats
path: root/globals.c
Commit message (Collapse)AuthorAgeFilesLines
* fixed compilation when configured --without-sax1 and other cleanups fixesDaniel Veillard2005-08-231-1/+1
| | | | | | | | * SAX2.c globals.c runtest.c testC14N.c testapi.c tree.c include/libxml/SAX2.h include/libxml/xmlregexp.h: fixed compilation when configured --without-sax1 and other cleanups fixes bug #172683 * doc/* elfgcchack.h: regenerated Daniel
* more cleanups based on sparse reports, added "make sparse" DanielDaniel Veillard2005-07-291-2/+2
| | | | | | | * Makefile.am globals.c parserInternals.c xmlreader.c xmlunicode.c xmlwriter.c: more cleanups based on sparse reports, added "make sparse" Daniel
* a lot of small cleanups based on Linus' sparse check output. DanielDaniel Veillard2005-07-281-1/+1
| | | | | | | | | * HTMLparser.c SAX2.c encoding.c globals.c parser.c relaxng.c runsuite.c runtest.c schematron.c testHTML.c testReader.c testRegexp.c testSAX.c testThreads.c valid.c xinclude.c xmlIO.c xmllint.c xmlmodule.c xmlschemas.c xpath.c xpointer.c: a lot of small cleanups based on Linus' sparse check output. Daniel
* applied a patch from Marcus Boerger to fix problems with callingDaniel Veillard2005-07-211-1/+1
| | | | | | | | | | | | * error.c globals.c parser.c runtest.c testHTML.c testSAX.c threads.c valid.c xmllint.c xmlreader.c xmlschemas.c xmlstring.c xmlwriter.c include/libxml/parser.h include/libxml/relaxng.h include/libxml/valid.h include/libxml/xmlIO.h include/libxml/xmlerror.h include/libxml/xmlexports.h include/libxml/xmlschemas.h: applied a patch from Marcus Boerger to fix problems with calling conventions on Windows this should fix #309757 Daniel
* applied patch from Morten Welinder, closing bug #306901 on compilingDaniel Veillard2005-06-081-2/+2
| | | | | | * globals.c: applied patch from Morten Welinder, closing bug #306901 on compiling subsets of the library Daniel
* revamped the elfgcchack.h format to cope with gcc4 change of aliasingDaniel Veillard2005-04-011-7/+3
| | | | | | | | | | | * doc/apibuild.py doc/elfgcchack.xsl: revamped the elfgcchack.h format to cope with gcc4 change of aliasing allowed scopes, had to add extra informations to doc/libxml2-api.xml to separate the header from the c module source. * *.c: updated all c library files to add a #define bottom_xxx and reimport elfgcchack.h thereafter, and a bit of cleanups. * doc//* testapi.c: regenerated when rebuilding the API Daniel
* Re-examined the problems of configuring a "minimal" library.William M. Brack2005-01-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | Synchronized the header files with the library code in order to assure that all the various conditionals (LIBXML_xxxx_ENABLED) were the same in both. Modified the API database content to more accurately reflect the conditionals. Enhanced the generation of that database. Although there was no substantial change to any of the library code's logic, a large number of files were modified to achieve the above, and the configuration script was enhanced to do some automatic enabling of features (e.g. --with-xinclude forces --with-xpath). Additionally, all the format errors discovered by apibuild.py were corrected. * configure.in: enhanced cross-checking of options * doc/apibuild.py, doc/elfgcchack.xsl, doc/libxml2-refs.xml, doc/libxml2-api.xml, gentest.py: changed the usage of the <cond> element in module descriptions * elfgcchack.h, testapi.c: regenerated with proper conditionals * HTMLparser.c, SAX.c, globals.c, tree.c, xmlschemas.c, xpath.c, testSAX.c: cleaned up conditionals * include/libxml/[SAX.h, SAX2.h, debugXML.h, encoding.h, entities.h, hash.h, parser.h, parserInternals.h, schemasInternals.h, tree.h, valid.h, xlink.h, xmlIO.h, xmlautomata.h, xmlreader.h, xpath.h]: synchronized the conditionals with the corresponding module code * doc/examples/tree2.c, doc/examples/xpath1.c, doc/examples/xpath2.c: added additional conditions required for compilation * doc/*.html, doc/html/*.html: rebuilt the docs
* added support for HTML PIs #156087 added specific tests DanielDaniel Veillard2004-10-221-1/+1
| | | | | | * HTMLparser.c: added support for HTML PIs #156087 * test/HTML/python.html result/HTML/python.html*: added specific tests Daniel
* added some code to include the CVS ChangeLog version in theWilliam M. Brack2004-08-181-1/+1
| | | | | | | * configure.in globals.c include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h.in: added some code to include the CVS ChangeLog version in the xmlParserVersion string (printed by xmllint with --version)
* fixed problem when configuring using --with-thread-allocWilliam M. Brack2004-06-101-6/+58
| | | | | * configure.in, xmlmemory.c, globals.c: fixed problem when configuring using --with-thread-alloc
* applied patch from Rob Richards for the per thread I/O mappings DanielDaniel Veillard2004-06-081-37/+9
| | | | | | * globals.c xmlIO.c include/libxml/globals.h include/libxml/xmlIO.h: applied patch from Rob Richards for the per thread I/O mappings Daniel
* minor cosmetic changes, no change to logic. regenerated added a newline atWilliam M. Brack2004-06-031-1/+2
| | | | | | * xmlschemas.c: minor cosmetic changes, no change to logic. * result/schemas/attruse_0_[12].err: regenerated * globals.c: added a newline at end to make gcc happy
* applied patch from Rob Richards for custom I/O BufferCreateFilenane fixesDaniel Veillard2004-06-021-0/+90
| | | | | | | * globals.c xmlIO.c include/libxml/globals.h: applied patch from Rob Richards for custom I/O BufferCreateFilenane fixes bug #143366 Daniel
* fixed xmlXPathReturnString to cater for NULL pointer (bug 129561) addedWilliam M. Brack2003-12-201-0/+10
| | | | | | | | * include/libxml/xpathInternals.h: fixed xmlXPathReturnString to cater for NULL pointer (bug 129561) * globals.c: added comment to suppress documentation warning * doc/apibuild.py: fixed problem which caused last APIchunkxx.html to be lost. Rebuilt doc/* (including adding APIchunk26.html)
* cleanup the make rebuild in doc, this include new directive to stopDaniel Veillard2003-12-051-0/+4
| | | | | | | | | | | | | | | | | * globals.c xmlwriter.c doc/apibuild.py include/libxml/globals.h include/libxml/pattern.h include/libxml/schemasInternals.h include/libxml/xmlexports.h include/libxml/xmlwriter.h: cleanup the make rebuild in doc, this include new directive to stop documentation warnings * doc/* doc/html/*: rebuilt the docs * pattern.c xmlreader.c include/libxml/pattern.h include/libxml/xmlreader.h: adding xmlTextReaderPreservePattern() to save nodes while scanning the tree with the reader, cleanup the way element were freed, and xmlTextReaderPreserve() implementation, the API might change for namespace binding support when compiling patterns. * doc/examples/*: added reader3.c exposing the xmlTextReaderPreserve() Daniel
* Setting up the framework for structured error reporting, touches a lot ofDaniel Veillard2003-10-101-0/+26
| | | | | | | | | | | * HTMLparser.c c14n.c catalog.c error.c globals.c parser.c parserInternals.c relaxng.c valid.c xinclude.c xmlIO.c xmlregexp.c xmlschemas.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/valid.h include/libxml/xmlerror.h: Setting up the framework for structured error reporting, touches a lot of modules, but little code now the error handling trail has been cleaned up. Daniel
* changed 'make tests' to use a concise output, scrolling to see where thingDaniel Veillard2003-10-021-1/+13
| | | | | | | | | | | | | | | | | | | * Makefile.am: changed 'make tests' to use a concise output, scrolling to see where thing broke wasn't pleasant * configure.in: some beta4 preparation, but not ready yet * error.c globals.c include/libxml/globals.h include/libxml/xmlerror.h: new error handling code, last error informations are stored in the parsing context or a global variable, new APIs to handle the xmlErrorPtr type. * parser.c parserInternals.c valid.c : started migrating to the new error handling code, it's a royal pain. * include/libxml/parser.h include/libxml/parserInternals.h: moved the definition of xmlNewParserCtxt() * parser.c: small potential buffer access problem in push code provided by Justin Fletcher * result/*.sax result/VC/PENesting* result/namespaces/* result/valid/*.err: some error messages were sligthly changed. Daniel
* added 2 new configure option: --with-reader --with-sax1 to allow removingDaniel Veillard2003-09-301-0/+6
| | | | | | | | | * Makefile.am SAX.c SAX2.c configure.in globals.c parser.c parserInternals.c testReader.c testSAX.c xmlIO.c xmllint.c xmlreader.c example/gjobread.c include/libxml/xmlversion.h.in: added 2 new configure option: --with-reader --with-sax1 to allow removing the reader or non-xmlReadxxx() interfaces. Daniel
* cleanup, creating a new legacy.c module, made sure make tests ran inDaniel Veillard2003-09-281-4/+4
| | | | | | | | | | | | | * Makefile.am: cleanup, creating a new legacy.c module, made sure make tests ran in reduced conditions * SAX.c SAX2.c configure.in entities.c globals.c parser.c parserInternals.c tree.c valid.c xlink.c xmlIO.c xmlcatalog.c xmlmemory.c xpath.c xmlmemory.c include/libxml/xmlversion.h.in: increased the modularization, allow to configure out validation code and legacy code, added a configuration option --with-minimum compiling only the mandatory code which then shrink to 200KB. Daniel
* preparing a beta3 solving the ABI problems make sure the global variablesDaniel Veillard2003-09-251-22/+13
| | | | | | | | | | | * configure.in: preparing a beta3 solving the ABI problems * globals.c parser.c parserInternals.c testHTML.c HTMLparser.c SAX.c include/libxml/globals.h include/libxml/SAX.h: make sure the global variables for the default SAX handler are V1 ones to avoid ABI compat problems. * xmlreader.c: cleanup of uneeded code * hash.c: fix a comment Daniel
* Time to commit 3 days of work rewriting the parser internal,Daniel Veillard2003-09-101-6/+3
| | | | | | | | | | | | | | | | | | | | | fixing bugs and migrating to SAX2 interface by default. There is some work letf TODO, like namespace validation and attributes normalization (this break C14N right now) * Makefile.am: fixed the test rules * include/libxml/SAX2.h include/libxml/parser.h include/libxml/parserInternals.h SAX2.c parser.c parserInternals.c: changing the parser, migrating to SAX2, adding new interface to switch back to SAX1 or initialize a SAX block for v1 or v2. Most of the namespace work is done below SAX, as well as attribute defaulting * globals.c: changed initialization of the default SAX handlers * hash.c tree.c include/libxml/hash.h: added QName specific handling * xmlIO.c: small fix * xmllint.c testSAX.c: provide a --sax1 switch to test the old version code path * result/p3p result/p3p.sax result/noent/p3p test/p3p: the new code pointed out a typo in a very old test namespace Daniel
* fixing bug #120870 try to avoid problem with uninitialized mutexes DanielDaniel Veillard2003-08-281-0/+3
| | | | | | * globals.c threads.c: fixing bug #120870 try to avoid problem with uninitialized mutexes Daniel
* Adding new version of the SAX interface, it's not there yet, currentlyDaniel Veillard2003-08-201-57/+72
| | | | | | | | | | | | * Makefile.am SAX2.c include/libxml/Makefile.am include/libxml/SAX2.h: Adding new version of the SAX interface, it's not there yet, currently just preparing the work * globals.c parser.c SAX.c include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h: doing some refactoring of the SAXv1 interfaces, obsoleting a bunch of them while keeping functionalities, preparing SAX2 integration. * dict.c: small cleanup. Daniel
* get rid of some compilation warnings. fix the performance problem reportedDaniel Veillard2003-08-141-0/+2
| | | | | | | | * DOCBparser.c globals.c include/libxml/xmlmemory.h: get rid of some compilation warnings. * xinclude.c: fix the performance problem reported by Kevin Ruscoe plus some cleanup and better error reporting. Daniel
* add xmlThrDefMutex = NULL in xmlCleanupGlobals() as suggested by RobDaniel Veillard2003-07-151-1/+3
| | | | | | * globals.c: add xmlThrDefMutex = NULL in xmlCleanupGlobals() as suggested by Rob Richards Daniel
* fixes some problem when freeing unititialized mutexes DanielDaniel Veillard2003-07-081-1/+2
| | | | | | * globals.c threads.c: fixes some problem when freeing unititialized mutexes Daniel
* patch from Stéphane Bidoul for setting up threads global defaults. thisDaniel Veillard2003-05-151-17/+200
| | | | | | | | | | | * build_glob.py global.data globals.c parser.c include/libxml/globals.h: patch from Stéphane Bidoul for setting up threads global defaults. * doc/libxml2-api.xml: this extends the API with new functions * python/tests/Makefile.am python/tests/reader2.py python/tests/thread2.py: integrated the associated testcase and fixed the error string used in reader2 Daniel
* a lot of performance work especially the speed of streaming through theDaniel Veillard2003-04-211-0/+2
| | | | | | | | | * globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c xmlreader.c include/libxml/parser.h: a lot of performance work especially the speed of streaming through the reader and push interface. Some thread related optimizations. Nearly doubled the speed of parsing through the reader. Daniel
* added xmlMallocAtomic() to be used when allocating blocks which do notDaniel Veillard2003-04-191-0/+15
| | | | | | | | | | | | * DOCBparser.c HTMLparser.c c14n.c catalog.c encoding.c globals.c nanohttp.c parser.c parserInternals.c relaxng.c tree.c uri.c xmlmemory.c xmlreader.c xmlregexp.c xpath.c xpointer.c include/libxml/globals.h include/libxml/xmlmemory.h: added xmlMallocAtomic() to be used when allocating blocks which do not contains pointers, add xmlGcMemSetup() and xmlGcMemGet() to allow registering the full set of functions needed by a garbage collecting allocator like libgc, ref #109944 Daniel
* OASIS RelaxNG testsuite python script to run regression against OASISDaniel Veillard2003-02-101-1/+5
| | | | | | | | | | | | * test/relaxng/OASIS/spectest.xml: OASIS RelaxNG testsuite * check-relaxng-test-suite.py: python script to run regression against OASIS RelaxNG testsuite * relaxng.c: some cleanup tweaks * HTMLparser.c globals.c: cleanups in comments * doc/libxml2-api.xml: updated the API * result/relaxng/*: errors moved files, so large diffs but no changes at the semantic level. Daniel
* fixed --with-threads compile fixed --without-debug compile cleanup add aDaniel Veillard2003-01-071-0/+2
| | | | | | | | * globals.c: fixed --with-threads compile * xmllint.c: fixed --without-debug compile * include/libxml/globals.h: cleanup * include/libxml/schemasInternals.h: add a missing include Daniel
* preparing 2.5.0 release only warn in pedantic mode about namespace nameDaniel Veillard2003-01-061-2/+4
| | | | | | | | | | | | * configure.in NEWS: preparing 2.5.0 release * SAX.c: only warn in pedantic mode about namespace name brokeness * globals.c: fix a doc generation problem * uri.c: fix #101520 * doc/*: updated and rebuilt the doc for the release, includuding stylesheet update * python/Makefile.am: fix a filename bug Daniel
* applied an old patch from Lukas Schroeder to track node creation andDaniel Veillard2003-01-011-0/+53
| | | | | | | | * global.data globals.c tree.c include/libxml/globals.h: applied an old patch from Lukas Schroeder to track node creation and destruction. Probably missing a lot of references at the moment and not usable reliably. Daniel
* fixed thread problemWilliam M. Brack2002-11-221-1/+1
|
* fixed a typo pointed out by Igor try to speed up node compare using lineDaniel Veillard2002-11-081-1/+1
| | | | | | | * globals.c: fixed a typo pointed out by Igor * xpath.c: try to speed up node compare using line numbers if available. Daniel
* changed default value for global parameter xmlIndentTreeOutput to 1 andAleksey Sanin2002-05-241-3/+22
| | | | * global.data globals.c tree.c include/libxml/globals.h win32/libxml2.def.src win32/dsp/libxml2.def.src: changed default value for global parameter xmlIndentTreeOutput to 1 and introduced new global parameter xmlTreeIndentString (the string used to do one-level indent) with default value " " (as it was in tree.c)
* preparing 2.4.18 updated and rebuilt the web site implement the newDaniel Veillard2002-03-181-0/+1
| | | | | | | | | | | | | * configure.in: preparing 2.4.18 * doc/*: updated and rebuilt the web site * *.c libxml.h: implement the new IN_LIBXML scheme discussed with the Windows and Cygwin maintainers. * parser.c: humm, changed the way the SAX parser work when xmlSubstituteEntitiesDefault(1) is set, it will then do the entity registration and loading by itself in case the user provided SAX getEntity() returns NULL. * testSAX.c: added --noent to test the behaviour. Daniel
* Tentatively fixed #69655 , make compiling with -Wredundant-decls clean.Daniel Veillard2002-02-101-60/+0
| | | | | | | | | | | | * HTMLtree.c Makefile.am build_glob.py configure.in debugXML.c globals.c parser.c threads.c tree.c valid.c xmlmemory.c xpath.c xpointer.c include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlmemory.h include/libxml/xpathInternals.h: Tentatively fixed #69655 , make compiling with -Wredundant-decls clean. * python/libxml.c: fixed a warning. Daniel
* Build a new version hopefully near complete and fully documented of theDaniel Veillard2002-01-221-8/+147
| | | | | | | | | | | | | | | * doc/libxml2-api.xml doc/parsedecl.py: Build a new version hopefully near complete and fully documented of the API in XML * HTMLtree.c SAX.c debugXML.c error.c globals.c parser.c tree.c xmlIO.c xmlmemory.c include/libxml/catalog.h include/libxml/hash.h include/libxml/list.h include/libxml/parser.h include/libxml/tree.h include/libxml/parserInternals.h include/libxml/valid.hi include/libxml/xmlIO.h include/libxml/xmlerror.hi include/libxml/xmlmemory.h include/libxml/xmlversion.h.ini include/libxml/xpath.h include/libxml/xpathInternals.h: Cleaned up the doc comments a lot in the process, the interface coverage is now 100% Daniel
* removed the last occurences of strdup usage in the code DanielDaniel Veillard2002-01-181-1/+1
| | | | | | * globals.c xmlIO.c xmlcatalog.c: removed the last occurences of strdup usage in the code Daniel
* applied 42 documentation patches from Charlie Bozeman. Regenerated theDaniel Veillard2001-12-311-1/+1
| | | | | | * *.c include/libxml/*.h doc/html/*: applied 42 documentation patches from Charlie Bozeman. Regenerated the HTML docs. Daniel
* do not reference strdup() ! trying to fix the libs of the various configDaniel Veillard2001-12-091-1/+1
| | | | | | | * globals.c: do not reference strdup() ! * configure.in libxml-2.0.pc.in: trying to fix the libs of the various config extraction modules Daniel
* removed some misplaced includes of xmlversion.h DanielDaniel Veillard2001-12-061-1/+0
| | | | | | * globals.c testThreads.c: removed some misplaced includes of xmlversion.h Daniel
* fix bug #63752 of compiling libxml with a non standard set of optionsDaniel Veillard2001-11-041-7/+15
| | | | | | * encoding.c global.data globals.c testThreads.c: fix bug #63752 of compiling libxml with a non standard set of options Daniel
* apply fixes to close #63271 and avoid segfaults when the error routineDaniel Veillard2001-10-291-1/+4
| | | | | | | | | | * parser.c globals.c DOCBparser.c HTMLparser.c error.c: apply fixes to close #63271 and avoid segfaults when the error routine gets callbed before xmlInitParser() get called. * nanoftp.c error.c: Applied patches from Justin Fletcher correcting some xmlGenericError misuses. Daniel
* - include/libxml/globals.h include/libxml/threads.h threads.cDaniel Veillard2001-10-171-11/+16
| | | | | | testThreads.c: far more testing, cleaning up bugs - *.c : make sure globals.h is always included. Daniel
* added a couple of standard includes. DanielDaniel Veillard2001-10-131-2/+4
| | | | | * globals.c: added a couple of standard includes. Daniel
* #include stdlib.h and string.h in order to have protoypes of memory andJaka Mocnik2001-10-131-0/+3
| | | | | | | 2001-10-13 Jaka Mocnik <jaka@gnu.org> * globals.c: #include stdlib.h and string.h in order to have protoypes of memory and str*() routines.
* Applied the last patches from Gary, cleanup, activated threading all userDaniel Veillard2001-10-131-26/+62
| | | | | | | | | | | | | | | * include/libxml/SAX.h include/libxml/globals.h include/libxml/parser.h include/libxml/parserInternals.h include/libxml/tree.h include/libxml/xmlerror.h HTMLparser.c SAX.c error.c globals.c nanoftp.c nanohttp.c parser.c parserInternals.c testDocbook.c testHTML.c testSAX.c tree.c uri.c xlink.c xmlmemory.c: Applied the last patches from Gary, cleanup, activated threading all user accessible global variables are now handled in globals.[ch] Still a bit rought but make tests passes with either --with-threads defined at configure time or not. * Makefile.am example/Makefile.am: added globals.[ch] and threads linking options Daniel
* started integrating the core of the thread support not activated yet butDaniel Veillard2001-10-121-0/+498
* Makefile.am include/libxml/Makefile.am include/libxml/globals.h globals.c include/libxml/threads.h threads.c build_glob.py global.data xmlcatalog.c acconfig.h configure.in: started integrating the core of the thread support not activated yet but half integrated. The code should still compile and work anyway. Daniel