summaryrefslogtreecommitdiff
path: root/usr.bin/xlint/lint1
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-11 20:02:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2005-12-11 20:02:10 +0000
commitb9e581298f9708b69e139b48afe7e22eb881e5cd (patch)
tree6821da957c8fa52bac6898dcffe3257d68669bc0 /usr.bin/xlint/lint1
parentc9f39c4ab6f74086c291ed477eaeda2e1ffec5c2 (diff)
make this compile again
Diffstat (limited to 'usr.bin/xlint/lint1')
-rw-r--r--usr.bin/xlint/lint1/scan.l10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/xlint/lint1/scan.l b/usr.bin/xlint/lint1/scan.l
index 45d68f9a405..5b91da5edef 100644
--- a/usr.bin/xlint/lint1/scan.l
+++ b/usr.bin/xlint/lint1/scan.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: scan.l,v 1.24 2005/12/10 18:51:54 martin Exp $ */
+/* $OpenBSD: scan.l,v 1.25 2005/12/11 20:02:09 deraadt Exp $ */
/* $NetBSD: scan.l,v 1.8 1995/10/23 13:38:51 jpo Exp $ */
/*
@@ -34,7 +34,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: scan.l,v 1.24 2005/12/10 18:51:54 martin Exp $";
+static char rcsid[] = "$OpenBSD: scan.l,v 1.25 2005/12/11 20:02:09 deraadt Exp $";
#endif
#include <stdlib.h>
@@ -184,7 +184,7 @@ static struct kwtab {
scl_t kw_scl; /* storage class if kw_token T_SCLASS */
tspec_t kw_tspec; /* type spec. if kw_token T_TYPE or T_SOU */
tqual_t kw_tqual; /* type qual. if kw_token T_QUAL */
- };
+ } kw_u;
u_int kw_stdc : 1; /* STDC keyword */
u_int kw_gcc : 1; /* GCC keyword */
} kwtab[] = {
@@ -239,6 +239,10 @@ static struct kwtab {
{ NULL, 0, { 0 }, 0, 0 }
};
+#define kw_scl kw_u.kw_scl
+#define kw_tspec kw_u.kw_tspec
+#define kw_tqual kw_u.kw_tqual
+
/* Symbol table */
static sym_t *symtab[HSHSIZ1];