aboutsummaryrefslogtreecommitdiff
path: root/pkg/xtools/xtimleneq.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 /pkg/xtools/xtimleneq.x
downloadiraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'pkg/xtools/xtimleneq.x')
-rw-r--r--pkg/xtools/xtimleneq.x22
1 files changed, 22 insertions, 0 deletions
diff --git a/pkg/xtools/xtimleneq.x b/pkg/xtools/xtimleneq.x
new file mode 100644
index 00000000..ece51695
--- /dev/null
+++ b/pkg/xtools/xtimleneq.x
@@ -0,0 +1,22 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+include <imhdr.h>
+
+# XT_IMLENEQ -- Determine if the lengths of the common image dimensions
+# are equal.
+
+bool procedure xt_imleneq (im1, im2)
+
+pointer im1 # First IMIO pointer
+pointer im2 # Second IMIO pointer
+
+int i, ndim
+
+begin
+ ndim = min (IM_NDIM (im1), IM_NDIM (im2))
+ do i = 1, ndim {
+ if (IM_LEN (im1, i) != IM_LEN (im2, i))
+ return (FALSE)
+ }
+ return (TRUE)
+end