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 /noao/digiphot/photcal/mctable/mctgetbuf.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'noao/digiphot/photcal/mctable/mctgetbuf.x')
-rw-r--r-- | noao/digiphot/photcal/mctable/mctgetbuf.x | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/noao/digiphot/photcal/mctable/mctgetbuf.x b/noao/digiphot/photcal/mctable/mctgetbuf.x new file mode 100644 index 00000000..a9c6dbbb --- /dev/null +++ b/noao/digiphot/photcal/mctable/mctgetbuf.x @@ -0,0 +1,23 @@ +include "../lib/mctable.h" + + +# MCT_GETBUF - Get pointer to data buffer. + +pointer procedure mct_getbuf (table) + +pointer table # table descriptor + +pointer mct_getrow() + +errchk mct_getrow() + +begin + # Check pointer and magic number. + if (table == NULL) + call error (0, "mct_getbuf: Null table pointer") + if (MCT_MAGIC (table) != MAGIC) + call error (0, "mct_getbuf: Bad magic number") + + # Return pointer to data buffer. + return (mct_getrow (table, 1)) +end |