You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Pitt, Esmond" <pi...@anz.com> on 2002/09/19 03:00:40 UTC

RE: Candidate 1.4 distributions - bugs

I have built this with MSC7. The only compile-time problem I found was in
XalanDOM/XalanDOMString.hpp, which has:

#if defined(XALAN_INLINE_INITIALIZATION)
	static const size_type	npos = ~0u;
#else
	enum { npos = -1 };
#endif

XalanDOMString.cpp has this:

#if defined(XALAN_INLINE_INITIALIZATION)
const XalanDOMString::size_type     XalanDOMString::npos;
#endif

The latter is both incorrect & pointless if XALAN_INLINE_INITIALIZATION is
defined. It should be this in the hpp:

#if defined(XALAN_INLINE_INITIALIZATION)
	static const size_type	npos = ~0u;
#else
	static const size_type	npos;
#endif

and this in the cpp:

#if !defined(XALAN_INLINE_INITIALIZATION)
const XalanDOMString::size_type     XalanDOMString::npos = ~0u;
#endif

thus agreeing with XPath/NodeRefListBase.?pp and PlatformSupport/Writer.?pp.
Alternatively the original form of the hpp file can be kept and the cpp
stuff completely eliminated.

PlatformSupport/FormatterListener.cpp has a related problem in that the
condition leg should be empty if XALAN_INLINE_INITIALIZATION is defined,
i.e. the same solution applies. For symmetry this can also be applied to
XPath/XPathExpression.?pp.

I have a set of VC7 project files if anyone wants them.

Regards

Esmond Pitt

-----Original Message-----
From: David N Bertoni/Cambridge/IBM [mailto:david_n_bertoni@us.ibm.com]
Sent: Thursday, 19 September 2002 2:49 AM
To: xalan-dev@xml.apache.org
Subject: Candidate 1.4 distributions






Hi all,

The candidate distributions for the 1.4 release are available in:

   http://xml.apache.org/dist/xalan-c/candidate/

We'll be doing some smoke-testing on the distributions tomorrow.  I
encourage anyone who's interested to download the distributions and report
and problems you may have.  If our testing doesn't uncover anything by
tomorrow evening, we'll consider the release official, I'll move them to
the main distribution directory, and I'll archive the 1.3 distributions.

Dave