| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
This macro is supposed to be set by the build system.
|
| |
|
| |
|
|
|
|
|
|
|
| |
These functions were never declared in public headers, so it should be
safe to hide them.
Fixes #139.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Private functions were previously declared
- in header files in the root directory
- in public headers guarded with IN_LIBXML
- in libxml.h
- redundantly in source files that used them.
Consolidate all private header files in include/private.
|
|
|
|
|
| |
xmlstring.h includes stdarg.h, so it must be included after defining
macros like _FILE_OFFSET_BITS.
|
|
|
|
|
|
|
|
| |
* Prefix installations need to point to a non-root `etc`
- Gentoo Prefix has been patching this for over 10 years:
https://bugs.gentoo.org/317891
- MacPorts has to manually replace paths after patching:
https://github.com/macports/macports-ports/blob/cc3bb736e906abe73b014da02a89ae2b70ef6295/textproc/libxml2/Portfile#L46
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Don't check for
- fprintf
- localtime
- printf
- rand
- sprintf
- srand
- sscanf
- strftime
- time
- vfprintf
- vsprintf
If the C99 functions snprintf and vsnprintf are missing, Trio is
enabled.
|
| |
|
| |
|
|
|
|
|
| |
The same optimization can be enabled with -fno-semantic-interposition
since GCC 5. clang has always used this option by default.
|
|
|
|
| |
Closes #109.
|
| |
|
|
|
|
|
| |
Use GCC pragmas as these warnings are enabled by -Wpedantic and there's
no way to disable them selectively.
|
|
|
|
|
|
|
| |
Update xmlNop's name to xmlInputReadCallbackNop and its type signature
to match xmlInputReadCallback.
Fixes bug 786134.
|
| |
|
|
|
|
| |
"linux" without leading underscores is deprecated and less reliable.
|
|
|
|
|
|
|
| |
For https://bugzilla.gnome.org/show_bug.cgi?id=761029
adds a new xmlEscapeFormatString() function to escape composed format
strings
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
as build process for supported platforms provide "config.h" header file
|
|
|
|
|
|
|
| |
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()
|
|
|
|
|
| |
* libxml.h win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc: add
NOLIBTOOL flag to prevent automatic define of LIBXML_STATIC
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* include/win32config.h libxml.h: new patch from Andreas Stricke to
better integrate support for Windows CE
Daniel
svn path=/trunk/; revision=3602
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* libxml.h triodef.h: applied patch from Olli Savia for LynxOS
Daniel
|
|
|
|
|
|
| |
* HTMLparser.c libxml.h parser.c: try to fix xmlParseInNodeContext
when operating on an HTML document.
Daniel
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
* libxml.h uri.c: fixed a couple of problems in the new
elfgcchack.h trick pointed by Peter Breitenlohner
Daniel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
* libxml.h: try to avoid problems when compiling on Windows
Daniel
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
| |
* configure.in libxml.h parser.c testThreads.c macos/: integrated
Eric Lavigne (sp???) contribution to build libxml2 on MacOS using
CodeWarrior.
Daniel
|
|
|
|
|
|
|
| |
* libxml.h include/libxml/xmlversion.h.in
include/libxml/xmlwin32version.h include/libxml/xmlwin32version.h.in:
Tried to close bug #60131
Daniel
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
libxml.h : Yon Derek provided a set of changes to compile from
CVS on Windows/MSC
Daniel
|
|
|
|
|
| |
- doc/FAQ.html: added an entry for compilation from CVS
Daniel
|