⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xdefs.c

📁 <B>Digital的Unix操作系统VAX 4.2源码</B>
💻 C
字号:
#ifndef lintstatic	char	*sccsid = "@(#)xdefs.c	1.2	(ULTRIX)	3/12/86";#endif lint/************************************************************************ *									* *			Copyright (c) 1984 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.	* *									* ************************************************************************//********************************************************************		Modifications* 001 - Lu Anne Van de Pas, 02-Mar-86*	Added fcon to keep the last f floating constant read*********************************************************************/# include "mfile1"/*	communication between lexical routines	*/char	ftitle[100] = "";   	/* title of the file */char	ititle[100] = "";   	/* title of initial file */int	lineno;		/* line number of the input file */CONSZ lastcon;  /* the last constant read by the lexical analyzer */double dcon;   /* the last double read by the lexical analyzer */float fcon;   /* vdp001 that last float read by the lexical analyzer *//*	symbol table maintainence */struct symtab stab[SYMTSZ+1];  /* one extra slot for scratch */int	curftn;  /* "current" function */int	ftnno;  /* "current" function number */int	curclass,	  /* current storage class */	instruct,	/* "in structure" flag */	stwart,		/* for accessing names which are structure members or names */	blevel,		/* block level: 0 for extern, 1 for ftn args, >=2 inside function */	curdim;		/* current offset into the dimension table */	int	dimtab[ DIMTABSZ ];int	paramstk[ PARAMSZ ];  /* used in the definition of function parameters */int	paramno;	  /* the number of parameters */int	autooff,	/* the next unused automatic offset */	argoff,	/* the next unused argument offset */	strucoff;	/*  the next structure offset position */int	regvar;		/* the next free register for register variables */int	minrvar;	/* the smallest that regvar gets witing a function */OFFSZ	inoff;		/* offset of external element being initialized */int	brkflag = 0;	/* complain about break statements not reached */struct sw swtab[SWITSZ];  /* table for cases within a switch */struct sw *swp;  /* pointer to next free entry in swtab */int swx;  /* index of beginning of cases for current switch *//* debugging flag */int xdebug = 0;int strflg;  /* if on, strings are to be treated as lists */int reached;	/* true if statement can be reached... */int idname;	/* tunnel to buildtree for name id's */NODE node[TREESZ];int cflag = 0;  /* do we check for funny casts */int hflag = 0;  /* do we check for various heuristics which may indicate errors */int pflag = 0;  /* do we check for portable constructions */int brklab;int contlab;int flostat;int retlab = NOLAB;int retstat;/* save array for break, continue labels, and flostat */int asavbc[BCSZ];int *psavbc = asavbc ;# ifndef BUG1static char *ccnames[] = { /* names of storage classes */	"SNULL",	"AUTO",	"EXTERN",	"STATIC",	"REGISTER",	"EXTDEF",	"LABEL",	"ULABEL",	"MOS",	"PARAM",	"STNAME",	"MOU",	"UNAME",	"TYPEDEF",	"FORTRAN",	"ENAME",	"MOE",	"UFORTRAN",	"USTATIC",	};char * scnames( c ) register c; {	/* return the name for storage class c */	static char buf[12];	if( c&FIELD ){		sprintf( buf, "FIELD[%d]", c&FLDSIZ );		return( buf );		}	return( ccnames[c] );	}# endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -