axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject cvs commit: ws-axis/c/tests/auto_build/testcases/client/cpp inquire_v2Client.cpp
Date Thu, 10 Mar 2005 09:22:02 GMT
samisa      2005/03/10 01:22:02

  Modified:    c/tests/auto_build/testcases/client/cpp inquire_v2Client.cpp
  Log:
  Applied patch to fix windows compilation problems.
  
  Revision  Changes    Path
  1.6       +7 -6      ws-axis/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp
  
  Index: inquire_v2Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/inquire_v2Client.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- inquire_v2Client.cpp	1 Mar 2005 05:06:24 -0000	1.5
  +++ inquire_v2Client.cpp	10 Mar 2005 09:22:01 -0000	1.6
  @@ -23,10 +23,8 @@
    * @author Samisa Abeysinghe (sabeysinghe@virtusa.com)
    */
   #include <string>
  -#include <pthread.h>
   #include <stdio.h>
   #include <stdlib.h>
  -#include <unistd.h>
   #include <axis/AxisException.hpp>
   using namespace std;
   
  @@ -58,7 +56,8 @@
           tModelKey_Array arrtModelKeys;
           arrtModelKeys.m_Array = new char *[ARRAYSIZE];
           arrtModelKeys.m_Size = ARRAYSIZE;
  -        for (int i = 0; i < ARRAYSIZE; i++)
  +        int i = 0;
  +        for (i = 0; i < ARRAYSIZE; i++)
           {
               arrtModelKeys.m_Array[i] = buffer;
           }
  @@ -67,7 +66,7 @@
           printf("invoking get_tModelDetail...\n");
           tModel_Array result = ws->get_tModelDetail(arrtModelKeys, cpname);
           printf("tModel_Array size = %d\n", result.m_Size);
  -        for( int i = 0; i < result.m_Size; i++ ) 
  +        for( i = 0; i < result.m_Size; i++ ) 
           {
               printf("tModel %d...\n", i + 1 );
               printf("\t tModel Key Ref = %s\n", result.m_Array[i].tModelKey_Ref);
  @@ -88,7 +87,7 @@
           businessKey_Array arrBusinessKeys;
           arrBusinessKeys.m_Array = new char *[ARRAYSIZE];
           arrBusinessKeys.m_Size = ARRAYSIZE;
  -        for (int i = 0; i < ARRAYSIZE; i++)
  +        for (i = 0; i < ARRAYSIZE; i++)
           {
               arrBusinessKeys.m_Array[i] = buffer;
           }
  @@ -98,7 +97,7 @@
           businessEntity_Array businessEntities = ws->get_businessDetail(arrBusinessKeys,
cpname);
           //businessEntity_Array get_businessDetail(businessKey_Array Value0,xsd__string
Value1);
           printf("businessEntity_Array size = %d\n", businessEntities.m_Size);
  -        for( int i = 0; i < businessEntities.m_Size; i++ ) 
  +        for( i = 0; i < businessEntities.m_Size; i++ ) 
           {
               printf( "Business Entity %d\n", i + 1 );
               printf("\t Business Key Ref = %s\n", businessEntities.m_Array[i].businessKey_Ref);
  @@ -148,4 +147,6 @@
       {
           printf("Exception caught : %s\n", e.what());
       }
  +
  +    return 0;
   }
  
  
  

Mime
View raw message