aboutsummaryrefslogtreecommitdiff
path: root/pkg/utilities/nttools/tjoin/closeiotab.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/utilities/nttools/tjoin/closeiotab.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
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