Home | History | Annotate | Line # | Download | only in lint1
lint1.h revision 1.9
      1  1.9  cgd /*	$NetBSD: lint1.h,v 1.9 1997/11/03 22:36:47 cgd Exp $	*/
      2  1.2  cgd 
      3  1.1  cgd /*
      4  1.7  cgd  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
      5  1.1  cgd  * Copyright (c) 1994, 1995 Jochen Pohl
      6  1.1  cgd  * All Rights Reserved.
      7  1.1  cgd  *
      8  1.1  cgd  * Redistribution and use in source and binary forms, with or without
      9  1.1  cgd  * modification, are permitted provided that the following conditions
     10  1.1  cgd  * are met:
     11  1.1  cgd  * 1. Redistributions of source code must retain the above copyright
     12  1.1  cgd  *    notice, this list of conditions and the following disclaimer.
     13  1.1  cgd  * 2. Redistributions in binary form must reproduce the above copyright
     14  1.1  cgd  *    notice, this list of conditions and the following disclaimer in the
     15  1.1  cgd  *    documentation and/or other materials provided with the distribution.
     16  1.1  cgd  * 3. All advertising materials mentioning features or use of this software
     17  1.1  cgd  *    must display the following acknowledgement:
     18  1.1  cgd  *      This product includes software developed by Jochen Pohl for
     19  1.1  cgd  *	The NetBSD Project.
     20  1.1  cgd  * 4. The name of the author may not be used to endorse or promote products
     21  1.1  cgd  *    derived from this software without specific prior written permission.
     22  1.1  cgd  *
     23  1.1  cgd  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     24  1.1  cgd  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     25  1.1  cgd  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  1.1  cgd  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     27  1.1  cgd  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     28  1.1  cgd  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     29  1.1  cgd  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     30  1.1  cgd  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     31  1.1  cgd  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     32  1.1  cgd  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     33  1.1  cgd  */
     34  1.1  cgd 
     35  1.1  cgd #include "lint.h"
     36  1.1  cgd #include "op.h"
     37  1.1  cgd 
     38  1.1  cgd /*
     39  1.1  cgd  * Describes the position of a declaration or anything else.
     40  1.1  cgd  */
     41  1.1  cgd typedef struct {
     42  1.1  cgd 	int	p_line;
     43  1.1  cgd 	const	char *p_file;
     44  1.7  cgd 	int	p_uniq;			/* uniquifier */
     45  1.1  cgd } pos_t;
     46  1.7  cgd 
     47  1.7  cgd /* Copies curr_pos, keeping things unique. */
     48  1.7  cgd #define UNIQUE_CURR_POS(pos)						\
     49  1.7  cgd     do {								\
     50  1.7  cgd     	STRUCT_ASSIGN((pos), curr_pos);					\
     51  1.7  cgd 	curr_pos.p_uniq++;						\
     52  1.7  cgd 	if (curr_pos.p_file == csrc_pos.p_file)				\
     53  1.7  cgd 	    csrc_pos.p_uniq++;						\
     54  1.7  cgd     } while (0)
     55  1.1  cgd 
     56  1.1  cgd /*
     57  1.1  cgd  * Strings cannot be referenced to simply by a pointer to its first
     58  1.1  cgd  * char. This is because strings can contain NUL characters other than the
     59  1.1  cgd  * trailing NUL.
     60  1.1  cgd  *
     61  1.1  cgd  * Strings are stored with a trailing NUL.
     62  1.1  cgd  */
     63  1.1  cgd typedef	struct strg {
     64  1.1  cgd 	tspec_t	st_tspec;		/* CHAR or WCHAR */
     65  1.1  cgd 	size_t	st_len;			/* length without trailing NUL */
     66  1.1  cgd 	union {
     67  1.1  cgd 		u_char	*_st_cp;
     68  1.1  cgd 		wchar_t	*_st_wcp;
     69  1.1  cgd 	} st_u;
     70  1.1  cgd } strg_t;
     71  1.1  cgd 
     72  1.1  cgd #define st_cp	st_u._st_cp
     73  1.1  cgd #define	st_wcp	st_u._st_wcp
     74  1.1  cgd 
     75  1.1  cgd /*
     76  1.1  cgd  * qualifiers (only for lex/yacc interface)
     77  1.1  cgd  */
     78  1.1  cgd typedef enum {
     79  1.1  cgd 	CONST, VOLATILE
     80  1.1  cgd } tqual_t;
     81  1.1  cgd 
     82  1.1  cgd /*
     83  1.1  cgd  * Integer and floating point values are stored in this structure
     84  1.1  cgd  */
     85  1.1  cgd typedef struct {
     86  1.1  cgd 	tspec_t	v_tspec;
     87  1.1  cgd 	int	v_ansiu;		/* set if an integer constant is
     88  1.1  cgd 					   unsigned in ANSI C */
     89  1.1  cgd 	union {
     90  1.1  cgd 		quad_t	_v_quad;	/* integers */
     91  1.1  cgd 		ldbl_t	_v_ldbl;	/* floats */
     92  1.1  cgd 	} v_u;
     93  1.1  cgd } val_t;
     94  1.1  cgd 
     95  1.1  cgd #define v_quad	v_u._v_quad
     96  1.1  cgd #define v_ldbl	v_u._v_ldbl
     97  1.1  cgd 
     98  1.1  cgd /*
     99  1.1  cgd  * Structures of type str_t uniqely identify structures. This can't
    100  1.1  cgd  * be done in structures of type type_t, because these are copied
    101  1.1  cgd  * if they must be modified. So it would not be possible to check
    102  1.1  cgd  * if to structures are identical by comparing the pointers to
    103  1.1  cgd  * the type structures.
    104  1.1  cgd  *
    105  1.1  cgd  * The typename is used if the structure is unnamed to identify
    106  1.1  cgd  * the structure type in pass 2.
    107  1.1  cgd  */
    108  1.1  cgd typedef	struct {
    109  1.1  cgd 	u_int	size;		/* size in bit */
    110  1.1  cgd 	u_int	align : 15;	/* alignment in bit */
    111  1.1  cgd 	u_int	sincompl : 1;	/* set if incomplete type */
    112  1.1  cgd 	struct	sym *memb;	/* list of members */
    113  1.1  cgd 	struct	sym *stag;	/* symbol table entry of tag */
    114  1.1  cgd 	struct	sym *stdef;	/* symbol table entry of first typename */
    115  1.1  cgd } str_t;
    116  1.1  cgd 
    117  1.1  cgd /*
    118  1.1  cgd  * same as above for enums
    119  1.1  cgd  */
    120  1.1  cgd typedef	struct {
    121  1.1  cgd 	u_int	eincompl : 1;	/* incomplete enum type */
    122  1.1  cgd 	struct	sym *elem;	/* list of enumerators */
    123  1.1  cgd 	struct	sym *etag;	/* symbol table entry of tag */
    124  1.1  cgd 	struct	sym *etdef;	/* symbol table entry of first typename */
    125  1.1  cgd } enum_t;
    126  1.1  cgd 
    127  1.1  cgd /*
    128  1.1  cgd  * Types are represented by concatenation of structures of type type_t
    129  1.1  cgd  * via t_subt.
    130  1.1  cgd  */
    131  1.1  cgd typedef	struct type {
    132  1.1  cgd 	tspec_t	t_tspec;	/* type specifier */
    133  1.1  cgd 	u_int	t_aincompl : 1;	/* incomplete array type */
    134  1.1  cgd 	u_int	t_const : 1;	/* const modifier */
    135  1.1  cgd 	u_int	t_volatile : 1;	/* volatile modifier */
    136  1.1  cgd 	u_int	t_proto : 1;	/* function prototype (t_args valid) */
    137  1.1  cgd 	u_int	t_vararg : 1;	/* protoype with ... */
    138  1.1  cgd 	u_int	t_typedef : 1;	/* type defined with typedef */
    139  1.1  cgd 	u_int	t_isfield : 1;	/* type is bitfield */
    140  1.1  cgd 	u_int	t_isenum : 1;	/* type is (or was) enum (t_enum valid) */
    141  1.1  cgd 	union {
    142  1.1  cgd 		int	_t_dim;		/* dimension */
    143  1.1  cgd 		str_t	*_t_str;	/* struct/union tag */
    144  1.1  cgd 		enum_t	*_t_enum;	/* enum tag */
    145  1.1  cgd 		struct	sym *_t_args;	/* arguments (if t_proto) */
    146  1.1  cgd 	} t_u;
    147  1.8   pk 	struct {
    148  1.8   pk 		u_int	_t_flen : 8;	/* length of bit-field */
    149  1.8   pk 		u_int	_t_foffs : 24;	/* offset of bit-field */
    150  1.8   pk 	} t_b;
    151  1.1  cgd 	struct	type *t_subt;	/* element type (arrays), return value
    152  1.1  cgd 				   (functions), or type pointer points to */
    153  1.1  cgd } type_t;
    154  1.1  cgd 
    155  1.1  cgd #define	t_dim	t_u._t_dim
    156  1.1  cgd #define	t_str	t_u._t_str
    157  1.1  cgd #define	t_field	t_u._t_field
    158  1.1  cgd #define	t_enum	t_u._t_enum
    159  1.1  cgd #define	t_args	t_u._t_args
    160  1.8   pk #define	t_flen	t_b._t_flen
    161  1.8   pk #define	t_foffs	t_b._t_foffs
    162  1.1  cgd 
    163  1.1  cgd /*
    164  1.1  cgd  * types of symbols
    165  1.1  cgd  */
    166  1.1  cgd typedef	enum {
    167  1.1  cgd 	FVFT,		/* variables, functions, type names, enums */
    168  1.1  cgd 	FMOS,		/* members of structs or unions */
    169  1.1  cgd 	FTAG,		/* tags */
    170  1.1  cgd 	FLAB		/* labels */
    171  1.1  cgd } symt_t;
    172  1.1  cgd 
    173  1.1  cgd /*
    174  1.1  cgd  * storage classes
    175  1.1  cgd  */
    176  1.1  cgd typedef enum {
    177  1.1  cgd 	NOSCL,
    178  1.1  cgd 	EXTERN,		/* external symbols (indep. of decl_t) */
    179  1.1  cgd 	STATIC,		/* static symbols (local and global) */
    180  1.1  cgd 	AUTO,		/* automatic symbols (except register) */
    181  1.1  cgd 	REG,		/* register */
    182  1.1  cgd 	TYPEDEF,	/* typedef */
    183  1.1  cgd 	STRTAG,
    184  1.1  cgd 	UNIONTAG,
    185  1.1  cgd 	ENUMTAG,
    186  1.1  cgd 	MOS,		/* member of struct */
    187  1.1  cgd 	MOU,		/* member of union */
    188  1.1  cgd 	ENUMCON,	/* enumerator */
    189  1.1  cgd 	ABSTRACT,	/* abstract symbol (sizeof, casts, unnamed argument) */
    190  1.1  cgd 	ARG,		/* argument */
    191  1.4  jpo 	PARG,		/* used in declaration stack during prototype
    192  1.1  cgd 			   declaration */
    193  1.4  jpo 	INLINE		/* only used by the parser */
    194  1.1  cgd } scl_t;
    195  1.1  cgd 
    196  1.1  cgd /*
    197  1.1  cgd  * symbol table entry
    198  1.1  cgd  */
    199  1.1  cgd typedef	struct sym {
    200  1.1  cgd 	const	char *s_name;	/* name */
    201  1.9  cgd 	const	char *s_rename;	/* renamed symbol's given name */
    202  1.1  cgd 	pos_t	s_dpos;		/* position of last (prototype)definition,
    203  1.1  cgd 				   prototypedeclaration, no-prototype-def.,
    204  1.1  cgd 				   tentative definition or declaration,
    205  1.1  cgd 				   in this order */
    206  1.1  cgd 	pos_t	s_spos;		/* position of first initialisation */
    207  1.1  cgd 	pos_t	s_upos;		/* position of first use */
    208  1.1  cgd 	symt_t	s_kind;		/* type of symbol */
    209  1.1  cgd 	u_int	s_keyw : 1;	/* keyword */
    210  1.1  cgd 	u_int	s_field : 1;	/* bit-field */
    211  1.1  cgd 	u_int	s_set : 1;	/* variable set, label defined */
    212  1.1  cgd 	u_int	s_used : 1;	/* variable/label used */
    213  1.1  cgd 	u_int	s_arg : 1;	/* symbol is function argument */
    214  1.1  cgd 	u_int	s_reg : 1;	/* symbol is register variable */
    215  1.1  cgd 	u_int	s_defarg : 1;	/* undefined symbol in old style function
    216  1.1  cgd 				   definition */
    217  1.1  cgd 	u_int	s_rimpl : 1;	/* return value of function implizit decl. */
    218  1.1  cgd 	u_int	s_osdef : 1;	/* symbol stems from old style function def. */
    219  1.4  jpo 	u_int	s_inline : 1;	/* true if this is a inline function */
    220  1.1  cgd 	struct	sym *s_xsym;	/* for local declared external symbols pointer
    221  1.1  cgd 				   to external symbol with same name */
    222  1.1  cgd 	def_t	s_def;		/* declared, tentative defined, defined */
    223  1.1  cgd 	scl_t	s_scl;		/* storage class */
    224  1.1  cgd 	int	s_blklev;	/* level of declaration, -1 if not in symbol
    225  1.1  cgd 				   table */
    226  1.1  cgd 	type_t	*s_type;	/* type */
    227  1.1  cgd 	val_t	s_value;	/* value (if enumcon) */
    228  1.1  cgd 	union {
    229  1.1  cgd 		str_t	*_s_st;	/* tag, if it is a struct/union member */
    230  1.1  cgd 		enum_t	*_s_et;	/* tag, if it is a enumerator */
    231  1.1  cgd 		tspec_t	_s_tsp;	/* type (only for keywords) */
    232  1.1  cgd 		tqual_t	_s_tqu;	/* qualifier (only for keywords) */
    233  1.1  cgd 		struct	sym *_s_args; /* arguments in old style function
    234  1.1  cgd 					 definitions */
    235  1.1  cgd 	} u;
    236  1.1  cgd 	struct	sym *s_link;	/* next symbol with same hash value */
    237  1.1  cgd 	struct	sym **s_rlink;	/* pointer to s_link of prev. symbol */
    238  1.1  cgd 	struct	sym *s_nxt;	/* next struct/union member, enumerator,
    239  1.1  cgd 				   argument */
    240  1.1  cgd 	struct	sym *s_dlnxt; 	/* next symbol declared on same level */
    241  1.1  cgd } sym_t;
    242  1.1  cgd 
    243  1.1  cgd #define	s_styp	u._s_st
    244  1.1  cgd #define	s_etyp	u._s_et
    245  1.1  cgd #define	s_tspec	u._s_tsp
    246  1.1  cgd #define	s_tqual	u._s_tqu
    247  1.1  cgd #define	s_args	u._s_args
    248  1.1  cgd 
    249  1.1  cgd /*
    250  1.1  cgd  * Used to keep some informations about symbols before they are entered
    251  1.1  cgd  * into the symbol table.
    252  1.1  cgd  */
    253  1.1  cgd typedef	struct sbuf {
    254  1.1  cgd 	const	char *sb_name;		/* name of symbol */
    255  1.1  cgd 	size_t	sb_len;			/* length (without '\0') */
    256  1.1  cgd 	int	sb_hash;		/* hash value */
    257  1.1  cgd 	sym_t	*sb_sym;		/* symbol table entry */
    258  1.1  cgd 	struct	sbuf *sb_nxt;		/* for freelist */
    259  1.1  cgd } sbuf_t;
    260  1.1  cgd 
    261  1.1  cgd 
    262  1.1  cgd /*
    263  1.1  cgd  * tree node
    264  1.1  cgd  */
    265  1.1  cgd typedef	struct tnode {
    266  1.1  cgd 	op_t	tn_op;		/* operator */
    267  1.1  cgd 	type_t	*tn_type;	/* type */
    268  1.1  cgd 	u_int	tn_lvalue : 1;	/* node is lvalue */
    269  1.1  cgd 	u_int	tn_cast : 1;	/* if tn_op == CVT its an explizit cast */
    270  1.1  cgd 	u_int	tn_parn : 1;	/* node parenthesized */
    271  1.1  cgd 	union {
    272  1.1  cgd 		struct {
    273  1.1  cgd 			struct	tnode *_tn_left;	/* (left) operand */
    274  1.1  cgd 			struct	tnode *_tn_right;	/* right operand */
    275  1.1  cgd 		} tn_s;
    276  1.1  cgd 		sym_t	*_tn_sym;	/* symbol if op == NAME */
    277  1.1  cgd 		val_t	*_tn_val;	/* value if op == CON */
    278  1.1  cgd 		strg_t	*_tn_strg;	/* string if op == STRING */
    279  1.1  cgd 	} tn_u;
    280  1.1  cgd } tnode_t;
    281  1.1  cgd 
    282  1.1  cgd #define	tn_left	tn_u.tn_s._tn_left
    283  1.1  cgd #define tn_right tn_u.tn_s._tn_right
    284  1.1  cgd #define tn_sym	tn_u._tn_sym
    285  1.1  cgd #define	tn_val	tn_u._tn_val
    286  1.1  cgd #define	tn_strg	tn_u._tn_strg
    287  1.1  cgd 
    288  1.1  cgd /*
    289  1.1  cgd  * For nested declarations a stack exists, which holds all information
    290  1.1  cgd  * needed for the current level. dcs points to the top element of this
    291  1.1  cgd  * stack.
    292  1.1  cgd  *
    293  1.1  cgd  * ctx describes the context of the current declaration. Its value is
    294  1.1  cgd  * one of
    295  1.1  cgd  *	EXTERN	global declarations
    296  1.1  cgd  *	MOS oder MOU declarations of struct or union members
    297  1.1  cgd  *	ENUMCON	declarations of enums
    298  1.1  cgd  *	ARG	declaration of arguments in old style function definitions
    299  1.1  cgd  *	PARG	declaration of arguments in function prototypes
    300  1.1  cgd  *	AUTO	declaration of local symbols
    301  1.1  cgd  *	ABSTRACT abstract declarations (sizeof, casts)
    302  1.1  cgd  *
    303  1.1  cgd  */
    304  1.1  cgd typedef	struct dinfo {
    305  1.3  jpo 	tspec_t	d_atyp;		/* VOID, CHAR, INT, FLOAT or DOUBLE */
    306  1.3  jpo 	tspec_t	d_smod;		/* SIGNED or UNSIGN */
    307  1.3  jpo 	tspec_t	d_lmod;		/* SHORT, LONG or QUAD */
    308  1.3  jpo 	scl_t	d_scl;		/* storage class */
    309  1.3  jpo 	type_t	*d_type;	/* after deftyp() pointer to the type used
    310  1.1  cgd 				   for all declarators */
    311  1.3  jpo 	sym_t	*d_rdcsym;	/* redeclared symbol */
    312  1.3  jpo 	int	d_offset;	/* offset of next structure member */
    313  1.3  jpo 	int	d_stralign;	/* alignment required for current structure */
    314  1.3  jpo 	scl_t	d_ctx;		/* context of declaration */
    315  1.3  jpo 	u_int	d_const : 1;	/* const in declaration specifiers */
    316  1.3  jpo 	u_int	d_volatile : 1;	/* volatile in declaration specifiers */
    317  1.4  jpo 	u_int	d_inline : 1;	/* inline in declaration specifiers */
    318  1.3  jpo 	u_int	d_mscl : 1;	/* multiple storage classes */
    319  1.3  jpo 	u_int	d_terr : 1;	/* invalid type combination */
    320  1.3  jpo 	u_int	d_nedecl : 1;	/* 1 if at least a tag is declared */
    321  1.3  jpo 	u_int	d_vararg : 1;	/* ... in in current function decl. */
    322  1.3  jpo 	u_int	d_proto : 1;	/* current funct. decl. is prototype */
    323  1.3  jpo 	u_int	d_notyp : 1;	/* set if no type specifier was present */
    324  1.6  jpo 	u_int	d_asm : 1;	/* set if d_ctx == AUTO and asm() present */
    325  1.3  jpo 	type_t	*d_tagtyp;	/* tag during member declaration */
    326  1.3  jpo 	sym_t	*d_fargs;	/* list of arguments during function def. */
    327  1.3  jpo 	pos_t	d_fdpos;	/* position of function definition */
    328  1.3  jpo 	sym_t	*d_dlsyms;	/* first symbol declared at this level */
    329  1.3  jpo 	sym_t	**d_ldlsym;	/* points to s_dlnxt in last symbol decl.
    330  1.1  cgd 				   at this level */
    331  1.3  jpo 	sym_t	*d_fpsyms;	/* symbols defined in prototype */
    332  1.3  jpo 	struct	dinfo *d_nxt;	/* next level */
    333  1.1  cgd } dinfo_t;
    334  1.1  cgd 
    335  1.1  cgd /*
    336  1.1  cgd  * Type of stack which is used for initialisation of aggregate types.
    337  1.1  cgd  */
    338  1.1  cgd typedef	struct	istk {
    339  1.1  cgd 	type_t	*i_type;		/* type of initialisation */
    340  1.1  cgd 	type_t	*i_subt;		/* type of next level */
    341  1.1  cgd 	u_int	i_brace : 1;		/* need } for pop */
    342  1.1  cgd 	u_int	i_nolimit : 1;		/* incomplete array type */
    343  1.1  cgd 	sym_t	*i_mem;			/* next structure member */
    344  1.1  cgd 	int	i_cnt;			/* # of remaining elements */
    345  1.1  cgd 	struct	istk *i_nxt;		/* previous level */
    346  1.1  cgd } istk_t;
    347  1.1  cgd 
    348  1.1  cgd /*
    349  1.1  cgd  * Used to collect information about pointers and qualifiers in
    350  1.1  cgd  * declarators.
    351  1.1  cgd  */
    352  1.1  cgd typedef	struct pqinf {
    353  1.1  cgd 	int	p_pcnt;			/* number of asterisks */
    354  1.1  cgd 	u_int	p_const : 1;
    355  1.1  cgd 	u_int	p_volatile : 1;
    356  1.1  cgd 	struct	pqinf *p_nxt;
    357  1.1  cgd } pqinf_t;
    358  1.1  cgd 
    359  1.1  cgd /*
    360  1.1  cgd  * Case values are stored in a list of type clst_t.
    361  1.1  cgd  */
    362  1.1  cgd typedef	struct clst {
    363  1.1  cgd 	val_t	cl_val;
    364  1.1  cgd 	struct	clst *cl_nxt;
    365  1.1  cgd } clst_t;
    366  1.1  cgd 
    367  1.1  cgd /*
    368  1.1  cgd  * Used to keep informations about nested control statements.
    369  1.1  cgd  */
    370  1.1  cgd typedef struct cstk {
    371  1.1  cgd 	int	c_env;			/* type of statement (T_IF, ...) */
    372  1.1  cgd 	u_int	c_loop : 1;		/* continue && break are valid */
    373  1.1  cgd 	u_int	c_switch : 1;		/* case && break are valid */
    374  1.1  cgd 	u_int	c_break : 1;		/* loop/switch has break */
    375  1.1  cgd 	u_int	c_cont : 1;		/* loop has continue */
    376  1.1  cgd 	u_int	c_default : 1;		/* switch has default */
    377  1.1  cgd 	u_int	c_infinite : 1;		/* break condition always false
    378  1.1  cgd 					   (for (;;), while (1)) */
    379  1.1  cgd 	u_int	c_rchif : 1;		/* end of if-branch reached */
    380  1.1  cgd 	u_int	c_noretval : 1;		/* had "return;" */
    381  1.1  cgd 	u_int	c_retval : 1;		/* had "return (e);" */
    382  1.1  cgd 	type_t	*c_swtype;		/* type of switch expression */
    383  1.1  cgd 	clst_t	*c_clst;		/* list of case values */
    384  1.1  cgd 	struct	mbl *c_fexprm;		/* saved memory for end of loop
    385  1.1  cgd 					   expression in for() */
    386  1.1  cgd 	tnode_t	*c_f3expr;		/* end of loop expr in for() */
    387  1.1  cgd 	pos_t	c_fpos;			/* position of end of loop expr */
    388  1.1  cgd 	pos_t	c_cfpos;	        /* same for csrc_pos */
    389  1.1  cgd 	struct	cstk *c_nxt;		/* outer control statement */
    390  1.1  cgd } cstk_t;
    391  1.1  cgd 
    392  1.1  cgd #include "externs1.h"
    393