dbertoni    01/04/11 13:30:07

  Modified:    c/src/TestXSLT process.cpp
  Log:
  Added back OS/390 stuff and moved initialization of Xerces.
  
  Revision  Changes    Path
  1.60      +20 -4     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.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- process.cpp       2001/04/11 18:29:21     1.59
  +++ process.cpp       2001/04/11 20:30:06     1.60
  @@ -347,6 +347,22 @@
   
   
   
  +#if defined(OS390)
  +#undef stricmp                                                   
  +#include <strings.h>                                             
  +                                                                  
  +int
  +stricmp(
  +                     const char*             str1,
  +                     const char*             str2)     
  +{
  +     return strcasecmp(str1, str2);
  +}
  +
  +#endif
  +
  +
  +
   bool
   getArgs(
                        int                             argc,
  @@ -1126,8 +1142,6 @@
        QuantifyStopRecordingData();
   #endif
   
  -     XMLPlatformUtils::Initialize();
  -
        int                             theResult = 0;
   
        CmdLineParams   theParams;
  @@ -1157,6 +1171,8 @@
                }
                else
                {
  +                     XMLPlatformUtils::Initialize();
  +
                        try
                        {
                                theResult = xsltMain(theParams);
  @@ -1291,10 +1307,10 @@
                                }
                        }
   #endif
  +                     
  +                     XMLPlatformUtils::Terminate();
                }
        }
  -
  -     XMLPlatformUtils::Terminate();
   
        return theResult;
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to