From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/plio/tf/plreql.x | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 sys/plio/tf/plreql.x (limited to 'sys/plio/tf/plreql.x') diff --git a/sys/plio/tf/plreql.x b/sys/plio/tf/plreql.x new file mode 100644 index 00000000..1fb76d6a --- /dev/null +++ b/sys/plio/tf/plreql.x @@ -0,0 +1,27 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include + +# PLR_EQUAL -- Compare two range lists for equality. + +bool procedure plr_equall (r1, r2) + +long r1[3,ARB] #I range list 1 +long 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 -- cgit