1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 12:25:09 +03:00
Commit Graph

2097 Commits

Author SHA1 Message Date
Daniel Veillard
847332a0da starting work to fix the HTTP/XML parser integration. Daniel
* nanohttp.c xmlIO.c include/libxml/nanohttp.h: starting work
  to fix the HTTP/XML parser integration.
Daniel
2003-10-18 11:29:40 +00:00
Daniel Veillard
fc8dc355da added new APIs for creating reader from sources or reusing a reader with a
* xmlreader.c include/libxml/xmlreader.h: added new APIs
  for creating reader from sources or reusing a reader with
  a new source, like the xmlReadxx and xmlCtxtReadxxx
* win32/libxml2.def.src doc/libxml2-api.xml doc/apibuild.py
  doc/Makefile.am: regenerated the APIs
* doc/xml.html: applied a patch from Stefan Kost for namesapce docs
Daniel
2003-10-18 09:07:46 +00:00
William M. Brack
871611bb03 enhanced macros to avoid breaking ABI from previous versions. modified to
* genChRanges.py, chvalid.c, include/libxml/chvalid.h,
  include/libxml/parserInternals.h: enhanced macros to avoid
  breaking ABI from previous versions.
* catalog.c, parser.c, tree.c: modified to use IS_* macros
  defined in parserInternals.h.  Makes maintenance much easier.
* testHTML.c, testSAX.c, python/libxml.c: minor fixes to avoid
  compilation warnings
* configuration.in: fixed pushHTML test error; enhanced for
  better devel (me) testing
