5123a635f0
version 2.3.3 (2015.07.07): * Fixed a localization bug parsing floating point numbers. * Added Visual Studio 2012 projects. * Added Visual Studio 2008 projects. * Removed Visual Studio 2005 and 2003 projects. * Modified to build against Xerces-C 3.1.3. version 2.3.2 (2015.07.07): * XQilla can now be built with Visual Studios 2013. version 2.3.1 (2015.05.18): * Modified to build against Xerces-C 3.1.2. * Added Visual Studio 2010 projects. * Fixed a bug that could cause incorrect query results when combining nested expressions and functions. * Fixed a crash that could happen when XQilla is built with Visual Studio 2010 or higher. version 2.3.0 (2011.09.09): * Added support for XQuery 3.0 version declarations. * Updated to support XQuery 3.0 higher order functions, including partial function application, function coercion, and function item SequenceType checking. * Implemented XQuery 3.0 FLWOR clause ordering. * Implemented XQuery 3.0 FLWOR count clause. * Implemented XQuery 3.0 extended typeswitch syntax. * Implemented XQuery 3.0 namespace test and constructor. * Implemented XQuery 3.0 private functions. * Updated to the latest W3C XQuery Full Text syntax. * Implemented Unicode word bounding and sentence bounding for XQuery Full Text tokenization. * Implemented XQuery Full Text case options. * Implemented XQuery 1.0 second edition semantics for module import. * Added the xqilla:explain() function to return the query plan of an expression. * Added xqilla:words() and xqilla:sentences() to perform Unicode word and sentance boundary detection. * Added xqilla:drop(). * Rewrote a number of the built-in XQuery functions in XQuery itself. * Implemented constant time indexing into materialized sequences. * Improved the efficiency of the tail call optimization code. * Optimized boolean operators. * Optimized DOMDocument::evaluate() calls. * Fixed various bugs in static typing. * Fixed various memory leaks in the DOM 3 API, and regular expressions. * Fixed a bug that caused a crash when using huge integers. * Modified to build against Xerces-C 3.1.1 * Added Visual Studio 2010 support. * Build fix for AIX 5.3. * Build fix for the clang++ compiler. * Build fix for GCC 4.6.
21 lines
912 B
C++
21 lines
912 B
C++
$NetBSD: patch-src_dom-api_impl_XPathDocumentImpl.cpp,v 1.1 2017/10/01 09:45:50 wiz Exp $
|
|
|
|
Xerces-C 3.2.0 removed castToNode (which relied on undefined
|
|
behaviour) with a cleaner way of getting information about a node's
|
|
containing node: a new fContainingNode member.
|
|
https://sourceforge.net/p/xqilla/bugs/48/
|
|
|
|
--- src/dom-api/impl/XPathDocumentImpl.cpp.orig 2015-05-18 17:38:59.000000000 +0000
|
|
+++ src/dom-api/impl/XPathDocumentImpl.cpp
|
|
@@ -62,7 +62,11 @@ DOMNode *XPathDocumentImpl::insertBefore
|
|
if (thisNodeImpl->isReadOnly())
|
|
throw DOMException(DOMException::NO_MODIFICATION_ALLOWED_ERR, 0, getMemoryManager());
|
|
|
|
+#if _XERCES_VERSION >= 30200
|
|
+ DOMNode* thisNode = fParent.fContainingNode;
|
|
+#else
|
|
DOMNode* thisNode = castToNode(&fParent);
|
|
+#endif
|
|
if (newChild->getOwnerDocument() != thisNode)
|
|
throw DOMException(DOMException::WRONG_DOCUMENT_ERR, 0, getMemoryManager());
|
|
|