1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-27 21:55:05 +03:00
Commit Graph

58 Commits

Author SHA1 Message Date
Daniel Veillard
ff7227f2c1 Patch for portability of latin characters in C files
Coming from LibreOffice repository:
http://cgit.freedesktop.org/libreoffice/core/plain/libxml2/libxml2-latin.patch
2012-08-20 20:58:24 +08:00
Roumen Petrov
c3b1d09ba2 clean redefinition of {v}snprintf in C-source
as those from *config.h are preferable (e.g. win32config.h)
2012-08-13 16:57:30 +08:00
Roumen Petrov
1f0453f715 minimize use of HAVE_CONFIG_H
as build process for supported platforms provide "config.h" header file
2012-08-13 16:57:30 +08:00
Daniel Richard G
495a73df82 fix runtests to use pthreads support for various Unix platforms
The runtests program currently fails with

    Specific platform thread support not detected

on HP-UX, AIX and other Unix systems which do not match the conditional

    #if defined(linux) || defined(__sun) || defined(__APPLE_CC__)

It is silly to try to enumerate all systems which use pthreads in a conditional
like this. I am attaching a patch (against git master) that rewrites the cpp
conditional structure so that pthreads is used if HAVE_PTHREAD_H is defined,
and moves that section of code down below the Win32 and BeOS cases so that
native thread libraries are used preferentially in those two cases.
2012-08-07 10:14:56 +08:00
Daniel Veillard
22030ef888 Restore code for Windows compilation
Try to keep as close to rc1 but still allow the change from Roumen for
mingw
2012-05-23 15:52:45 +08:00
Roumen Petrov
978ff224b2 use mingw C99 compatible functions {v}snprintf instead those from MSVC runtime 2012-05-21 10:20:09 +08:00
Rob Richards
c966790781 Fix relaxNG tests in runtest for Windows
* runtest.c: initialize ret
2010-01-22 08:24:25 -05:00
Daniel Veillard
594e5dfb48 Chasing dead assignments reported by clang-scan
* SAX2.c dict.c error.c hash.c nanohttp.c parser.c python/libxml.c
  relaxng.c runtest.c tree.c valid.c xinclude.c xmlregexp.c xmlsave.c
  xmlschemas.c xpath.c xpointer.c: mostly removing unneded affectations,
  but this led to a few real bugs and some part not yet understood
  (relaxng/interleave)
2009-09-07 14:58:47 +02:00
Daniel Veillard
13cee4e37b Fix a bunch of scan 'dead increments' and cleanup
* HTMLparser.c c14n.c debugXML.c entities.c nanohttp.c parser.c
  testC14N.c uri.c xmlcatalog.c xmllint.c xmlregexp.c xpath.c:
  fix unused variables, or unneeded increments as well as a couple
  of space issues
* runtest.c: check for NULL before calling unlink()
2009-09-05 14:52:55 +02:00
Daniel Veillard
ec18c96008 558452 fight with reg test and error report
* relaxng.c: tiny fix and provide more context on some errors
* result/relaxng/558452_0* test/relaxng/558452*: add some regression
  tests for the bugs
* Makefile.am runtest.c: fight with the fact streaming error messages
  can differ due to missing node context
2009-08-26 18:37:43 +02:00
Tim Rice
85b07d188c Runtest portability patch for Solaris
* runtest.c: use defined(__sun) instead of defined(solaris)
2009-08-25 12:38:29 +02:00
Aleksey Sanin
838682478c Aleksey Sanin support for c14n 1.1
* c14n.c include/libxml/c14n.h: adds support for C14N 1.1,
  new flags at the API level
* runtest.c Makefile.am testC14N.c xmllint.c: add support in CLI
  tools and test binaries
