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/tbrchg.x | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkg/tbtables/tbrchg.x (limited to 'pkg/tbtables/tbrchg.x') diff --git a/pkg/tbtables/tbrchg.x b/pkg/tbtables/tbrchg.x new file mode 100644 index 00000000..6c22be6e --- /dev/null +++ b/pkg/tbtables/tbrchg.x @@ -0,0 +1,25 @@ +include +include "tbtables.h" +include "tblerr.h" + +# tbrchg -- change allocated number of rows +# For row-ordered tables this procedure does nothing. +# +# Phil Hodge, 6-Feb-1992 Include only section for column ordered. + +procedure tbrchg (tp, allrows) + +pointer tp # Pointer to table descriptor +int allrows # The new value for the allocated number of rows + +errchk tbtchs + +begin + if (TB_TYPE(tp) == TBL_TYPE_S_COL) { + if (TB_IS_OPEN(tp)) { + call tbtchs (tp, -1, -1, -1, allrows) + } else { + TB_ALLROWS(tp) = allrows + } + } +end -- cgit