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
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/astro/psCoord.c

    r8245 r9538  
    1010*  @author GLG, MHPCC
    1111*
    12 *  @version $Revision: 1.123 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2006-08-09 02:26:44 $
     12*  @version $Revision: 1.124 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2006-10-13 21:13:47 $
    1414*
    1515*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    222222bool psMemCheckPlane(psPtr ptr)
    223223{
    224     if (!is_psType(ptr)) {
    225         return false;
    226     }
     224    PS_ASSERT_PTR(ptr, false);
    227225    return ( psMemGetDeallocator(ptr) == (psFreeFunc)planeFree );
    228226}
     
    230228bool psMemCheckSphere(psPtr ptr)
    231229{
    232     if (!is_psType(ptr)) {
    233         return false;
    234     }
     230    PS_ASSERT_PTR(ptr, false);
    235231    return ( psMemGetDeallocator(ptr) == (psFreeFunc)sphereFree );
    236232}
     
    238234bool psMemCheckCube(psPtr ptr)
    239235{
    240     if (!is_psType(ptr)) {
    241         return false;
    242     }
     236    PS_ASSERT_PTR(ptr, false);
    243237    return ( psMemGetDeallocator(ptr) == (psFreeFunc)cubeFree );
    244238}
     
    246240bool psMemCheckPlaneTransform(psPtr ptr)
    247241{
    248     if (!is_psType(ptr)) {
    249         return false;
    250     }
     242    PS_ASSERT_PTR(ptr, false);
    251243    return ( psMemGetDeallocator(ptr) == (psFreeFunc)planeTransformFree );
    252244}
     
    295287bool psMemCheckPlaneDistort(psPtr ptr)
    296288{
    297     if (!is_psType(ptr)) {
    298         return false;
    299     }
     289    PS_ASSERT_PTR(ptr, false);
    300290    return ( psMemGetDeallocator(ptr) == (psFreeFunc)planeDistortFree );
    301291}
     
    353343bool psMemCheckProjection(psPtr ptr)
    354344{
    355     if (!is_psType(ptr)) {
    356         return false;
    357     }
     345    PS_ASSERT_PTR(ptr, false);
    358346    return ( psMemGetDeallocator(ptr) == (psFreeFunc)projectionFree );
    359347}
Note: See TracChangeset for help on using the changeset viewer.