diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /noao/digiphot/apphot/daofind/apfdfree.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'noao/digiphot/apphot/daofind/apfdfree.x')
-rw-r--r-- | noao/digiphot/apphot/daofind/apfdfree.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/noao/digiphot/apphot/daofind/apfdfree.x b/noao/digiphot/apphot/daofind/apfdfree.x new file mode 100644 index 00000000..3f1ea762 --- /dev/null +++ b/noao/digiphot/apphot/daofind/apfdfree.x @@ -0,0 +1,34 @@ +include "../lib/apphotdef.h" + +# AP_FDFREE -- Free the apphot data structure. + +procedure ap_fdfree (ap) + +pointer ap # pointer to the apphot structure + +begin + if (ap == NULL) + return + if (AP_NOISE(ap) != NULL) + call ap_noisecls (ap) + if (AP_PFIND(ap) != NULL) + call ap_fdcls (ap) + if (AP_PDISPLAY(ap) != NULL) + call ap_dispcls (ap) + if (AP_IMBUF(ap) != NULL) + call mfree (AP_IMBUF(ap), TY_REAL) + if (AP_MW(ap) != NULL) + call mw_close (AP_MW(ap)) + call mfree (ap, TY_STRUCT) +end + + +# AP_FDCLS -- Free the find data structure. + +procedure ap_fdcls (ap) + +pointer ap # pointer to the apphot structure + +begin + call mfree (AP_PFIND(ap), TY_STRUCT) +end |