IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 13, 2006, 11:13:48 AM (20 years ago)
Author:
Paul Price
Message:

Synchronising with SDRS, and cleaning up:

  • Replaced is_psType() with PS_ASSERT_PTR() throughout psLib.
  • Changed "char *" to "psString" where appropriate in psDB and a few other places (to indicate pointers on the PS memory system).
  • Removed psLogArguments and psTraceArguments (functionality in psArgumentVerbosity).
  • Renamed psMetadataLookupMD to psMetadataLookupMetadata (it was about time...). Similarly with the psPolynomial?D{From,To}MD functions.
  • Removed psMetadataRemove() since it is ambiguous about what's removed --- use psMetadataRemove{Key,Index}.
  • psArrayRemoveByPos --> psArrayRemoveIndex
  • psArrayRemove --> psArrayRemoveData
Location:
trunk/psLib/src/mathtypes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/mathtypes/psImage.c

    r8627 r9538  
    99 *  @author Ross Harman, MHPCC
    1010 *
    11  *  @version $Revision: 1.114 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2006-08-26 04:34:28 $
     11 *  @version $Revision: 1.115 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2006-10-13 21:13:48 $
    1313 *
    1414 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    4343        int ref = ptr->refCounter;
    4444        ptr->refCounter = 2;  // make sure psFree is not retriggered
    45         psArrayRemove(image->parent->children,image);
     45        psArrayRemoveData(image->parent->children,image);
    4646        ptr->refCounter = ref; // restore previous count (not assuming zero, but should be)
    4747
     
    110110bool psMemCheckImage(psPtr ptr)
    111111{
    112     if (!is_psType(ptr)) {
    113         return false;
    114     }
     112    PS_ASSERT_PTR(ptr, false);
    115113    return ( psMemGetDeallocator(ptr) == (psFreeFunc)imageFree );
    116114}
  • trunk/psLib/src/mathtypes/psScalar.c

    r8232 r9538  
    88 *  @author Ross Harman, MHPCC
    99 *
    10  *  @version $Revision: 1.24 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2006-08-08 23:32:23 $
     10 *  @version $Revision: 1.25 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2006-10-13 21:13:48 $
    1212 *
    1313 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    1919#include "psLogMsg.h"
    2020#include "psAbort.h"
    21 
     21#include "psAssert.h"
    2222
    2323
     
    8989bool psMemCheckScalar(psPtr ptr)
    9090{
    91     if (!is_psType(ptr)) {
    92         return false;
    93     }
     91    PS_ASSERT_PTR(ptr, NULL);
    9492    return ( psMemGetDeallocator(ptr) == (psFreeFunc)scalarFree );
    9593}
  • trunk/psLib/src/mathtypes/psVector.c

    r8627 r9538  
    99*  @author Robert DeSonia, MHPCC
    1010*
    11 *  @version $Revision: 1.82 $ $Name: not supported by cvs2svn $
    12 *  @date $Date: 2006-08-26 04:34:28 $
     11*  @version $Revision: 1.83 $ $Name: not supported by cvs2svn $
     12*  @date $Date: 2006-10-13 21:13:48 $
    1313*
    1414*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2626#include "psLogMsg.h"
    2727#include "psCompare.h"
    28 
     28#include "psAssert.h"
    2929
    3030
     
    6363bool psMemCheckVector(psPtr ptr)
    6464{
    65     if (!is_psType(ptr)) {
    66         return false;
    67     }
     65    PS_ASSERT_PTR(ptr, false);
    6866    return ( psMemGetDeallocator(ptr) == (psFreeFunc)vectorFree );
    6967}
Note: See TracChangeset for help on using the changeset viewer.