IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 24, 2006, 12:55:05 PM (20 years ago)
Author:
Paul Price
Message:

Following today's meeting, we agreed that psVectorAlloc (and therefore
psArrayAlloc also) shall set the number of elements in use to equal the
number of elements allocated. We introduce new functions,
psVectorAllocEmpty and psArrayAllocEmpty, that allocate a vector and set
the length to zero.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psError.c

    r9623 r9730  
    1111 *  @author Eric Van Alst, MHPCC
    1212 *
    13  *  @version $Revision: 1.40 $ $Name: not supported by cvs2svn $
    14  *  @date $Date: 2006-10-18 15:26:33 $
     13 *  @version $Revision: 1.41 $ $Name: not supported by cvs2svn $
     14 *  @date $Date: 2006-10-24 22:52:56 $
    1515 *
    1616 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    8484    if ((errorStack = pthread_getspecific(errorStack_key)) == NULL) {
    8585        // allocate the error stack
    86         errorStack = psArrayAlloc(MAX_ERROR_STACK_SIZE);
     86        errorStack = psArrayAllocEmpty(MAX_ERROR_STACK_SIZE);
    8787        p_psMemSetPersistent(errorStack, true);
    8888        p_psMemSetPersistent(errorStack->data, true);
Note: See TracChangeset for help on using the changeset viewer.