1988-09-20 16:44:27 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
|
|
|
/* $Header$ */
|
|
|
|
/* Lint output definition */
|
|
|
|
|
1988-10-12 16:05:17 +00:00
|
|
|
/* Values for ar_class */
|
|
|
|
#define ArgFormal 0
|
|
|
|
#define ArgExpr 1 /* actual */
|
|
|
|
#define ArgConst 2 /* integer constant */
|
|
|
|
#define ArgString 3 /* string */
|
1991-07-05 11:33:49 +00:00
|
|
|
#define ArgEllipsis 4 /* ellipsis */
|
1988-10-12 16:05:17 +00:00
|
|
|
|
|
|
|
struct argument {
|
|
|
|
struct argument *next;
|
|
|
|
struct type *ar_type;
|
|
|
|
int ar_class; /* for constant parameters */
|
|
|
|
union const_arg {
|
|
|
|
arith ca_value;
|
|
|
|
struct {
|
|
|
|
char *cas_value;
|
|
|
|
int cas_len;
|
|
|
|
} ca_string;
|
|
|
|
} ar_object;
|
1988-09-20 16:44:27 +00:00
|
|
|
};
|
|
|
|
|
1988-10-12 16:05:17 +00:00
|
|
|
#define CAA_VALUE ar_object.ca_value
|
|
|
|
#define CAS_VALUE ar_object.ca_string.cas_value
|
|
|
|
#define CAS_LEN ar_object.ca_string.cas_len
|
|
|
|
|
|
|
|
/* ALLOCDEF "argument" 10 */
|
1988-09-20 16:44:27 +00:00
|
|
|
|
|
|
|
struct outdef {
|
|
|
|
char od_class;
|
|
|
|
int od_statnr;
|
|
|
|
char *od_name;
|
|
|
|
char *od_file;
|
|
|
|
unsigned int od_line;
|
|
|
|
int od_nrargs;
|
1988-10-12 16:05:17 +00:00
|
|
|
struct argument *od_arg; /* a list of the types of the
|
1988-09-20 16:44:27 +00:00
|
|
|
* formal parameters */
|
|
|
|
int od_valreturned;
|
|
|
|
/* NOVALRETURNED, VALRETURNED, NORETURN; see l_lint.h */
|
|
|
|
int od_valused;
|
|
|
|
/* USED, IGNORED, SET, VOIDED; see l_lint.h */
|
|
|
|
struct type *od_type;
|
|
|
|
};
|