From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- pkg/tbtables/selector/trsclose.x | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkg/tbtables/selector/trsclose.x (limited to 'pkg/tbtables/selector/trsclose.x') diff --git a/pkg/tbtables/selector/trsclose.x b/pkg/tbtables/selector/trsclose.x new file mode 100644 index 00000000..4a6ae000 --- /dev/null +++ b/pkg/tbtables/selector/trsclose.x @@ -0,0 +1,25 @@ +include "trs.h" + +#* HISTORY * +#* B.Simon 04-Nov-94 original + +# TRSCLOSE - Free table row selector code buffer + +procedure trsclose (trs) + +pointer trs # i: Pseudocode structure +#-- +string notcode "trsclose: not pointer to code" + +begin + if (TRS_IDENT(trs) != TRS_MAGIC) + call error (1, notcode) + + call rst_free (TRS_ROWS(trs)) + + call mfree (TRS_VALUE(trs), TY_DOUBLE) + call mfree (TRS_CODE(trs), TY_INT) + call mfree (trs, TY_INT) +end + + -- cgit