IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 2:57:34 PM (22 years ago)
Author:
desonia
Message:

converted native C types to ps Types, where practical.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/test/collections/tst_psVector.c

    r1920 r2204  
    1414 *  @author  Ross Harman, MHPCC
    1515 *
    16  *  @version $Revision: 1.4 $  $Name: not supported by cvs2svn $
    17  *  @date  $Date: 2004-09-28 23:26:49 $
     16 *  @version $Revision: 1.5 $  $Name: not supported by cvs2svn $
     17 *  @date  $Date: 2004-10-27 00:57:33 $
    1818 *
    1919 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2424#include "psTest.h"
    2525
    26 int main(int argc,
    27          char* argv[])
     26psS32 main(psS32 argc,
     27           char* argv[])
    2828{
    2929
     
    4040    // Test B - Add data to integer vector
    4141    printPositiveTestHeader(stdout, "psVector", "Add data to S32 vector");
    42     for(int i = 0; i < 5; i++) {
     42    for(psS32 i = 0; i < 5; i++) {
    4343        psVec->data.S32[i] = i*10;
    4444        printf("Elem %d = %d\n", i, psVec->data.S32[i]);
     
    5353    psVec = psVectorRealloc(psVec,10);
    5454    printf("Adding more elements to S32 vector...\n");
    55     for(int i = 5; i < 10; i++) {
     55    for(psS32 i = 5; i < 10; i++) {
    5656        psVec->data.S32[i] = i*10;
    5757        psVec->n++;
     
    6767    psVec = psVectorRealloc(psVec,3);
    6868    printf("Vector size = %d\n", psVec->nalloc);
    69     for(int i = 0; i < 3; i++) {
     69    for(psS32 i = 0; i < 3; i++) {
    7070        printf("Elem %d = %d\n", i, psVec->data.S32[i]);
    7171    }
     
    7878    printPositiveTestHeader(stdout, "psVector", "Free S32 vector");
    7979    psFree(psVec);
    80     int leaks = psMemCheckLeaks(0, NULL, stdout);
     80    psS32 leaks = psMemCheckLeaks(0, NULL, stdout);
    8181    if(leaks != 0) {
    8282        printf("ERROR: Found %d memory leaks\n",leaks);
    8383    }
    84     int nBad = psMemCheckCorruption(0);
     84    psS32 nBad = psMemCheckCorruption(0);
    8585    if(nBad) {
    8686        printf("ERROR: Found %d bad memory blocks\n", nBad);
Note: See TracChangeset for help on using the changeset viewer.