From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/vops/achtgen/achtb.x | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 sys/vops/achtgen/achtb.x (limited to 'sys/vops/achtgen/achtb.x') diff --git a/sys/vops/achtgen/achtb.x b/sys/vops/achtgen/achtb.x new file mode 100644 index 00000000..0d8cb8a7 --- /dev/null +++ b/sys/vops/achtgen/achtb.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 achtb (a, b, nelem, ty_b) + +char a[ARB] +char b[ARB] +int nelem +int ty_b + +begin + switch (ty_b) { + case TY_UBYTE: + call achtbb (a, b, nelem) + case TY_USHORT: + call achtbu (a, b, nelem) + case TY_CHAR: + call achtbc (a, b, nelem) + case TY_SHORT: + call achtbs (a, b, nelem) + case TY_INT, TY_POINTER, TY_STRUCT: + call achtbi (a, b, nelem) + case TY_LONG: + call achtbl (a, b, nelem) + case TY_REAL: + call achtbr (a, b, nelem) + case TY_DOUBLE: + call achtbd (a, b, nelem) + case TY_COMPLEX: + call achtbx (a, b, nelem) + } +end -- cgit