From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/imio/tf/impgsi.x | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 sys/imio/tf/impgsi.x (limited to 'sys/imio/tf/impgsi.x') diff --git a/sys/imio/tf/impgsi.x b/sys/imio/tf/impgsi.x new file mode 100644 index 00000000..62f69105 --- /dev/null +++ b/sys/imio/tf/impgsi.x @@ -0,0 +1,33 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include + +# IMPGS? -- Put a general section of a specific datatype. + +pointer procedure impgsi (imdes, vs, ve, ndim) + +pointer imdes +long vs[IM_MAXDIM], ve[IM_MAXDIM] +pointer bp, imgobf() +int ndim +extern imflsi() +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_INT) + call zlocpr (imflsi, IM_FLUSHEPA(imdes)) + IM_FLUSH(imdes) = YES + + return (bp) +end -- cgit