Return-Path: Mailing-List: contact xalan-cvs-help@xml.apache.org; run by ezmlm Delivered-To: mailing list xalan-cvs@xml.apache.org Received: (qmail 46946 invoked by uid 1034); 18 Apr 2000 15:23:44 -0000 Date: 18 Apr 2000 15:23:44 -0000 Message-ID: <20000418152344.46945.qmail@locus.apache.org> From: dbertoni@locus.apache.org To: xml-xalan-cvs@apache.org Subject: cvs commit: xml-xalan/c/src/TestXSLT process.cpp dbertoni 00/04/18 08:23:44 Modified: c/src/TestXSLT process.cpp Log: Fixed some issues with debugging code. Revision Changes Path 1.13 +24 -17 xml-xalan/c/src/TestXSLT/process.cpp Index: process.cpp =================================================================== RCS file: /home/cvs/xml-xalan/c/src/TestXSLT/process.cpp,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- process.cpp 2000/04/12 19:40:46 1.12 +++ process.cpp 2000/04/18 15:23:44 1.13 @@ -792,26 +792,33 @@ for(unsigned int i = 0; i < theInstanceCount; ++i) { const XalanNode* const theInstance = theNodes[i]; - assert(theInstance != 0); - cout << "(" - << hex - << theInstance - << ") Node name: \"" - << theInstance->getNodeName() - << "\" Node value: \"" - << theInstance->getNodeValue() - << "\"" -#if defined(XALAN_RTTI_AVAILABLE) - << " Type: \"" - << typeid(*theInstance).name() - << "\"" -#endif - << endl - << endl; + if(theInstance == 0) + { + cout << "No instance information is available..." + << endl; + } + else + { + cout << "(" + << hex + << theInstance + << ") Node name: \"" + << theInstance->getNodeName() + << "\" Node value: \"" + << theInstance->getNodeValue() + << "\"" + #if defined(XALAN_RTTI_AVAILABLE) + << " Type: \"" + << typeid(*theInstance).name() + << "\"" + #endif + << endl + << endl; + } } -#if defined(INTERACTIVE) +#if defined(XALAN_DEBUG_INTERACTIVE) cout << "Hit to continue..." << endl << endl;