You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by au...@locus.apache.org on 2000/12/01 17:15:43 UTC

cvs commit: xml-xalan/c/samples/XPathWrapper TestDriver.cpp XPathWrapper.cpp

auriemma    00/12/01 08:15:42

  Modified:    c/samples/XPathWrapper TestDriver.cpp XPathWrapper.cpp
  Log:
  HP port based on work from Trevor Smigiel and Troy Heber.
  
  Revision  Changes    Path
  1.5       +11 -2     xml-xalan/c/samples/XPathWrapper/TestDriver.cpp
  
  Index: TestDriver.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/XPathWrapper/TestDriver.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- TestDriver.cpp	2000/09/22 17:54:38	1.4
  +++ TestDriver.cpp	2000/12/01 16:15:40	1.5
  @@ -2,12 +2,21 @@
   
   
   
  +#include <util/XMLException.hpp>
  +
  +
  +
   #include <PlatformSupport/DOMStringHelper.hpp>
   
   
   
  -#include <iostream>
  +#if defined(XALAN_OLD_STREAM_HEADERS)
  +#include <fstream.h>
  +#include <iostream.h>
  +#else
   #include <fstream>
  +#include <iostream>
  +#endif
   
   
   
  @@ -66,7 +75,7 @@
   		for (size_t i=0; i<len; i++)
   			cout << "item " << (i+1) << "= \"" << result[i] << "\"" << endl;
   	}
  -	catch(const XMLException&)
  +	catch(const XMLException& e)
   	{
   		cerr << "Exception caught!  Exiting..." << endl;
   	}
  
  
  
  1.10      +6 -0      xml-xalan/c/samples/XPathWrapper/XPathWrapper.cpp
  
  Index: XPathWrapper.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/samples/XPathWrapper/XPathWrapper.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- XPathWrapper.cpp	2000/11/27 20:05:12	1.9
  +++ XPathWrapper.cpp	2000/12/01 16:15:41	1.10
  @@ -4,7 +4,13 @@
   
   #include <vector>
   #include <cassert>
  +
  +
  +#if defined(XALAN_OLD_STREAM_HEADERS)
  +#include <iostream.h>
  +#else
   #include <iostream>
  +#endif