summaryrefslogtreecommitdiff
path: root/libxml.h
Commit message (Collapse)AuthorAgeFilesLines
* Ignore function pointer cast warningsNick Wellnhofer2017-11-141-0/+12
| | | | | Use GCC pragmas as these warnings are enabled by -Wpedantic and there's no way to disable them selectively.
* Refactor name and type signature for xmlNopVlad Tsyrklevich2017-11-091-1/+1
| | | | | | | Update xmlNop's name to xmlInputReadCallbackNop and its type signature to match xmlInputReadCallback. Fixes bug 786134.
* Fix macro redefinition warningJ. Peter Mugaas2017-10-211-1/+1
|
* Change preprocessor OS tests to __linux__Nick Wellnhofer2017-09-141-1/+1
| | | | "linux" without leading underscores is deprecated and less reliable.
* More format string warnings with possible format string vulnerabilityDavid Kilzer2016-05-231-0/+3
| | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=761029 adds a new xmlEscapeFormatString() function to escape composed format strings
* Fix some format string warnings with possible format string vulnerabilityDavid Kilzer2016-05-231-1/+1
| | | | | | | | For https://bugzilla.gnome.org/show_bug.cgi?id=761029 Decorate every method in libxml2 with the appropriate LIBXML_ATTR_FORMAT(fmt,args) macro and add some cleanups following the reports.
* Remove risk of lockup in dictionary initializationDaniel Veillard2013-04-051-0/+2
| | | | | | | | | | | Reported by Petr Sumbera <petr.sumbera@oracle.com> Two threads entering xmlInitializeDict concurently could lead to a lockup due to multiple initializations of the lock used. To avoid this problem move this to a new private function called from xmlOnceInit() and deprecate the old initalizer. Since threaded programs must call xmlInitParser() and this will lead to dereference of private data and the call to xmlOnceInit() guaranteed to be unique this should be safe now.
* Fix large parse of file from memoryDaniel Veillard2012-10-261-0/+2
| | | | | | | https://bugzilla.redhat.com/show_bug.cgi?id=862969 The new code trying to detect excessive input lookup would just get wrong sometimes in the case of very large file parsed directly from memory.
* minimize use of HAVE_CONFIG_HRoumen Petrov2012-08-131-0/+5
| | | | as build process for supported platforms provide "config.h" header file
* Cleanup on randomizationDaniel Veillard2012-05-181-0/+7
| | | | | | | tsan reported that rand() is not thread safe, so create a thread safe wrapper, use rand_r() if available. Consolidate the function, initialization and cleanup in dict.c and make sure it is initialized in xmlInitParser()
* Fix Win32 buildRob Richards2010-03-191-1/+1
| | | | | * libxml.h win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: add NOLIBTOOL flag to prevent automatic define of LIBXML_STATIC
* Fix build with mingwRoumen Petrov2010-03-101-0/+3
| | | | | | | | - include/libxml/xmlexports.h: restore export decoration otherwise xsltproc and xmlsec crash - libxml.h: define LIBXML_STATIC for static build - configure.in: enable modules support for mingw* builds - Makefile.am: flags for testdso if modules support enabled
* __xmlGlobalInitMutexDestroy() will free global_init_lock on Win32. PatchRob Richards2007-11-161-0/+1
| | | | | | | | * globals.c threads.c include/libxml/threads.h: __xmlGlobalInitMutexDestroy() will free global_init_lock on Win32. Patch from Marc-Antoine Ruel. svn path=/trunk/; revision=3664
* new patch from Andreas Stricke to better integrate support for Windows CEDaniel Veillard2007-04-181-9/+8
| | | | | | | | * include/win32config.h libxml.h: new patch from Andreas Stricke to better integrate support for Windows CE Daniel svn path=/trunk/; revision=3602
* applied patch from Andreas Stricke to ease the compilation on Windows CEDaniel Veillard2007-04-171-0/+9
| | | | | | | | | * catalog.c libxml.h win32/wince/wincecompat.h win32/wince/wincecompat.c xmlIO.c nanohttp.c nanoftp.c trio.c triostr.c triostr.h: applied patch from Andreas Stricke to ease the compilation on Windows CE Daniel svn path=/trunk/; revision=3600
* small cleanup to avoid packaging .svn applied patch to avoid a problem inDaniel Veillard2007-02-121-0/+5
| | | | | | | | | * Makefile.am: small cleanup to avoid packaging .svn * libxml.h threads.c parser.c: applied patch to avoid a problem in concurrent threaded initialization fix from Ted Phelps Daniel svn path=/trunk/; revision=3582
* applied patch from Olli Savia for LynxOS DanielDaniel Veillard2006-05-311-0/+7
| | | | | * libxml.h triodef.h: applied patch from Olli Savia for LynxOS Daniel
* try to fix xmlParseInNodeContext when operating on an HTML document.Daniel Veillard2006-01-181-0/+8
| | | | | | * HTMLparser.c libxml.h parser.c: try to fix xmlParseInNodeContext when operating on an HTML document. Daniel
* some gcc4 portability patches, including a serious aliasing bug exposed inDaniel Veillard2005-03-101-0/+2
| | | | | | | * include/libxml/hash.h libxml.h libxml.spec.in: some gcc4 portability patches, including a serious aliasing bug exposed in s390 when trying to convert data pointer to code pointer. Daniel
* fixed a couple of problems in the new elfgcchack.h trick pointed by PeterDaniel Veillard2004-07-091-0/+2
| | | | | | * libxml.h uri.c: fixed a couple of problems in the new elfgcchack.h trick pointed by Peter Breitenlohner Daniel
* hack based on Arjan van de Ven suggestion to reduce ELF footprint andDaniel Veillard2004-06-271-0/+8
| | | | | | | | | | | | | | * elfgcchack.h doc/elfgcchack.xsl libxml.h: hack based on Arjan van de Ven suggestion to reduce ELF footprint and generated code. Based on aliasing of libraries function to generate direct call instead of indirect ones * doc/libxml2-api.xml doc/Makefile.am doc/apibuild.py: added automatic generation of elfgcchack.h based on the API description, extended the API description to show the conditionals configuration flags required for symbols. * nanohttp.c parser.c xmlsave.c include/libxml/*.h: lot of cleanup * doc/*: regenerated the docs. Daniel
* make sure we report errors if xmlNewInputFromFile() fails. avoid usingDaniel Veillard2003-10-271-0/+4
| | | | | | | | * libxml.h parserInternals.c xmlIO.c: make sure we report errors if xmlNewInputFromFile() fails. * xmlreader.c: avoid using _private for the node or document elements. Daniel
* fixed a nasty bug with interning some text strings prepare for beta5 ofDaniel Veillard2003-10-101-0/+1
| | | | | | | | | * SAX2.c: fixed a nasty bug with interning some text strings * configure.in: prepare for beta5 of 2.6.0 * libxml.h nanoftp.c nanohttp.c xmlIO.c include/libxml/xmlerror.h: better error handling for I/O and converted FTP and HTTP * parser.c: fixed another bug Daniel
* no more win32config.hIgor Zlatkovic2003-08-281-3/+1
|
* Applied patch from Mikhail Grushinskiy for mingw compiler on Windows.Daniel Veillard2003-08-141-1/+1
| | | | | | | * Makefile.am configure.in example/Makefile.am libxml.h nanoftp.c nanohttp.c xmllint.c: Applied patch from Mikhail Grushinskiy for mingw compiler on Windows. Daniel
* a lot of performance work especially the speed of streaming through theDaniel Veillard2003-04-211-0/+6
| | | | | | | | | * 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 support for large file, tested with a 3+GB instance, and someDaniel Veillard2003-04-181-0/+9
| | | | | | | | | * libxml.h include/libxml/parser.h parser.c xmlIO.c DOCBparser.c: added support for large file, tested with a 3+GB instance, and some cleanup. * catalog.c: added a TODO * Makefile.am: added some "make tests" comments Daniel
* preparing 2.4.18 updated and rebuilt the web site implement the newLIBXML_2_4_18Daniel Veillard2002-03-181-3/+0
| | | | | | | | | | | | | * 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
* try to avoid problems when compiling on Windows DanielDaniel Veillard2002-01-151-1/+3
| | | | | * libxml.h: try to avoid problems when compiling on Windows Daniel
* Applied following patches from Robert Collins and make sure IN_LIBXML isDaniel Veillard2002-01-081-0/+1
| | | | | | | | | | | | | | | | | * libxml.h: Applied following patches from Robert Collins and make sure IN_LIBXML is defined when compiling it ------- * include/libxml/xmlversion.h.in (LIBXML_DLL_IMPORT): Use on Cygwin as well as Visual C. * parser.c (XML_DIR_SEP): Don't use '\\' for Cygwin. * parserInternals.c (XML_DIR_SEP): Don't use '\\' for Cygwin. * strio.c (PLATFORM_UNIX): Define for Cygwin. * triodef.h (TRIO_PLATFORM_UNIX): Define for Cygwin. * xmlIO.c (xmlFileOpen): Use unix behaviour for Cygwin. Use binary mode opens for Cygwin (xmlFileOpenW xmlParserGetDirectory xmlSysIDExists xmlNoNetExists). * xmllint.c: Don't include winsock2.h for Cygwin. Daniel
* integrated Eric Lavigne (sp???) contribution to build libxml2 on MacOSDaniel Veillard2001-12-051-0/+2
| | | | | | | * configure.in libxml.h parser.c testThreads.c macos/: integrated Eric Lavigne (sp???) contribution to build libxml2 on MacOS using CodeWarrior. Daniel
* Tried to close bug #60131 DanielDaniel Veillard2001-09-101-1/+1
| | | | | | | * libxml.h include/libxml/xmlversion.h.in include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in: Tried to close bug #60131 Daniel
* Cleanup, cleanup .. removed libxml softlink for good cleanup to get 100%Daniel Veillard2001-07-181-0/+6
| | | | | | | | Cleanup, cleanup .. * configure.in Makefile.am: removed libxml softlink for good * include/libxml/*.h *.c doc/Makefile.am: cleanup to get 100% coverage by gtk-doc Daniel
* - xpointer.c include/win32config.h win32/libxml2/libxml2.def.srcDaniel Veillard2001-06-281-2/+1
| | | | | | libxml.h : Yon Derek provided a set of changes to compile from CVS on Windows/MSC Daniel
* - libxml.h: fixed an error in last commitDaniel Veillard2001-06-111-1/+1
| | | | | - doc/FAQ.html: added an entry for compilation from CVS Daniel
* - xmlversion.h.in libxml.h: Cygwin patchesDaniel Veillard2001-06-111-1/+1
| | | | | | - tree.c: xmlFreeNodeList patch similar to xmlFreeNode one - tree.h: cleanup Daniel
* trio upgrade and integrationBjorn Reese2001-04-211-0/+27