IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 27, 2004, 9:58:54 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/math/psMinimize.c

    r2208 r2211  
    99 *  @author GLG, MHPCC
    1010 *
    11  *  @version $Revision: 1.64 $ $Name: not supported by cvs2svn $
    12  *  @date $Date: 2004-10-27 01:21:01 $
     11 *  @version $Revision: 1.65 $ $Name: not supported by cvs2svn $
     12 *  @date $Date: 2004-10-27 19:58:54 $
    1313 *
    1414 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    254254    PS_CHECK_NULL_PTR(mySpline, NULL);
    255255    PS_CHECK_NULL_PTR(y, NULL);
    256     VECTOR_CHECK_TYPE_F32_OR_F64_RETURN_NULL(y);
     256    VECTOR_CHECK_TYPE_F32_OR_F64(y, NULL);
    257257    CONVERT_VECTOR_F64_TO_F32(y, y32, y32Static);
    258258
     
    262262        yErr32 = yErr32Static;
    263263    } else {
    264         VECTOR_CHECK_TYPE_F32_OR_F64_RETURN_NULL(yErr);
     264        VECTOR_CHECK_TYPE_F32_OR_F64(yErr, NULL);
    265265        CONVERT_VECTOR_F64_TO_F32(yErr, yErr32, yErr32Static);
    266266    }
     
    271271        x32 = x32Static;
    272272    } else {
    273         VECTOR_CHECK_TYPE_F32_OR_F64_RETURN_NULL(x);
     273        VECTOR_CHECK_TYPE_F32_OR_F64(x, NULL);
    274274        CONVERT_VECTOR_F64_TO_F32(x, x32, x32Static);
    275275    }
     
    855855    psS32 i;
    856856    psPolynomial1D *tmpPoly;
    857     PS_CHECK_NULL_1DPOLY_RETURN_NULL(myPoly);
     857    PS_CHECK_NULL_POLY(myPoly, NULL);
    858858    PS_CHECK_NULL_VECTOR(y, NULL);
    859859    PS_CHECK_EMPTY_VECTOR(y, NULL);
     
    865865    static psVector *yErr64Static = NULL;
    866866
    867     VECTOR_CHECK_TYPE_F32_OR_F64_RETURN_NULL(y);
     867    VECTOR_CHECK_TYPE_F32_OR_F64(y, NULL);
    868868    CONVERT_VECTOR_F32_TO_F64(y, y64, y64Static);
    869869
     
    873873        yErr64 = yErr64Static;
    874874    } else {
    875         VECTOR_CHECK_TYPE_F32_OR_F64_RETURN_NULL(yErr);
     875        VECTOR_CHECK_TYPE_F32_OR_F64(yErr, NULL);
    876876        CONVERT_VECTOR_F32_TO_F64(yErr, yErr64, yErr64Static);
    877877    }
     
    885885        x64 = x64Static;
    886886    } else {
    887         VECTOR_CHECK_TYPE_F32_OR_F64_RETURN_NULL(x);
     887        VECTOR_CHECK_TYPE_F32_OR_F64(x, NULL);
    888888        CONVERT_VECTOR_F32_TO_F64(x, x64, x64Static);
    889889    }
Note: See TracChangeset for help on using the changeset viewer.