1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-12 16:58:16 +03:00

160 Commits

Author SHA1 Message Date
Daniel Veillard
99e55ebe94 the change made to xmlXPathFuncLookupFunc was incompatible roll it back
* xpath.c include/libxml/xpathInternals.h: the change made to
  xmlXPathFuncLookupFunc was incompatible roll it back
Daniel
2002-01-21 08:56:29 +00:00
Daniel Veillard
963d2ae415 cleanup patch from Anthony Jones fix the headers to avoid in make scan
* SAX.c: cleanup patch from Anthony Jones
* doc/Makefile.am: fix the headers to avoid in make scan
* parserInternals.c xpath.c include/libxml/*.h: cleanup of the
  includes, * vs Ptr and general cleanup
* parsedecl.py: first version of a script to extract the
  module interfaces, the goal will be to provide .decl or XML
  specification of the interfaces to build wrappers.
Daniel
2002-01-20 22:08:18 +00:00
Daniel Veillard
cbaf399537 applied 42 documentation patches from Charlie Bozeman. Regenerated the
* *.c include/libxml/*.h doc/html/*: applied 42 documentation
  patches from Charlie Bozeman. Regenerated the HTML docs.
Daniel
2001-12-31 16:16:02 +00:00
Daniel Veillard
3c01b1d81b - include/libxml/globals.h include/libxml/threads.h threads.c
testThreads.c: far more testing, cleaning up bugs
- *.c : make sure globals.h is always included.
Daniel
2001-10-17 15:58:35 +00:00
Daniel Veillard
8146394d05 trying to cleanup the not thread safe parts of the library. Daniel
* catalog.c xpath.c: trying to cleanup the not thread safe
  parts of the library.
Daniel
2001-10-16 12:34:39 +00:00
Daniel Veillard
b44025c72b started integrating the non-controversial parts of Gary Pennington
* HTMLtree.c catalog.c debugXML.c entities.c nanoftp.c
  parser.c valid.c xmlmemory.c xpath.c xpointer.c: started
  integrating the non-controversial parts of Gary Pennington
  multithread patches
* catalog.c: corrected a small bug introduced
Daniel
2001-10-11 22:55:55 +00:00
Daniel Veillard
60087f30f3 preparing 2.4.6 release updated and rebuilt the docs fixed a number of
* configure.in: preparing 2.4.6 release
* doc/xml.html doc/html/*: updated and rebuilt the docs
* include/libxml/*.h *.c: fixed a number of teh/the widht/width typos
Daniel
2001-10-10 09:45:09 +00:00
Thomas Broyer
47334c09f4 implemented xmlXPathObjectCopy for external objects added
* xpath.c: implemented xmlXPathObjectCopy for external objects
	* include/libxml/xpathInternals.h: added xmlXPathStackIsExternal
2001-10-07 16:41:52 +00:00
Daniel Veillard
6ab38386cc fixing #61673 part I, do not loose doc information when copying result
* xpath.c: fixing #61673 part I, do not loose doc information
  when copying result value trees.
Daniel
2001-10-06 13:08:27 +00:00
Daniel Veillard
556c668f04 trying to harden the XPath interpreter Daniel
* xpath.c: trying to harden the XPath interpreter
Daniel
2001-10-06 09:59:51 +00:00
Daniel Veillard
20ee8c0310 applied fix from Mathias Hasselmann about a bug in URI parsing. fix bug
* uri.c: applied fix from Mathias Hasselmann about a bug in URI
  parsing.
* xpath.c: fix bug #61291 the default XML namespace node is
  missing from the namespace axis.
* tree.c: refuse to create namespaces nodes with prefix "xml"
Daniel
2001-10-05 09:18:14 +00:00
Daniel Veillard
c0631a608f removed a couple of warning try to solve the linking problem on platforms
* catalog.c xmlcatalog.c: removed a couple of warning
* xpath.c: try to solve the linking problem on platforms
  needing trio to compile
Daniel
2001-09-20 13:56:06 +00:00
Daniel Veillard
b06c61455f hum, restrict the integer usage gcc bug workaround to only gcc compilers
* xpath.c: hum, restrict the integer usage gcc bug workaround
  to only gcc compilers so that other architecture don't get
  penalized by this limitation.
* include/libxml/xpath.h: small typo fix from Heiko W. Rupp
Daniel
2001-08-27 14:26:30 +00:00
Daniel Veillard
268fd1bc97 fixed a Windows compiler warning (Chris Poblete) fix for mod when dividend
* valid.c: fixed a Windows compiler warning (Chris Poblete)
* xpath.c: fix for mod when dividend is 0 (Chris Poblete)
Daniel
2001-08-26 18:46:36 +00:00
Daniel Veillard
cda969218b more work on the XML catalog support. small cleanup seems using list as a
* Makefile.am catalog.c xmlcatalog.c include/libxml/catalog.h:
  more work on the XML catalog support.
* parser.c include/libxml/parser.h: small cleanup seems using
  list as a public parameter name can give portability troubles
* trionan.c trionan.h xpath.c include/libxml/trionan.h
  include/libxml/xpath.h include/libxml/Makefile.am: removed
  trionan from the libxml API, added xmlXPathIsInf and xmlXPathIsNaN
  wrappers
Daniel
2001-08-21 10:56:31 +00:00
Bjorn Reese
450296070e Re-worked NaN and Inf support 2001-08-21 09:23:53 +00:00
Daniel Veillard
0ab5caba5b serious changes on Result Value Trees and NodeSets w.r.t. deallocation and
* xpath.c: serious changes on Result Value Trees and NodeSets
  w.r.t. deallocation and collect operations. Probably not
  100% clean (merge of allocated trees smells like a problem).
  Seems sufficient to close #58943
Daniel
2001-08-14 16:43:10 +00:00
Daniel Veillard
fe70332f7f count() was broken on Result Value Tree fixed file:/// accesses on _WIN32
* xpath.c: count() was broken on Result Value Tree
* xmlIO.c: fixed file:/// accesses on _WIN32
Daniel
2001-08-14 12:18:09 +00:00
Daniel Veillard
567e1b48e8 fixed a bug when walking the descendants and the current node has no
* xpath.c: fixed a bug when walking the descendants and
  the current node has no children
* debugXML.c: show up when a text node is supposed to not be escaped
Daniel
2001-08-01 15:53:47 +00:00
Thomas Broyer
f186c8259a fixed a bug in xmlXPathNodeTrailingSorted (for now it worked like the
* xpath.c: fixed a bug in xmlXPathNodeTrailingSorted (for now it
	  worked like the set:leading() function)
	* include/libxml/xpathInternals.h: added xmlXPathNodeSetContains
2001-07-31 23:30:37 +00:00
Daniel Veillard
7d7e37919f fixed a serious memory problen when walking the namespace axis showing up
* xpath.c include/libxml/xpath.h: fixed a serious memory problen
  when walking the namespace axis showing up in
  libxst/tests/general/bug-12
* xmlmemory.c: added the possibility to trace a given block
  defined by its address
Daniel
2001-07-30 13:42:13 +00:00
Thomas Broyer
ba4ad3263b added a function lookup framework
* xpath.c include/libxml/xpath{,Internals}.h: added a function
	  lookup framework
2001-07-26 16:55:21 +00:00
Daniel Veillard
a53c688b2e fixed the xmlLineNumbersDefault() errors, lesson don't add new functions
* parser.c parserInternals.c: fixed the xmlLineNumbersDefault()
  errors, lesson don't add new functions at 1am before a release
* xpath.c: integrated fix from Bjorn to avoid divide by zero
  from XPath initialization when possible.
Daniel
2001-07-25 17:18:57 +00:00
Daniel Veillard
5e2dace1ca Cleanup, cleanup .. removed libxml softlink for good cleanup to get 100%
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
2001-07-18 19:30:27 +00:00
Thomas Broyer
f06a3d8b53 added a more convenient extension API for value and context managing Now
* include/libxml/xpath{,Internals}.h xpath.c: added a more
	  convenient extension API for value and context managing
	  Now handles external objects through xmlXPathPopExternal,
	  xmlXPathWrapExternal and xmlXPathReturnExternal.
	  Added functions for sets operations (intersection, etc.)
2001-07-16 04:52:57 +00:00
Daniel Veillard
0438375d2e fix the name() bug for elements in the default namespace reported by
* xpath.c: fix the name() bug for elements in the default
  namespace reported by Charlie Bozeman
Daniel
2001-07-08 14:27:15 +00:00
Daniel Veillard
7583a59b5a trying to fix #56948, this led to an XPath fix, improvements of SAX
* SAX.c parser.c testXPath.c xpath.c: trying to fix #56948, this
  led to an XPath fix, improvements of SAX initialization, and
  an added option --nocdata to testXPath
Daniel
2001-07-08 13:15:55 +00:00
Daniel Veillard
73c9c04919 - xpath.c: a bug reported by Stephan Kulow empty nodesets
were not equal to empty strings
Daniel
2001-07-05 20:02:54 +00:00
Daniel Veillard
8c357d58c2 - xpath.c: fixed a missing copy in xmlXPathVariableLookupNS()
raised by Mark Vakoc.
Daniel
2001-07-03 23:43:33 +00:00
Daniel Veillard
f06307e2c1 - xpath.c include/libxml/xpath.h include/libxml/xpathInternals.h:
lot of optimization work, results in significant improvements
  when handling really complex XPath queries. Add a small optimizer
  for unions, improve [n] and [last()], avoid some costly ops.
Daniel
2001-07-03 10:35:50 +00:00
Daniel Veillard
770447311e xmlStrstr args are both const small cleanup reformated, fixed problems if
* include/libxml/parser.h parser.c: xmlStrstr args are both const
* xpath.c: small cleanup
* xmlGetNsList: reformated, fixed problems if used on Entities
Daniel
2001-06-29 21:31:07 +00:00
Daniel Veillard
9a89a8ab80 moved the symlinks detection within a CVS check, this is not portable and
* configure.in: moved the symlinks detection within a CVS
  check, this is not portable and will be removed soon.
* xpath.c: small cleanup/speedup
Daniel
2001-06-27 11:13:35 +00:00
Daniel Veillard
a3067d19ec Oops small clanup, Daniel 2001-06-24 21:39:39 +00:00
Daniel Veillard
56f0646e73 - xpath.c: patch to xmlXPathFormatNumber for the optimizer on
Tru64 from Thomas Leitner
Daniel
2001-06-24 21:34:03 +00:00
Daniel Veillard
c5d64345cf Summer's cleanup, a really big one:
* AUTHORS: added William and Bjorn
* include/libxml/*.h *.c README doc/*.html etc.: changed old email to
  daniel@veillard.com hopefully I won't have to do this again
* doc/Makefile.am doc/html/*.html: cleanup makefile, checked that
  docs can be rebuilt cleanly now
* include/libxml/xml*version.h*: removed include/libxml/xmlversion.h
  from CVs it's generated, added include/libxml/xmlwin32version.h
  also generated but which should change far less frequently.
* catalog.c nanoftp.c: made sure to include libxml.h not
  libxml/xmlversion.h directly
* include/libxml/*.h: include xmlwin32version.h instead of xmlversion.h
  when compiling on WIN32 and MSC
Daniel
2001-06-24 12:13:24 +00:00
Daniel Veillard
8cf14d5ab6 fixed the bug generating a template loop in libxslt when using
* xpath.c: fixed the bug generating a template loop in libxslt
  when using docbook-xsl-1.4, * should filter out document nodes
* HACKING: added William
* TODO: updated
Daniel
2001-06-23 16:32:46 +00:00
Daniel Veillard
d79bcd1b36 attempt to work around what seemed a gcc optimizer bug when handling
* xpath.c: attempt to work around what seemed a gcc optimizer
  bug when handling floats on i386 http://veillard.com/gcc.bug
* tree.c entities.c encoding.c: doing some cleanups while
  chasing it
Daniel
2001-06-21 22:07:42 +00:00
Daniel Veillard
017b108fcf - Makefile.am: cleanup when --without-debug is specified
- xinclude.c xpath.c xpathInternals.h xpointer.c: cleanup
  w.r.t. --without-debug and other include points
- catalog.h testCatalog.c: a bit of cleanup and prepare for XML
  Catalogs
- configure.in entities.h tree.h HTMLparser.c: removed
  --without-corba, made the _private field mandatory
Daniel
2001-06-21 11:20:21 +00:00
Daniel Veillard
8b8d2254fa - xpath.c: first part of the work on selecting namespace to fix bug #56115
Daniel
2001-06-16 21:24:56 +00:00
Daniel Veillard
608ad0791b - xpath.c: Thomas Broyer suggested a better patch for the / arg
Daniel
2001-06-14 08:32:28 +00:00
Daniel Veillard
239d052b3d - xpath.c: bug detected by Ankh when / is used as a function arg
Daniel
2001-06-13 23:02:48 +00:00
Daniel Veillard
541d65559e - xpath.c: robert pointed out xmlXPathNINF was not initialized
daniel
2001-06-07 14:20:01 +00:00
Daniel Veillard
97ac13197c - xpath.c encoding.[ch]: William M. Brack provided a set of UTF8
string oriented functions and started cleaning the related areas
  in xpath.c which needed fixing in this respect
Daniel
2001-05-30 19:14:17 +00:00
Daniel Veillard
42596ad20c - tree.c: fixed a gross mistake in base computation, xml:base is
not completely correct yet (need cascade).
- xpath.[ch]: added the few things needed to find a function name
  and URI from the XPath context when it is called.
Daniel
2001-05-22 16:57:14 +00:00
Daniel Veillard
81418e38c8 - catalog.[ch]: fixes and add xmlLoadCatalogs()
- DOCBparser.c: small cleanup
- xmllint.c: added a --catalogs option to load catalogs from
  $SGML_CATALOG_FILES
- tree.c: cleanup
- configure.in: iconv library fixup, ICONV_LIBS
Daniel
2001-05-22 15:08:55 +00:00
Daniel Veillard
af86c7f463 - catalog.c: handling of CATALOG entries. detection of recursion,
and a few bugfixes
- xpath.c: fixing bug #54951 QNAME with no prefix should not match
  against the default namespace
Daniel
2001-05-21 14:11:26 +00:00
Daniel Veillard
04b93290b7 - xpath.c: Joe Orton reported a bug found with IRIx compiler.
Daniel
2001-05-21 08:15:31 +00:00
Daniel Veillard
76d66f416d - xpath.c tree.c parser.c: speed optimizations at the parser level
document tree freeing and xpath evaluation
Daniel
2001-05-16 21:05:17 +00:00
Daniel Veillard
ba0b8c94ac - xpath.c xpath.h xpathInternals.h: apply an XPath API cleanup
patch from Thomas Broyer
Daniel
2001-05-15 09:43:47 +00:00
Daniel Veillard
357c960e40 - xpath.c result/XPath/expr/floats : clarified and cleanup
printing of abnormal floats in tests.
Daniel
2001-05-03 10:49:20 +00:00