* result/c14n/1-1-without-comments/* test/c14n/1-1-without-comments/*:
  add a new batch of tests
2009-07-09 10:26:22 +02:00
Daniel Veillard
aa6de47ebf applied patch from Aswin to fix tree skipping fixed a comment and added a
* xmlreader.c: applied patch from Aswin to fix tree skipping
* include/libxml/entities.h entities.c: fixed a comment and
  added a new xmlNewEntity() entry point
* runtest.c: be less verbose
* tree.c: space and tabs cleanups
daniel

svn path=/trunk/; revision=3774
2008-08-25 14:53:31 +00:00
CEST 2008 Sven Herzberg
dc41d862c1 Bug 546629 – runtests doesn't pass on my mac Reviewed by William M.
Thu Aug  7 15:51:31 CEST 2008 Sven Herzberg <sven@imendio.com>

	Bug 546629 – runtests doesn't pass on my mac
	Reviewed by William M. Brack.

	* runtest.c: use libpthread on Mac OS X as well


svn path=/trunk/; revision=3766
2008-08-07 13:52:30 +00:00
Daniel Veillard
438ebbd59a fx compilation when configured without the reader should fix #513110
* xmlschemas.c runtest.c testapi.c include/libxml/xmlreader.h
  python/types.c python/libxml_wrap.h python/libxml.c: fx compilation
  when configured without the reader should fix #513110
* doc/*: regenerated
Daniel

svn path=/trunk/; revision=3743
2008-05-12 12:58:46 +00:00
Daniel Veillard
381ff364dc applied patch from Boz for VMS and reporting Schemas errors. Daniel
* runtest.c: applied patch from Boz for VMS and reporting
  Schemas errors.
Daniel
2006-06-18 17:31:31 +00:00
Daniel Veillard
11ce4004d8 end of first pass on coverity reports. Daniel
* runtest.c schematron.c testAutomata.c tree.c valid.c xinclude.c
  xmlcatalog.c xmlreader.c xmlregexp.c xpath.c: end of first
  pass on coverity reports.
Daniel
2006-03-10 00:36:23 +00:00
Daniel Veillard
6a0baa0cd8 fixed a number of warnings shown by HP-UX compiler and reported by Rick
* HTMLparser.c configure.in parserInternals.c runsuite.c runtest.c
  testapi.c xmlschemas.c xmlschemastypes.c xmlstring.c: fixed a number
  of warnings shown by HP-UX compiler and reported by Rick Jones
Daniel
2005-12-10 11:11:12 +00:00
Daniel Veillard
93e577f1a1 Hisashi Fujinaka pointed that errors in Schemas tests were not properly
* runtest.c: Hisashi Fujinaka pointed that errors in Schemas tests
  were not properly reported.
Daniel
2005-11-15 08:50:04 +00:00
Daniel Veillard
f93a67e9c9 tiny fix from Albert Chin portability cleanup for arch needing trio for
* libxml.3: tiny fix from Albert Chin
* runsuite.c runtest.c testapi.c: portability cleanup for arch
  needing trio for *printf
Daniel
2005-10-28 16:37:05 +00:00
Daniel Veillard
567a45b5e9 removed the error message removed 2 instability warnings from function
* runtest.c: removed the error message
* relaxng.c xmlschemas.c: removed 2 instability warnings from function
  documentation
* include/libxml/schemasInternals.h: changed warning about API stability
* xmlregexp.c: trying to improve runtime execution of non-deterministic
  regexps and automata. Not fully finished but should be way better.
Daniel
2005-10-18 19:11:55 +00:00
Daniel Veillard
8874b94cd2 added a parser XML_PARSE_COMPACT option to allocate small text nodes (less
* HTMLparser.c parser.c SAX2.c debugXML.c tree.c valid.c xmlreader.c
  xmllint.c include/libxml/HTMLparser.h include/libxml/parser.h:
  added a parser XML_PARSE_COMPACT option to allocate small
  text nodes (less than 8 bytes on 32bits, less than 16bytes on 64bits)
  directly within the node, various changes to cope with this.
* result/XPath/tests/* result/XPath/xptr/* result/xmlid/*: this
  slightly change the output
Daniel
2005-08-25 13:19:21 +00:00
Daniel Veillard
bca3ad25f9 fixed compilation when configured --without-sax1 and other cleanups fixes
* 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
2005-08-23 22:14:02 +00:00
Daniel Veillard
60faf528d8 fixed bug #307377 about validation of choices in list values. added
* relaxng.c: fixed bug #307377 about validation of choices in
  list values.
* test/relaxng/307377* result/relaxng/307377* Makefile.am runtest.c:
  added examples to the regression tests, problem is that streaming
  version gives slightly more informations.
Daniel
2005-08-10 16:23:57 +00:00
Daniel Veillard
336a8e13bf get rid of the dependancy on a locally installed DTD try to cleanup the
* test/relaxng/docbook_0.xml: get rid of the dependancy on a locally
  installed DTD
* uri.c include/libxml/uri.h xmlIO.c nanoftp.c nanohttp.c: try to
  cleanup the Path/URI conversion mess, needed fixing in various
  layers and a new API to the uri module which also fixes #306861
* runtest.c: integrated a regression test specific to check the
  URI conversions done before calling the I/O handlers.
Daniel
2005-08-07 10:46:19 +00:00
Daniel Veillard
db68b74dc7 allows an extra argument to subset the tests big speedup for validation,
* runtest.c: allows an extra argument to subset the tests
* xmlregexp.c: big speedup for validation, basically avoided
  transition creation explosion when removing epsilon transition
Daniel
2005-07-30 13:18:24 +00:00
Daniel Veillard
24505b0f5c a lot of small cleanups based on Linus' sparse check output. Daniel
* 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
2005-07-28 23:49:35 +00:00
Daniel Veillard
ffa3c74933 applied a patch from Marcus Boerger to fix problems with calling
* 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
2005-07-21 13:24:09 +00:00
William M. Brack
ca15a54652 Reformatted on Windows, then re-committed to CVS 2005-07-06 20:41:33 +00:00
William M. Brack
12baaecdb7 fix #define for windows 2005-07-06 20:22:00 +00:00
William M. Brack
fa8d5d962e removed spurious ^M added check for option O_BINARY changed sticky tag to
* win32/Makefile.msvc: removed spurious ^M
* runtest.c: added check for option O_BINARY
* test/schemas/bug309338*, result/schemas/bug309338*: changed
  sticky tag to 'binary'
2005-07-06 19:44:03 +00:00
William M. Brack
0357a308b8 excluded content string check for XML_ELEMENT_DECL in
* debugXML.c: excluded content string check for XML_ELEMENT_DECL
  in xmlCtxtGenericNodeCheck
* runtest.c: changed "open" calls to include O_BINARY for Windows
2005-07-06 17:39:14 +00:00
Kasimier T. Buchcik
87db1cf6d1 Tiny portability adjustment for win. Added runtest.exe and runsuite.exe to
* runsuite.c runtest.c: Tiny portability adjustment for win.
* win32/Makefile.*: Added runtest.exe and runsuite.exe to
  be created.
2005-07-05 10:40:52 +00:00
Daniel Veillard
91fe3edcaa Windows fixup++, Daniel 2005-07-04 18:13:15 +00:00
Daniel Veillard
cfbb0dd89a Trying to fix CR/LF troubles, Daniel 2005-07-04 17:12:01 +00:00
Daniel Veillard
73c0f71a58 atempt++, Daniel 2005-07-04 16:53:16 +00:00
Daniel Veillard
f7d1660d80 windows_sucks++ , Daniel 2005-07-04 16:47:58 +00:00
Daniel Veillard
9e09c1441f Yet Another Windows Debugging Remote Patch From CVS Hell, Daniel 2005-07-04 16:31:10 +00:00
Daniel Veillard
89074392a2 One more fixup, Daniel 2005-07-04 16:24:31 +00:00
Daniel Veillard
25450d0629 One more fixup, daniel 2005-07-04 16:02:38 +00:00
Daniel Veillard
9083778967 first stb at unimplemnted detection fixing Windows code Daniel
* runsuite.c: first stb at unimplemnted detection
* runtest.c: fixing Windows code
Daniel
2005-07-04 15:45:10 +00:00
Daniel Veillard
4ac5f9af14 fix on schemas error portability glob() on Windows Daniel
* runsuite.c: fix on schemas error
* runtest.c: portability glob() on Windows
Daniel
2005-07-04 15:20:27 +00:00
Daniel Veillard
c935253fb7 cleanups, logfile and portability fixed a memory leak Daniel
* runsuite.c runtest.c: cleanups, logfile and portability
* xmllint.c: fixed a memory leak
Daniel
2005-07-04 14:25:34 +00:00
Daniel Veillard
39e5c89016 fixing a leak detected by testapi in xmlDOMWrapAdoptNode, and fixing
* testapi.c tree.c: fixing a leak detected by testapi in
  xmlDOMWrapAdoptNode, and fixing another side effect in testapi
  seems to pass tests fine now.
* include/libxml/parser.h parser.c: xmlStopParser() is no more limited
  to push mode
* error.c: remove a warning
* runtest.c xmllint.c: avoid compilation errors if only some parts
  of the library are compiled in.
Daniel
2005-07-03 22:48:50 +00:00
Daniel Veillard
6b6d680901 fixing compilations when disabling parts of the library at configure time.
* runsuite.c runtest.c tree.c: fixing compilations when
  disabling parts of the library at configure time.
Daniel
2005-07-03 21:00:34 +00:00
Daniel Veillard
95175012ec fixing #307823 and a couple of assorted bugs fixed conditionals in
* testapi.c runsuite.c runtest.c: fixing #307823 and a couple of
  assorted bugs
* python/generator.py python/libxml2-python-api.xml: fixed
  conditionals in generator too
* doc/apibuild.py doc/libxml2-api.xml doc/* elfgcchack.h: some
  cleanups too and rebuilt
Daniel
2005-07-03 16:09:51 +00:00
Daniel Veillard
f2e066ac2a complete, checking on other platforms is needed updated fix a bug raised
* runtest.c: complete, checking on other platforms is needed
* README: updated
* debugXML.c: fix a bug raised by bill on IRC
* relaxng.c: fix a leak in weird circumstances
* runsuite.c Makefile.am: standalone test tool agaisnt
  the regression suites, work in progress
Daniel
2005-06-30 13:04:44 +00:00
Daniel Veillard
3056404d75 adding URI tests Daniel
* runtest.c: adding URI tests
Daniel
2005-06-28 07:30:41 +00:00
Daniel Veillard
48dec9d3e5 adding xml:id Daniel
* runtest.c: adding xml:id
Daniel
2005-06-27 22:56:11 +00:00
Daniel Veillard
54a203c12a finishing XPath, adding XPointer Daniel
* runtest.c: finishing XPath, adding XPointer
Daniel
2005-06-27 22:29:56 +00:00