aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/achtgen/acht.x
blob: ae67ceaecbe77e73b884f8e471bd6be75f92cf64 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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