IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 6, 2007, 3:15:50 PM (19 years ago)
Author:
jhoblitt
Message:

change psFree() macro to *NOT* cast all pointers to (void *)
change psFree() macro to not append a ';' to the line
change all psMemory functions to pass file, lineno, func as the first 3 params

File:
1 edited

Legend:

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

    r10999 r11674  
    1010 *  @author EAM, IfA
    1111 *
    12  *  @version $Revision: 1.29 $ $Name: not supported by cvs2svn $
    13  *  @date $Date: 2007-01-09 22:38:53 $
     12 *  @version $Revision: 1.30 $ $Name: not supported by cvs2svn $
     13 *  @date $Date: 2007-02-07 01:15:49 $
    1414 *
    1515 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    12211221        if (!psVectorFitPolynomial2D(poly, mask, maskValue, f, fErr, x, y)) {
    12221222            psError(PS_ERR_UNKNOWN, false, "Could not fit a polynomial to the data.  Returning false.\n");
    1223             psFree(resid)
     1223            psFree(resid);
    12241224            return false;
    12251225        }
     
    12281228        if (fit == NULL) {
    12291229            psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial3DEvalVector().  Returning NULL.\n");
    1230             psFree(resid)
     1230            psFree(resid);
    12311231            return false;
    12321232        }
     
    12531253        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    12541254            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    1255             psFree(resid)
    1256             psFree(fit)
     1255            psFree(resid);
     1256            psFree(fit);
    12571257            return false;
    12581258        }
     
    16701670        if (!psVectorFitPolynomial3D(poly, mask, maskValue, f, fErr, x, y, z)) {
    16711671            psError(PS_ERR_UNKNOWN, false, "Could not fit a polynomial to the data.  Returning NULL.\n");
    1672             psFree(resid)
     1672            psFree(resid);
    16731673            return false;
    16741674        }
     
    16761676        if (fit == NULL) {
    16771677            psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial3DEvalVector().  Returning NULL.\n");
    1678             psFree(resid)
     1678            psFree(resid);
    16791679            return false;
    16801680        }
     
    17001700        if (!psVectorStats(stats, resid, NULL, mask, maskValue)) {
    17011701            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    1702             psFree(resid)
    1703             psFree(fit)
     1702            psFree(resid);
     1703            psFree(fit);
    17041704            return false;
    17051705        }
     
    21442144        if (!psVectorFitPolynomial4D (poly, mask, maskValue, f, fErr, x, y, z, t)) {
    21452145            psError(PS_ERR_UNKNOWN, false, "Could not fit a polynomial to the data.  Returning NULL.\n");
    2146             psFree(resid)
     2146            psFree(resid);
    21472147            return false;
    21482148        }
     
    21512151        if (fit == NULL) {
    21522152            psError(PS_ERR_UNKNOWN, false, "Could not call psPolynomial4DEvalVector().  Returning NULL.\n");
    2153             psFree(resid)
     2153            psFree(resid);
    21542154            return false;
    21552155        }
     
    21752175        if (!psVectorStats (stats, resid, NULL, mask, maskValue)) {
    21762176            psError(PS_ERR_UNKNOWN, false, "Could not compute statistics on the resid vector.  Returning NULL.\n");
    2177             psFree(resid)
    2178             psFree(fit)
     2177            psFree(resid);
     2178            psFree(fit);
    21792179            return false;
    21802180        }
Note: See TracChangeset for help on using the changeset viewer.