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/vops/achtgen/acht.x | |
download | iraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz |
Initial commit
Diffstat (limited to 'sys/vops/achtgen/acht.x')
-rw-r--r-- | sys/vops/achtgen/acht.x | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/vops/achtgen/acht.x b/sys/vops/achtgen/acht.x new file mode 100644 index 00000000..ae67ceae --- /dev/null +++ b/sys/vops/achtgen/acht.x @@ -0,0 +1,32 @@ +# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc. + +# ACHT -- General data type conversion based on the generic routines +# The data types are BUcsilrdx. + +procedure acht (a, b, nelem, ty_a, ty_b) + +char a[ARB], b[ARB] +int ty_a, ty_b, nelem + +begin + switch (ty_a) { + case TY_UBYTE: + call achtb (a, b, nelem, ty_b) + case TY_USHORT: + call achtu (a, b, nelem, ty_b) + case TY_CHAR: + call achtc (a, b, nelem, ty_b) + case TY_SHORT: + call achts (a, b, nelem, ty_b) + case TY_INT, TY_POINTER, TY_STRUCT: + call achti (a, b, nelem, ty_b) + case TY_LONG: + call achtl (a, b, nelem, ty_b) + case TY_REAL: + call achtr (a, b, nelem, ty_b) + case TY_DOUBLE: + call achtd (a, b, nelem, ty_b) + case TY_COMPLEX: + call achtx (a, b, nelem, ty_b) + } +end |