aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/achtgen/achtu.x
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/vops/achtgen/achtu.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/vops/achtgen/achtu.x')
-rw-r--r--sys/vops/achtgen/achtu.x34
1 files changed, 34 insertions, 0 deletions
diff --git a/sys/vops/achtgen/achtu.x b/sys/vops/achtgen/achtu.x
new file mode 100644
index 00000000..5edffe96
--- /dev/null
+++ b/sys/vops/achtgen/achtu.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 achtu (a, b, nelem, ty_b)
+
+short a[ARB]
+char b[ARB]
+int nelem
+int ty_b
+
+begin
+ switch (ty_b) {
+ case TY_UBYTE:
+ call achtub (a, b, nelem)
+ case TY_USHORT:
+ call achtuu (a, b, nelem)
+ case TY_CHAR:
+ call achtuc (a, b, nelem)
+ case TY_SHORT:
+ call achtus (a, b, nelem)
+ case TY_INT, TY_POINTER, TY_STRUCT:
+ call achtui (a, b, nelem)
+ case TY_LONG:
+ call achtul (a, b, nelem)
+ case TY_REAL:
+ call achtur (a, b, nelem)
+ case TY_DOUBLE:
+ call achtud (a, b, nelem)
+ case TY_COMPLEX:
+ call achtux (a, b, nelem)
+ }
+end