xref: /csrg-svn/usr.bin/tn3270/api/ascebc.h (revision 31049)
1*31049Sminshall /*
2*31049Sminshall  *	Copyright 1984, 1985 by the Regents of the University of
3*31049Sminshall  *	California and by Gregory Glenn Minshall.
4*31049Sminshall  *
5*31049Sminshall  *	Permission to use, copy, modify, and distribute these
6*31049Sminshall  *	programs and their documentation for any purpose and
7*31049Sminshall  *	without fee is hereby granted, provided that this
8*31049Sminshall  *	copyright and permission appear on all copies and
9*31049Sminshall  *	supporting documentation, the name of the Regents of
10*31049Sminshall  *	the University of California not be used in advertising
11*31049Sminshall  *	or publicity pertaining to distribution of the programs
12*31049Sminshall  *	without specific prior permission, and notice be given in
13*31049Sminshall  *	supporting documentation that copying and distribution is
14*31049Sminshall  *	by permission of the Regents of the University of California
15*31049Sminshall  *	and by Gregory Glenn Minshall.  Neither the Regents of the
16*31049Sminshall  *	University of California nor Gregory Glenn Minshall make
17*31049Sminshall  *	representations about the suitability of this software
18*31049Sminshall  *	for any purpose.  It is provided "as is" without
19*31049Sminshall  *	express or implied warranty.
20*31049Sminshall  */
21*31049Sminshall 
22*31049Sminshall #define	INCLUDED_ASCEBC
23*31049Sminshall 
24*31049Sminshall /*
25*31049Sminshall  * ascii/ebcdic translation information
26*31049Sminshall  */
27*31049Sminshall 
28*31049Sminshall #define	NASCII	128		/* number of ascii characters */
29*31049Sminshall #define	NASCEBC	  4		/* number of ascii to ebcdic tables */
30*31049Sminshall 
31*31049Sminshall #define AE_NO	 -1		/* no translation - user has already done it */
32*31049Sminshall #define	AE_PR	  0		/* ascii to ebcdic "print" translation */
33*31049Sminshall #define	AE_IN	  1		/* ascii to ebcdic "input" translation */
34*31049Sminshall #define	AE_SP	  2		/* ascii to ebcdic special translation */
35*31049Sminshall #define AE_TX	  3		/* ascii to ebcdic pure text translation */
36*31049Sminshall 
37*31049Sminshall #define	NEBC	256		/* number of ebcdic characters */
38*31049Sminshall #define	NEBCASC	  1		/* number of ebcdic to ascii tables */
39*31049Sminshall 
40*31049Sminshall extern unsigned char
41*31049Sminshall 	ascebc[NASCEBC][NASCII],
42*31049Sminshall 	ebcasc[NEBCASC][NEBC];
43