aboutsummaryrefslogtreecommitdiff
path: root/pkg/xtools/gtools/gtfree.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /pkg/xtools/gtools/gtfree.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'pkg/xtools/gtools/gtfree.x')
-rw-r--r--pkg/xtools/gtools/gtfree.x26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkg/xtools/gtools/gtfree.x b/pkg/xtools/gtools/gtfree.x
new file mode 100644
index 00000000..da4bec03
--- /dev/null
+++ b/pkg/xtools/gtools/gtfree.x
@@ -0,0 +1,26 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include "gtools.h"
+
+# GT_FREE -- Free extended graphics tools structure.
+
+procedure gt_free (gt)
+
+pointer gt # Graphic tools pointer
+
+begin
+ if (gt == NULL)
+ return
+
+ call mfree (GT_PARAMS(gt), TY_CHAR)
+ call mfree (GT_TITLE(gt), TY_CHAR)
+ call mfree (GT_SUBTITLE(gt), TY_CHAR)
+ call mfree (GT_COMMENTS(gt), TY_CHAR)
+ call mfree (GT_XLABEL(gt), TY_CHAR)
+ call mfree (GT_YLABEL(gt), TY_CHAR)
+ call mfree (GT_XUNITS(gt), TY_CHAR)
+ call mfree (GT_YUNITS(gt), TY_CHAR)
+ call mfree (GT_XFORMAT(gt), TY_CHAR)
+ call mfree (GT_YFORMAT(gt), TY_CHAR)
+ call mfree (gt, TY_STRUCT)
+end