diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /pkg/tbtables/tbrchg.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/tbtables/tbrchg.x')
-rw-r--r-- | pkg/tbtables/tbrchg.x | 25 |
1 files changed, 25 insertions, 0 deletions
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 <tbset.h> +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 |