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/pmio/pmaccess.x | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 sys/pmio/pmaccess.x (limited to 'sys/pmio/pmaccess.x') diff --git a/sys/pmio/pmaccess.x b/sys/pmio/pmaccess.x new file mode 100644 index 00000000..74f73e72 --- /dev/null +++ b/sys/pmio/pmaccess.x @@ -0,0 +1,24 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include + +# PM_ACCESS -- Return a pointer (type short) to the indicated mask image +# line. A valid pointer is always returned; if the mask line is empty, the +# pointer will reference the "empty line" linelist. + +pointer procedure pm_access (pl, v) + +pointer pl #I mask descriptor +long v[PM_MAXDIM] #I coordinates of desired line + +pointer pl_access() +include "pmio.com" + +begin + if (PM_MAPXY(pl) == YES) { + call imaplv (PM_REFIM(pl), v, v1, PM_MAXDIM) + return (pl_access (pl, v1)) + } else + return (pl_access (pl, v)) +end -- cgit