xref: /csrg-svn/usr.bin/tn3270/api/ascebc.h (revision 36284)
131049Sminshall /*
233820Sbostic  * Copyright (c) 1988 Regents of the University of California.
333820Sbostic  * All rights reserved.
431049Sminshall  *
533820Sbostic  * Redistribution and use in source and binary forms are permitted
634888Sbostic  * provided that the above copyright notice and this paragraph are
734888Sbostic  * duplicated in all such forms and that any documentation,
834888Sbostic  * advertising materials, and other materials related to such
934888Sbostic  * distribution and use acknowledge that the software was developed
1034888Sbostic  * by the University of California, Berkeley.  The name of the
1134888Sbostic  * University may not be used to endorse or promote products derived
1234888Sbostic  * from this software without specific prior written permission.
1334888Sbostic  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
1434888Sbostic  * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
1534888Sbostic  * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
1633820Sbostic  *
17*36284Sminshall  *	@(#)ascebc.h	4.1 (Berkeley) 12/04/88
1831049Sminshall  */
1931049Sminshall 
2031049Sminshall #define	INCLUDED_ASCEBC
2131049Sminshall 
2231049Sminshall /*
2331049Sminshall  * ascii/ebcdic translation information
2431049Sminshall  */
2531049Sminshall 
2631049Sminshall #define	NASCII	128		/* number of ascii characters */
2731049Sminshall #define	NASCEBC	  4		/* number of ascii to ebcdic tables */
2831049Sminshall 
2931049Sminshall #define AE_NO	 -1		/* no translation - user has already done it */
3031049Sminshall #define	AE_PR	  0		/* ascii to ebcdic "print" translation */
3131049Sminshall #define	AE_IN	  1		/* ascii to ebcdic "input" translation */
3231049Sminshall #define	AE_SP	  2		/* ascii to ebcdic special translation */
3331049Sminshall #define AE_TX	  3		/* ascii to ebcdic pure text translation */
3431049Sminshall 
3531049Sminshall #define	NEBC	256		/* number of ebcdic characters */
3631049Sminshall #define	NEBCASC	  1		/* number of ebcdic to ascii tables */
3731049Sminshall 
3831049Sminshall extern unsigned char
3931049Sminshall 	ascebc[NASCEBC][NASCII],
4031049Sminshall 	ebcasc[NEBCASC][NEBC];
41