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/plstati.x | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sys/plio/plstati.x (limited to 'sys/plio/plstati.x') diff --git a/sys/plio/plstati.x b/sys/plio/plstati.x new file mode 100644 index 00000000..c6659afa --- /dev/null +++ b/sys/plio/plstati.x @@ -0,0 +1,31 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include +include +include + +# PL_STATI -- Stat a PLIO parameter. + +int procedure pl_stati (pl, param) + +pointer pl #I mask descriptor +int param #I parameter code + +int i + +begin + switch (param) { + case P_PRIVATE1: + return (PL_PRIVATE1(pl)) + case P_PRIVATE2: + return (PL_PRIVATE2(pl)) + case P_MAXLINE: + return (PL_MAXLINE(pl)) + case P_DEPTH: + do i = 0, ARB + if (2**i > min (I_PVMAX, PL_MAXVAL(pl))) + return (i) + default: + call syserr (SYS_PLINVPAR) + } +end -- cgit