IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 14, 2006, 4:57:12 PM (20 years ago)
Author:
drobbin
Message:

Added error handling to memory checking functions. Will hopefully avoid segfaults and abort calls now when passed in native types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psStats.c

    r7870 r7914  
    1616 * use ->min and ->max (PS_STAT_USE_RANGE)
    1717 *
    18  *  @version $Revision: 1.177 $ $Name: not supported by cvs2svn $
    19  *  @date $Date: 2006-07-12 03:46:11 $
     18 *  @version $Revision: 1.178 $ $Name: not supported by cvs2svn $
     19 *  @date $Date: 2006-07-15 02:57:12 $
    2020 *
    2121 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    16801680bool psMemCheckStats(psPtr ptr)
    16811681{
     1682    if (!is_psType(ptr)) {
     1683        return false;
     1684    }
    16821685    return ( psMemGetDeallocator(ptr) == (psFreeFunc)statsFree );
    16831686}
     
    17881791bool psMemCheckHistogram(psPtr ptr)
    17891792{
     1793    if (!is_psType(ptr)) {
     1794        return false;
     1795    }
    17901796    return ( psMemGetDeallocator(ptr) == (psFreeFunc)histogramFree );
    17911797}
Note: See TracChangeset for help on using the changeset viewer.