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 InteropTestRound1Client.cpp
Date Tue, 05 Apr 2005 04:54:25 GMT
samisa      2005/04/04 21:54:25

  Modified:    c/tests/auto_build/testcases/client/cpp
                        InteropTestRound1Client.cpp
  Log:
  Fixed some array related problems
  
  Revision  Changes    Path
  1.8       +10 -5     ws-axis/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp
  
  Index: InteropTestRound1Client.cpp
  ===================================================================
  RCS file: /home/cvs/ws-axis/c/tests/auto_build/testcases/client/cpp/InteropTestRound1Client.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- InteropTestRound1Client.cpp	4 Apr 2005 08:15:11 -0000	1.7
  +++ InteropTestRound1Client.cpp	5 Apr 2005 04:54:24 -0000	1.8
  @@ -85,11 +85,14 @@
   		printf("failed\n");
   	// testing echoIntegerArray 
   	xsd__int_Array arrint;
  -	*(arrint.m_Array) = new int[ARRAYSIZE];
  -        arrint.m_Size = ARRAYSIZE;
  +	arrint.m_Array = new int*[ARRAYSIZE];
  +    arrint.m_Size = ARRAYSIZE;
  +	int iToSend[ARRAYSIZE];
  +
   	for (x=0;x<ARRAYSIZE;x++)
   	{
  -		 *(arrint.m_Array[x]) = x;
  +		iToSend[x] = x;
  +		 arrint.m_Array[x] = &iToSend[x];
   	}
   	printf("invoking echoIntegerArray...\n");
   	if (ws.echoIntegerArray(arrint).m_Array != NULL)
  @@ -105,11 +108,13 @@
   		printf("failed\n");
   	// testing echoFloat 
   	xsd__float_Array arrfloat;
  -	 *(arrfloat.m_Array) = new float[ARRAYSIZE];
  +	 arrfloat.m_Array = new float*[ARRAYSIZE];
   	arrfloat.m_Size = ARRAYSIZE;
  +	float fToSend[ARRAYSIZE];
   	for (x=0;x<ARRAYSIZE;x++)
   	{
  -		 *(arrfloat.m_Array[x]) = 1.1111*x;
  +		fToSend[x] = 1.1111*x;
  +		arrfloat.m_Array[x] = &fToSend[x];
   	}
   	printf("invoking echoFloatArray...\n");
   	if (ws.echoFloatArray(arrfloat).m_Array != NULL)
  
  
  

Mime
View raw message