ctype.c

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· C语言 代码 · 共 150 行

C
150
字号
#ifndef lintstatic CHTYPE *sccsid = "@(#)ctype.c	4.1      7/17/90";#endif lint/************************************************************************ *									* *			Copyright (c) 1986 by				* *		Digital Equipment Corporation, Maynard, MA		* *			All rights reserved.				* *									* *   This software is furnished under a license and may be used and	* *   copied  only  in accordance with the terms of such license and	* *   with the  inclusion  of  the  above  copyright  notice.   This	* *   software  or  any  other copies thereof may not be provided or	* *   otherwise made available to any other person.  No title to and	* *   ownership of the software is hereby transferred.			* *									* *   This software is  derived  from  software  received  from  the	* *   University    of   California,   Berkeley,   and   from   Bell	* *   Laboratories.  Use, duplication, or disclosure is  subject  to	* *   restrictions  under  license  agreements  with  University  of	* *   California and with AT&T.						* *									* *   The information in this software is subject to change  without	* *   notice  and should not be construed as a commitment by Digital	* *   Equipment Corporation.						* *									* *   Digital assumes no responsibility for the use  or  reliability	* *   of its software on equipment which is not supplied by Digital.	* *									* ************************************************************************//* * *   Modification History: * * 001 - Gary Gaudet for Andy Gadsby 09-mar-88 *	i18n version of csh * * * *//* *	UNIX shell * *	Bell Telephone Laboratories * */#include	"defs.h"CHTYPE	_ctype1[256] ={/*	000	001	002	003	004	005	006	007	*/	_EOF,	0,	0,	0,	0,	0,	0,	0,/*	bs	ht	nl	vt	np	cr	so	si	*/	0,	_TAB,	_EOR,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,	0,/*	sp	!	"	#	$	%	&	'	*/	_SPC,	0,	_DQU,	0,	_DOL1,	0,	_AMP,	0,/*	(	)	*	+	,	-	.	/	*/	_BRA,	_KET,	0,	0,	0,	0,	0,	0,/*	0	1	2	3	4	5	6	7	*/	0,	0,	0,	0,	0,	0,	0,	0,/*	8	9	:	;	<	=	>	?	*/	0,	0,	0,	_SEM,	_LT,	0,	_GT,	0,/*	@	A	B	C	D	E	F	G	*/	0,	0,	0,	0,	0,	0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