diff options
author | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunkeler@gmail.com> | 2015-08-11 16:51:37 -0400 |
commit | 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 (patch) | |
tree | 4464880c571602d54f6ae114729bf62a89518057 /sys/plio/plreq.gx | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/plio/plreq.gx')
-rw-r--r-- | sys/plio/plreq.gx | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/plio/plreq.gx b/sys/plio/plreq.gx new file mode 100644 index 00000000..470b4484 --- /dev/null +++ b/sys/plio/plreq.gx @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <plset.h> + +# PLR_EQUAL -- Compare two range lists for equality. + +bool procedure plr_equal$t (r1, r2) + +PIXEL r1[3,ARB] #I range list 1 +PIXEL r2[3,ARB] #I range list 2 + +int i +int len1, len2 + +begin + len1 = RL_LEN(r1) + len2 = RL_LEN(r2) + + if (len1 != len2) + return (false) + + do i = RL_FIRST, len1 + if (r1[1,i] != r2[1,i] || r1[2,i] != r2[2,i] || r1[3,i] != r2[3,i]) + return (false) + + return (true) +end |