2003-10-18 04:53:14 +00:00
Daniel Veillard
4aede2e66b remove the warning for startDocument(), as it is used by glade (or
* legacy.c: remove the warning for startDocument(), as it is used by
  glade (or glade-python)
* parser.c relaxng.c xmlschemastypes.c: fixed an assorted set of
  invalid accesses found by running some Python based regression
  tests under valgrind. There is still a few leaks reported by the
  relaxng regressions which need some attention.
* doc/Makefile.am: fixed a make install problem c.f. #124539
* include/libxml/parserInternals.h: addition of xmlParserMaxDepth
  patch from crutcher
Daniel
2003-10-17 12:43:59 +00:00
Daniel Veillard
520f58544a Removed deprecated Win32 compilation tools, Daniel 2003-10-17 09:21:57 +00:00
Daniel Veillard
04054becf6 Marc Liyanage pointed out that xmlCleanupParser() was missing
* parser.c: Marc Liyanage pointed out that xmlCleanupParser()
  was missing xmlCleanupInputCallbacks and xmlCleanupOutputCallbacks
  calls.
Daniel
2003-10-15 10:48:54 +00:00
Daniel Veillard
9339b74c09 VMS patch from Craig A. Berry Daniel
* vms/build_libxml.com trionan.c: VMS patch from Craig A. Berry
Daniel
2003-10-15 08:18:00 +00:00
Daniel Veillard
903cd385c3 small fix from Bjorn Reese Daniel
* Makefile.am: small fix from Bjorn Reese
Daniel
2003-10-13 19:47:09 +00:00
Daniel Veillard
0cc7277706 fix a call missing arguments Daniel
* valid.c: fix a call missing arguments
Daniel
2003-10-13 14:00:21 +00:00
William M. Brack
0850b87df2 *** empty log message *** 2003-10-12 23:55:46 +00:00
William M. Brack
c4b8189aa7 fixed a bug in the range search; enhanced range generation (inline code if
* genChRanges.py, chvalid.c, include/libxml/chvalid.h: fixed
  a bug in the range search; enhanced range generation (inline code
  if a small number of intervals); enhanced the readability of the
  output files.
2003-10-12 10:42:46 +00:00
Daniel Veillard
ea887cfdf6 rebuilt chvalid.def from scratch based on XML 2nd edition REC and
* chvalid.def chvalid.c include/libxml/chvalid.h: rebuilt
  chvalid.def from scratch based on XML 2nd edition REC
  and regenerated the code.
Daniel
2003-10-11 22:53:44 +00:00
Daniel Veillard
1a99396b18 removed some annoying warnings fixed a bug in the PubidChars definition,
* check-xml-test-suite.py: removed some annoying warnings
* chvalid.def chvalid.c include/libxml/chvalid.h: fixed a bug
  in the PubidChars definition, regenerated, there is still
  a bug left somewhere
* genChRanges.py: save the header directly in include/libxml/
* configure.in: I generated a 2.6.0beta6 earlier today
Daniel
2003-10-11 20:58:06 +00:00
William M. Brack
6819a4e3e8 fixed problem with include path (third time's a charm?)
* genChRange.py, chvalid.c: fixed problem with include
  path (third time's a charm?)
2003-10-11 15:59:36 +00:00
William M. Brack
418342bc06 fixed small error on previous commit (chvalid.h in base dir instead of
* fixed small error on previous commit (chvalid.h in
  base dir instead of include directory)
2003-10-11 15:35:40 +00:00
William M. Brack
68aca051a6 new files for a different method for doing range validation of character
* genChRange.py, chvalid.def, chvalid.c, include/libxml/chvalid.h:
  new files for a different method for doing range validation
  of character data.
* Makefile.am, parserInternals.c, include/libxml/Makefile.am,
  include/libxml/parserInternals.h: modified for new range method.
* catalog.c: small enhance for warning message (using one
  of the new range routines)
2003-10-11 15:22:13 +00:00
Daniel Veillard
73000574ac adding an serror field to the validation context breaks the ABI for the
* valid.c include/libxml/valid.h: adding an serror field to
  the validation context breaks the ABI for the xmlParserCtxt
  structure since it's embedded by content and not by reference
Daniel
2003-10-11 11:26:42 +00:00
Daniel Veillard
9bcc7c5a8e Dohhh ! Daniel
Dohhh !
Daniel
2003-10-11 10:57:05 +00:00
Daniel Veillard
c790bf4b36 patch from Mike Hommey applied Windows patch from Jesse Pelton and
* configure.in: patch from Mike Hommey
* threads.c: applied Windows patch from Jesse Pelton and Stephane
  Bidoul
* parser.c: fix the potentially nasty access to ctxt->serror
  without checking first that the SAX block is version 2
Daniel
2003-10-11 10:50:10 +00:00
Daniel Veillard
2b0f879908 fixed a nasty bug with interning some text strings prepare for beta5 of
* 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
2003-10-10 19:36:36 +00:00
Daniel Veillard
ffbbed4228 fixed uninitialized new field. fixed a typo updating all messages Daniel
* SAX2.c: fixed uninitialized new field.
* result/VC/OneID2 result/relaxng/*.err: fixed a typo updating
  all messages
Daniel
2003-10-10 14:46:54 +00:00
Daniel Veillard
d8850403bc make room in Doc, Element, Attributes for PSVI type informations. Daniel
* include/libxml/tree.h: make room in Doc, Element, Attributes
  for PSVI type informations.
Daniel
2003-10-10 14:24:12 +00:00
Daniel Veillard
659e71ec24 Setting up the framework for structured error reporting, touches a lot of
* 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
2003-10-10 14:10:40 +00:00
Daniel Veillard
d96cce1abe converted the C14N module too Daniel
* c14n.c include/libxml/xmlerror.h: converted the C14N module too
Daniel
2003-10-10 12:30:37 +00:00
Daniel Veillard
fcf719ce0a cleanup migrated XPointer module to the new error mechanism Daniel
* xpath.c: cleanup
* xpointer.c include/libxml/xmlerror.h: migrated XPointer module
  to the new error mechanism
Daniel
2003-10-10 11:42:17 +00:00
Daniel Veillard
87db3a84f9 a bit of cleanup updated with the new result strings Daniel
* error.c xmlschemas.c: a bit of cleanup
* result/schemas/*.err: updated with the new result strings
Daniel
2003-10-10 10:52:58 +00:00
William M. Brack
40c22b472b fixed bug 124061 (problem with namespace eval)
* xpath.c: fixed bug 124061 (problem with namespace eval)
2003-10-10 03:58:39 +00:00
Daniel Veillard
d0c9c32f64 cleanup fix a funny typo converted the Schemas code to the new error
* Makefile.am: cleanup
* encoding.c: fix a funny typo
* error.c xmlschemas.c xmlschemastypes.c include/libxml/xmlerror.h:
  converted the Schemas code to the new error handling. PITA,
  still need to check output from regression tests.
Daniel
2003-10-10 00:49:42 +00:00
Daniel Veillard
e2238d5617 converted too small cleanup Daniel
* HTMLtree.c include/libxml/xmlerror.h: converted too
* tree.c: small cleanup
Daniel
2003-10-09 13:14:55 +00:00
Daniel Veillard
69d2c171fa comment fix migrating the catalog code to the new infrastructure Daniel
* xinclude.c: comment fix
* catalog.c include/libxml/xmlerror.h: migrating the catalog code
  to the new infrastructure
Daniel
2003-10-09 11:46:07 +00:00
Daniel Veillard
cd6ff28211 final error handling cleanup converted XInclude to the new error handling
* xmlIO.c: final error handling cleanup
* xinclude.c error.c: converted XInclude to the new error handling
* include/libxml/xmlerror.h: added XInclude errors
Daniel
2003-10-08 22:38:13 +00:00
Daniel Veillard
b65e12e3c5 bug in compression saving was crashing galeon, reported by teuf Daniel
* parser.c: bug in compression saving was crashing galeon, reported by teuf
Daniel
2003-10-08 21:33:28 +00:00
Daniel Veillard
a88562208d Oops, Daniel 2003-10-08 19:26:03 +00:00
Daniel Veillard
828ce83d4c more cleanup through the I/O error path Daniel
* error.c tree.c xmlIO.c xmllint.c: more cleanup through the
  I/O error path
Daniel
2003-10-08 19:19:10 +00:00
Daniel Veillard
97bf4d02e5 better handling of error cases Daniel
* xmlIO.c: better handling of error cases
Daniel
2003-10-08 18:58:28 +00:00
Daniel Veillard
05d987b462 first pass at cleaning up error handling in the I/O module. Daniel
* xmlIO.c xmllint.c include/libxml/xmlerror.h: first pass at
  cleaning up error handling in the I/O module.
Daniel
2003-10-08 11:54:57 +00:00
Daniel Veillard
ff46a0443e error handling cleanup of the Regexp module. Daniel
* xmlregexp.c include/libxml/xmlerror.h: error handling
  cleanup of the Regexp module.
Daniel
2003-10-08 08:53:17 +00:00
Daniel Veillard
18ec16e763 converting the tree module too created a simpler internal error reporting
* tree.c: converting the tree module too
* error.c include/libxml/xmlerror.h: created a simpler internal
  error reporting function.
Daniel
2003-10-07 23:16:40 +00:00
Daniel Veillard
d96f6d3429 cleaning up XPath error reporting that time. applied the two patches for
* error.c include/libxml/xmlerror.h include/libxml/xpath.h
  include/libxml/xpathInternals.h xpath.c: cleaning up XPath
  error reporting that time.
* threads.c: applied the two patches for TLS threads
  on Windows from Jesse Pelton
* parser.c: tiny safety patch for xmlStrPrintf() make sure the
  return is always zero terminated. Should also help detecting
  passing wrong buffer size easilly.
* result/VC/* result/valid/rss.xml.err result/valid/xlink.xml.err:
  updated the results to follow the errors string generated by
  last commit.
Daniel
2003-10-07 21:25:12 +00:00
Daniel Veillard
6edbfbbe66 last cleanup of error handling in the Relax-NG module. Daniel
* relaxng.c include/libxml/xmlerror.h: last cleanup of error
  handling in the Relax-NG module.
Daniel
2003-10-07 12:17:44 +00:00
Daniel Veillard
4c00414711 switched Relax-NG module to teh new error reporting. Better default
* error.c relaxng.c include/libxml/xmlerror.h: switched Relax-NG
  module to teh new error reporting. Better default report, adds
  the element associated if found, context and node are included
  in the xmlError
* python/tests/reader2.py: the error messages changed.
* result/relaxng/*: error message changed too.
Daniel
2003-10-07 11:33:24 +00:00
Daniel Veillard
141310afa1 applied patch from Stphane Bidoul to fix the compilation of 2.6.0 code on
* win32/Makefile.bcb win32/Makefile.mingw win32/Makefile.msvc
  win32/configure.js: applied patch from Stphane Bidoul to
  fix the compilation of 2.6.0 code on Win32
Daniel
2003-10-06 08:47:56 +00:00
Daniel Veillard
8f597c3bf5 fixing the script replace sequences of RAW && NXT(.) == '.' with memcmp
* check-xml-test-suite.py: fixing the script
* parser.c: replace sequences of RAW && NXT(.) == '.' with
  memcmp calls, seems to not break conformance, slightly inflate
  the size of the gcc generated code though.
Daniel
2003-10-06 08:19:27 +00:00
Daniel Veillard
ce9457f3aa more cleanup of error handling in parserInternals, sharing the routine for
* parserInternals.c parser.c valid.c include/libxml/parserInternals.h:
  more cleanup of error handling in parserInternals, sharing the
  routine for memory errors.
Daniel
2003-10-05 21:33:18 +00:00
Daniel Veillard
f403d298c3 more code cleanup, especially around error messages, the HTML parser has
* HTMLparser.c Makefile.am legacy.c parser.c parserInternals.c
  include/libxml/xmlerror.h: more code cleanup, especially around
  error messages, the HTML parser has now been upgraded to the new
  handling.
* result/HTML/*: a few changes in the resulting error messages
Daniel
2003-10-05 13:51:35 +00:00
Daniel Veillard
24eb97851d more error/warning handling cleanups, the XML parser module should be okay
* parser.c include/libxml/xmlerror.h: more error/warning
  handling cleanups, the XML parser module should be okay now.
Daniel
2003-10-04 21:08:09 +00:00
Daniel Veillard
1ae42d653e integrated the xmlDocWalker API given by Alfred Mickautsch, and providing
* Makefile.am configure.in xmldwalk.c include/libxml/Makefile.am
  include/libxml/xmldwalk.h include/libxml/xmlversion.h.in:
  integrated the xmlDocWalker API given by Alfred Mickautsch,
  and providing an xmlReader like API but working on a xmlDocPtr.
Daniel
2003-10-03 23:59:20 +00:00
Daniel Veillard
bb5ababa28 more cleanup in make tests more work in the transition to the new error
* Makefile.am: more cleanup in make tests
* error.c valid.c parser.c include/libxml/xmlerror.h: more work
  in the transition to the new error reporting strategy.
* python/tests/reader2.py  result/VC/* result/valid/*:
  few changes in the strings generated by the validation output
Daniel
2003-10-03 22:21:51 +00:00
Daniel Veillard
2b8c4a151b changed 'make tests' to use a concise output, scrolling to see where thing
* 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
2003-10-02 22:28:19 +00:00
Aleksey Sanin
e7acf431b8 introduced xmlStrPrintf function - wrapper for snprintf 2003-10-02 20:05:27 +00:00