1 /* $NetBSD: lint.h,v 1.5 2002/03/07 18:29:56 tv Exp $ */
4 * Copyright (c) 1994, 1995 Jochen Pohl
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution.
15 * 3. All advertising materials mentioning features or use of this software
16 * must display the following acknowledgement:
17 * This product includes software developed by Jochen Pohl for
19 * 4. The name of the author may not be used to endorse or promote products
20 * derived from this software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
24 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
25 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
27 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
28 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
31 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37 #define HAVE_DECL_SYS_SIGNAME 1
40 #include <sys/types.h>
49 * Type specifiers, used in type structures (type_t) and otherwere.
53 SIGNED, /* keyword "signed", only used in the parser */
54 UNSIGN, /* keyword "unsigned", only used in the parser */
56 SCHAR, /* signed char */
57 UCHAR, /* unsigned char */
58 SHORT, /* (signed) short */
59 USHORT, /* unsigned short */
60 INT, /* (signed) int */
61 UINT, /* unsigned int */
62 LONG, /* (signed) long */
63 ULONG, /* unsigned long */
64 QUAD, /* (signed) long long */
65 UQUAD, /* unsigned long long */
67 DOUBLE, /* double or, with tflag, long float */
68 LDOUBLE, /* long double */
70 STRUCT, /* structure tag */
71 UNION, /* union tag */
80 * size of types, name and classification
83 int tt_sz; /* size in bits */
84 int tt_psz; /* size, different from tt_sz
86 tspec_t tt_styp; /* signed counterpart */
87 tspec_t tt_utyp; /* unsigned counterpart */
88 u_int tt_isityp : 1; /* 1 if integer type */
89 u_int tt_isutyp : 1; /* 1 if unsigned integer type */
90 u_int tt_isftyp : 1; /* 1 if floating point type */
91 u_int tt_isatyp : 1; /* 1 if arithmetic type */
92 u_int tt_issclt : 1; /* 1 if scalar type */
93 char *tt_name; /* Bezeichnung des Typs */
96 #define size(t) (ttab[t].tt_sz)
97 #define psize(t) (ttab[t].tt_psz)
98 #define styp(t) (ttab[t].tt_styp)
99 #define utyp(t) (ttab[t].tt_utyp)
100 #define isityp(t) (ttab[t].tt_isityp)
101 #define isutyp(t) (ttab[t].tt_isutyp)
102 #define isftyp(t) (ttab[t].tt_isftyp)
103 #define isatyp(t) (ttab[t].tt_isatyp)
104 #define issclt(t) (ttab[t].tt_issclt)
106 extern ttab_t ttab[];
110 NODECL, /* until now not declared */
112 TDEF, /* tentative defined */
117 * Following structure contains some data used for the output buffer.
120 char *o_buf; /* buffer */
121 char *o_end; /* first byte after buffer */
122 size_t o_len; /* length of buffer */
123 char *o_nxt; /* next free byte in buffer */