IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6445 for trunk/psLib/src/types


Ignore:
Timestamp:
Feb 16, 2006, 5:24:47 PM (20 years ago)
Author:
drobbin
Message:

Changed psArrayAlloc to set ->n = 0. Updated corresponding functions & tests.

Location:
trunk/psLib/src/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/types/psArray.c

    r5530 r6445  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2005-11-16 23:06:35 $
     11 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-02-17 03:24:46 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6464
    6565    P_PSARRAY_SET_NALLOC(psArr,nalloc);
    66     psArr->n = nalloc;
    67 
     66    psArr->n = 0;
     67    //    psArr->n = nalloc;
    6868    // Create vector data array
    6969    psArr->data = psAlloc(nalloc * sizeof(psPtr));
     
    169169}
    170170
    171 /// Set an element in the array.
     171// Set an element in the array.
    172172bool psArraySet(psArray* array,                      ///< input array to set element in
    173173                long position,                      ///< the element position to set
     
    213213}
    214214
    215 /// Get an element in the array.
     215// Get an element in the array.
    216216psPtr psArrayGet(const psArray* array,
    217217                 long position )
  • trunk/psLib/src/types/psLookupTable.c

    r6204 r6445  
    77*  @author Ross Harman, MHPCC
    88*
    9 *  @version $Revision: 1.28 $ $Name: not supported by cvs2svn $
    10 *  @date $Date: 2006-01-26 21:10:22 $
     9*  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
     10*  @date $Date: 2006-02-17 03:24:46 $
    1111*
    1212*  Copyright 2004-2005 Maui High Performance Computing Center, Univ. of Hawaii
     
    615615            psS32 type = ((psVector*)(vectors->data[j]))->type.type;
    616616            newValueArray->data[j] = psVectorAlloc(numRows,type);
     617            newValueArray->n++;
    617618        }
    618619
Note: See TracChangeset for help on using the changeset viewer.