IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2004, 10:07:17 AM (22 years ago)
Author:
gusciora
Message:

I've been unifying the naming conventions for various macros that check
functions parameters for type, size, non-NULL ...

File:
1 edited

Legend:

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

    r2206 r2212  
    1010*  @author George Gusciora, MHPCC
    1111*
    12 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
    13 *  @date $Date: 2004-10-27 01:15:47 $
     12*  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
     13*  @date $Date: 2004-10-27 20:07:17 $
    1414*
    1515*  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8181                               const psPlane* coords)
    8282{
    83     PS_CHECK_NULL_PTR(transform, NULL);
    84     PS_CHECK_NULL_PTR(coords, NULL);
     83    PS_PTR_CHECK_NULL(transform, NULL);
     84    PS_PTR_CHECK_NULL(coords, NULL);
    8585    if (out == NULL) {
    8686        out = (psPlane* ) psAlloc(sizeof(psPlane));
     
    117117                             float magnitude)
    118118{
    119     PS_CHECK_NULL_PTR(transform, NULL);
    120     PS_CHECK_NULL_PTR(coords, NULL);
     119    PS_PTR_CHECK_NULL(transform, NULL);
     120    PS_PTR_CHECK_NULL(coords, NULL);
    121121    if (out == NULL) {
    122122        out = (psPlane* ) psAlloc(sizeof(psPlane));
     
    156156                                 const psSphere* coord)
    157157{
    158     PS_CHECK_NULL_PTR(transform, NULL);
    159     PS_CHECK_NULL_PTR(coord, NULL);
     158    PS_PTR_CHECK_NULL(transform, NULL);
     159    PS_PTR_CHECK_NULL(coord, NULL);
    160160    double sinY = 0.0;
    161161    double cosY = 0.0;
     
    228228                   const psProjection* projection)
    229229{
    230     PS_CHECK_NULL_PTR(coord, NULL);
    231     PS_CHECK_NULL_PTR(projection, NULL);
     230    PS_PTR_CHECK_NULL(coord, NULL);
     231    PS_PTR_CHECK_NULL(projection, NULL);
    232232
    233233    float R = 0.0;
     
    280280                      const psProjection* projection)
    281281{
    282     PS_CHECK_NULL_PTR(coord, NULL);
    283     PS_CHECK_NULL_PTR(projection, NULL);
     282    PS_PTR_CHECK_NULL(coord, NULL);
     283    PS_PTR_CHECK_NULL(projection, NULL);
    284284
    285285    float R = 0.0;
     
    348348                            psSphereOffsetUnit unit)
    349349{
    350     PS_CHECK_NULL_PTR(position1, NULL);
    351     PS_CHECK_NULL_PTR(position2, NULL);
     350    PS_PTR_CHECK_NULL(position1, NULL);
     351    PS_PTR_CHECK_NULL(position2, NULL);
    352352
    353353    psPlane* lin;
     
    416416                            psSphereOffsetUnit unit)
    417417{
    418     PS_CHECK_NULL_PTR(position, NULL);
    419     PS_CHECK_NULL_PTR(offset, NULL);
     418    PS_PTR_CHECK_NULL(position, NULL);
     419    PS_PTR_CHECK_NULL(offset, NULL);
    420420
    421421    psPlane lin;
Note: See TracChangeset for help on using the changeset viewer.