aboutsummaryrefslogtreecommitdiff
path: root/sys/pmio/pmlinene.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/pmio/pmlinene.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/pmio/pmlinene.x')
-rw-r--r--sys/pmio/pmlinene.x28
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/pmio/pmlinene.x b/sys/pmio/pmlinene.x
new file mode 100644
index 00000000..0e49de54
--- /dev/null
+++ b/sys/pmio/pmlinene.x
@@ -0,0 +1,28 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <imhdr.h>
+include <pmset.h>
+include <plio.h>
+
+# PM_LINENOTEMPTY -- Test whether the indicated mask image line is empty.
+
+bool procedure pm_linenotempty (pl, v)
+
+pointer pl #I mask descriptor
+long v[PM_MAXDIM] #I coordinates of desired line
+
+bool pl_sectnotempty(), pl_linenotempty()
+include "pmio.com"
+
+begin
+ if (PM_MAPXY(pl) == YES) {
+ call imaplv (PM_REFIM(pl), v, v1, PM_MAXDIM)
+ call amovl (v, v2, PM_MAXDIM)
+ v2[1] = IM_LEN(PM_REFIM(pl),1)
+ call imaplv (PM_REFIM(pl), v2, v3, PM_MAXDIM)
+
+ return (pl_sectnotempty (pl, v1, v3, PM_MAXDIM))
+
+ } else
+ return (pl_linenotempty (pl, v))
+end