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/qpoe/qpgetx.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/qpoe/qpgetx.x')
-rw-r--r-- | sys/qpoe/qpgetx.x | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/qpoe/qpgetx.x b/sys/qpoe/qpgetx.x new file mode 100644 index 00000000..cf9468bb --- /dev/null +++ b/sys/qpoe/qpgetx.x @@ -0,0 +1,26 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <syserr.h> +include "qpoe.h" + +# QP_GETX -- Return the complex value of the named header parameter. Type +# conversion is not permitted between complex and the other datatypes. + +complex procedure qp_getx (qp, param) + +pointer qp #I QPOE descriptor +char param[ARB] #I parameter name + +pointer pp +int qp_getparam() +errchk qp_getparam, syserrs + +begin + # Lookup the parameter and it's value. + if (qp_getparam (qp, param, pp) != TY_COMPLEX) + call syserrs (SYS_QPBADCONV, param) + else if (pp == NULL) + call syserrs (SYS_QPNOVAL, param) + + return (Memx[pp]) +end |