aboutsummaryrefslogtreecommitdiff
path: root/sys/imio/tf/impgss.x
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
committerJoe Hunkeler <jhunkeler@gmail.com>2015-08-11 16:51:37 -0400
commit40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch)
tree4464880c571602d54f6ae114729bf62a89518057 /sys/imio/tf/impgss.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/imio/tf/impgss.x')
-rw-r--r--sys/imio/tf/impgss.x33
1 files changed, 33 insertions, 0 deletions
diff --git a/sys/imio/tf/impgss.x b/sys/imio/tf/impgss.x
new file mode 100644
index 00000000..bcdf26e0
--- /dev/null
+++ b/sys/imio/tf/impgss.x
@@ -0,0 +1,33 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <imhdr.h>
+include <imio.h>
+
+# IMPGS? -- Put a general section of a specific datatype.
+
+pointer procedure impgss (imdes, vs, ve, ndim)
+
+pointer imdes
+long vs[IM_MAXDIM], ve[IM_MAXDIM]
+pointer bp, imgobf()
+int ndim
+extern imflss()
+errchk imflush, imgobf
+
+begin
+ # Flush the output buffer, if appropriate. IMFLUSH calls
+ # one of the IMFLS? routines, which write out the section.
+
+ if (IM_FLUSH(imdes) == YES)
+ call zcall1 (IM_FLUSHEPA(imdes), imdes)
+
+ # Get an (output) buffer to put the pixels into. Save the
+ # section parameters in the image descriptor. Save the epa
+ # of the typed flush procedure in the image descriptor.
+
+ bp = imgobf (imdes, vs, ve, ndim, TY_SHORT)
+ call zlocpr (imflss, IM_FLUSHEPA(imdes))
+ IM_FLUSH(imdes) = YES
+
+ return (bp)
+end