aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/tjoin/closeiotab.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /pkg/utilities/nttools/tjoin/closeiotab.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/utilities/nttools/tjoin/closeiotab.x')
-rw-r--r--pkg/utilities/nttools/tjoin/closeiotab.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/utilities/nttools/tjoin/closeiotab.x b/pkg/utilities/nttools/tjoin/closeiotab.x
new file mode 100644
index 00000000..8d9ff7df
--- /dev/null
+++ b/pkg/utilities/nttools/tjoin/closeiotab.x
@@ -0,0 +1,22 @@
+include "tjoin.h"
+
+# B.Simon 16-Apr-99 first code
+
+# CLOSE_IOTAB -- Close table and release data structure describing it
+
+procedure close_iotab (tj)
+
+pointer tj # i: Data structure describing table
+#--
+
+begin
+ call tbtclo (TJ_TAB(tj))
+
+ if (TJ_JPTR(tj) != NULL)
+ call mfree (TJ_JPTR(tj), TY_INT)
+
+ if (TJ_DPTR(tj) != NULL)
+ call mfree (TJ_DPTR(tj), TY_INT)
+
+ call mfree (tj, TY_INT)
+end