diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /math/curfit/cvfreed.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'math/curfit/cvfreed.x')
-rw-r--r-- | math/curfit/cvfreed.x | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/math/curfit/cvfreed.x b/math/curfit/cvfreed.x new file mode 100644 index 00000000..42971c86 --- /dev/null +++ b/math/curfit/cvfreed.x @@ -0,0 +1,37 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include "dcurfitdef.h" + +# CVFREE -- Procedure to free the curve descriptor + +procedure dcvfree (cv) + +pointer cv # the curve descriptor + +errchk mfree + +begin + if (cv == NULL) + return + + if (CV_XBASIS(cv) != NULL) + call mfree (CV_XBASIS(cv), TY_DOUBLE) + if (CV_VECTOR(cv) != NULL) + call mfree (CV_VECTOR(cv), TY_DOUBLE) + if (CV_COEFF(cv) != NULL) + call mfree (CV_COEFF(cv), TY_DOUBLE) + + if (CV_BASIS(cv) != NULL) + call mfree (CV_BASIS(cv), TY_DOUBLE) + if (CV_LEFT(cv) != NULL) + call mfree (CV_LEFT(cv), TY_INT) + if (CV_WY(cv) != NULL) + call mfree (CV_WY(cv), TY_DOUBLE) + + if (CV_MATRIX(cv) != NULL) + call mfree (CV_MATRIX(cv), TY_DOUBLE) + if (CV_CHOFAC(cv) != NULL) + call mfree (CV_CHOFAC(cv), TY_DOUBLE) + + call mfree (cv, TY_STRUCT) +end |