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/vops/achtgen/achtx.x | |
download | iraf-osx-40e5a5811c6ffce9b0974e93cdd927cbcf60c157.tar.gz |
Repatch (from linux) of OSX IRAF
Diffstat (limited to 'sys/vops/achtgen/achtx.x')
-rw-r--r-- | sys/vops/achtgen/achtx.x | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/vops/achtgen/achtx.x b/sys/vops/achtgen/achtx.x new file mode 100644 index 00000000..c0d8e04d --- /dev/null +++ b/sys/vops/achtgen/achtx.x @@ -0,0 +1,34 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# ACHT_ -- Convert an array of type _ to some other datatype. +# Data types are BUcsilrdx. + +procedure achtx (a, b, nelem, ty_b) + +complex a[ARB] +char b[ARB] +int nelem +int ty_b + +begin + switch (ty_b) { + case TY_UBYTE: + call achtxb (a, b, nelem) + case TY_USHORT: + call achtxu (a, b, nelem) + case TY_CHAR: + call achtxc (a, b, nelem) + case TY_SHORT: + call achtxs (a, b, nelem) + case TY_INT, TY_POINTER, TY_STRUCT: + call achtxi (a, b, nelem) + case TY_LONG: + call achtxl (a, b, nelem) + case TY_REAL: + call achtxr (a, b, nelem) + case TY_DOUBLE: + call achtxd (a, b, nelem) + case TY_COMPLEX: + call achtxx (a, b, nelem) + } +end |