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/qpoe/qpputx.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/qpoe/qpputx.x')
-rw-r--r-- | sys/qpoe/qpputx.x | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/qpoe/qpputx.x b/sys/qpoe/qpputx.x new file mode 100644 index 00000000..0ed73b35 --- /dev/null +++ b/sys/qpoe/qpputx.x @@ -0,0 +1,31 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +include <syserr.h> +include "qpoe.h" + +# QP_PUTX -- Set the complex value of the named header parameter. Type +# conversion is not permitted between complex and the other data types. + +procedure qp_putx (qp, param, value) + +pointer qp #I QPOE descriptor +char param[ARB] #I parameter name +complex value #I scalar parameter value + +pointer pp +int qp_putparam() +errchk qp_putparam, syserrs + +begin + # Lookup the parameter and get a pointer to the value buffer. + if (qp_putparam (qp, param, pp) != TY_COMPLEX) + call syserrs (SYS_QPBADCONV, param) + else if (pp == NULL) + call syserrs (SYS_QPNOVAL, param) + + # Pass the new value. + Memx[pp] = value + + # Update the parameter in the datafile. + call qp_flushpar (qp) +end |