IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 14, 2004, 10:01:52 AM (22 years ago)
Author:
desonia
Message:

Updated files in src/collections to use new psError functionality. Also
cleaned up the code where needed, removing unnecessary error conditions,
etc.

File:
1 edited

Legend:

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

    r1651 r1807  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-08-27 23:54:33 $
     11 *  @version $Revision: 1.15 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-09-14 20:01:52 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psArray.h"
    2727#include "psLogMsg.h"
     28
     29#include "psCollectionsErrors.h"
    2830
    2931/*****************************************************************************/
     
    4345    psArray* psArr = NULL;
    4446
    45     // Invalid nalloc
    46     if (nalloc < 1) {
    47         psError(__func__, "Invalid value for nalloc. nalloc: %d\n", nalloc);
    48         return NULL;
    49     }
    5047    // Create vector struct
    5148    psArr = (psArray* ) psAlloc(sizeof(psArray));
     
    6360psArray* psArrayRealloc(unsigned int nalloc, psArray* restrict in)
    6461{
    65     // Invalid nalloc
    66     if (nalloc < 1) {
    67         psError(__func__, "Invalid value for realloc (%d)\n", nalloc);
    68         return NULL;
    69     }
    70 
    7162    if (in == NULL) {
    7263        return psArrayAlloc(nalloc);
Note: See TracChangeset for help on using the changeset viewer.