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/dataManip/tst_psMinimize05.c

    r2081 r2204  
    1515#define ERROR_TOLERANCE 0.10
    1616float expectedParm[NUM_PARAMS];
    17 int testStatus = true;
     17psS32 testStatus = true;
    1818
    1919/*****************************************************************************
     
    3232    float coordData = 0.0;
    3333    float expData = 0.0;
    34     int i;
     34    psS32 i;
    3535
    3636    for (i=0;i<N;i++) {
     
    6262
    6363
    64 int t00()
    65 {
    66     int currentId = psMemGetId();
    67     int memLeaks = 0;
    68     int i = 0;
     64psS32 t00()
     65{
     66    psS32 currentId = psMemGetId();
     67    psS32 memLeaks = 0;
     68    psS32 i = 0;
    6969    psArray *myCoords;
    7070    psVector *myParams;
     
    8181    myCoords = psArrayAlloc(N);
    8282    for (i=0;i<N;i++) {
    83         myCoords->data[i] = (psPTR *) psVectorAlloc(2, PS_TYPE_F32);
     83        myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
    8484        ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10);
    8585        ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3);
     
    137137}
    138138
    139 int t01()
    140 {
    141     int currentId = psMemGetId();
    142     int memLeaks = 0;
    143     int i = 0;
     139psS32 t01()
     140{
     141    psS32 currentId = psMemGetId();
     142    psS32 memLeaks = 0;
     143    psS32 i = 0;
    144144    psArray *myCoords;
    145145    psVector *myParams;
     
    154154    myCoords = psArrayAlloc(N);
    155155    for (i=0;i<N;i++) {
    156         myCoords->data[i] = (psPTR *) psVectorAlloc(2, PS_TYPE_F32);
     156        myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
    157157        ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10);
    158158        ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3);
     
    208208}
    209209
    210 int t02()
    211 {
    212     int currentId = psMemGetId();
    213     int memLeaks = 0;
    214     int i = 0;
     210psS32 t02()
     211{
     212    psS32 currentId = psMemGetId();
     213    psS32 memLeaks = 0;
     214    psS32 i = 0;
    215215    psArray *myCoords;
    216216    psVector *myParams;
     
    227227    myCoords = psArrayAlloc(N);
    228228    for (i=0;i<N;i++) {
    229         myCoords->data[i] = (psPTR *) psVectorAlloc(2, PS_TYPE_F32);
     229        myCoords->data[i] = (psPtr *) psVectorAlloc(2, PS_TYPE_F32);
    230230        ((psVector *) (myCoords->data[i]))->data.F32[0] = (float) (i+10);
    231231        ((psVector *) (myCoords->data[i]))->data.F32[1] = (float) (i+3);
     
    269269}
    270270
    271 int main()
     271psS32 main()
    272272{
    273273    t00();
Note: See TracChangeset for help on using the changeset viewer.