diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2015-07-08 20:46:52 -0400 |
commit | fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch) | |
tree | bdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/plio/tf/plreqs.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/plio/tf/plreqs.x')
-rw-r--r-- | sys/plio/tf/plreqs.x | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/sys/plio/tf/plreqs.x b/sys/plio/tf/plreqs.x new file mode 100644 index 00000000..b44bf4da --- /dev/null +++ b/sys/plio/tf/plreqs.x @@ -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_equals (r1, r2) + +short r1[3,ARB] #I range list 1 +short 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 |