From fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 Jul 2015 20:46:52 -0400 Subject: Initial commit --- 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