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 <Enter> to continue..."
<< endl
<< endl;
