Module Name: src Committed By: rillig Date: Sun Aug 22 14:50:07 UTC 2021
Modified Files: src/usr.bin/xlint/common: externs.h inittyp.c src/usr.bin/xlint/lint1: externs1.h src/usr.bin/xlint/lint2: externs2.h Log Message: lint: remove Tflag and pflag from common declarations These flags are only needed by lint1 and lint2, but not by the driver xlint. No functional change. To generate a diff of this commit: cvs rdiff -u -r1.18 -r1.19 src/usr.bin/xlint/common/externs.h cvs rdiff -u -r1.24 -r1.25 src/usr.bin/xlint/common/inittyp.c cvs rdiff -u -r1.129 -r1.130 src/usr.bin/xlint/lint1/externs1.h cvs rdiff -u -r1.11 -r1.12 src/usr.bin/xlint/lint2/externs2.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/common/externs.h diff -u src/usr.bin/xlint/common/externs.h:1.18 src/usr.bin/xlint/common/externs.h:1.19 --- src/usr.bin/xlint/common/externs.h:1.18 Tue Aug 3 17:44:58 2021 +++ src/usr.bin/xlint/common/externs.h Sun Aug 22 14:50:06 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: externs.h,v 1.18 2021/08/03 17:44:58 rillig Exp $ */ +/* $NetBSD: externs.h,v 1.19 2021/08/22 14:50:06 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -32,13 +32,6 @@ */ /* - * main[12].c - */ -extern bool pflag; -/* Treat _Bool as incompatible to all other scalar types. */ -extern bool Tflag; - -/* * inittyp.c */ extern void inittyp(void); Index: src/usr.bin/xlint/common/inittyp.c diff -u src/usr.bin/xlint/common/inittyp.c:1.24 src/usr.bin/xlint/common/inittyp.c:1.25 --- src/usr.bin/xlint/common/inittyp.c:1.24 Wed Jun 30 10:56:24 2021 +++ src/usr.bin/xlint/common/inittyp.c Sun Aug 22 14:50:06 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: inittyp.c,v 1.24 2021/06/30 10:56:24 rillig Exp $ */ +/* $NetBSD: inittyp.c,v 1.25 2021/08/22 14:50:06 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,13 +37,17 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: inittyp.c,v 1.24 2021/06/30 10:56:24 rillig Exp $"); +__RCSID("$NetBSD: inittyp.c,v 1.25 2021/08/22 14:50:06 rillig Exp $"); #endif #include <limits.h> #include <stdlib.h> -#include "lint.h" +#if defined(IS_LINT1) +#include "lint1.h" +#else +#include "lint2.h" +#endif /* various type information */ ttab_t ttab[NTSPEC]; Index: src/usr.bin/xlint/lint1/externs1.h diff -u src/usr.bin/xlint/lint1/externs1.h:1.129 src/usr.bin/xlint/lint1/externs1.h:1.130 --- src/usr.bin/xlint/lint1/externs1.h:1.129 Thu Aug 19 21:13:58 2021 +++ src/usr.bin/xlint/lint1/externs1.h Sun Aug 22 14:50:06 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: externs1.h,v 1.129 2021/08/19 21:13:58 rillig Exp $ */ +/* $NetBSD: externs1.h,v 1.130 2021/08/22 14:50:06 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -42,6 +42,7 @@ extern bool eflag; extern bool Fflag; extern bool gflag; extern bool hflag; +extern bool pflag; extern bool rflag; extern bool sflag; extern bool tflag; @@ -51,6 +52,7 @@ extern bool yflag; extern bool wflag; extern bool zflag; extern bool Sflag; +extern bool Tflag; extern bool Pflag; extern void norecover(void); Index: src/usr.bin/xlint/lint2/externs2.h diff -u src/usr.bin/xlint/lint2/externs2.h:1.11 src/usr.bin/xlint/lint2/externs2.h:1.12 --- src/usr.bin/xlint/lint2/externs2.h:1.11 Sun Aug 22 04:43:44 2021 +++ src/usr.bin/xlint/lint2/externs2.h Sun Aug 22 14:50:06 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: externs2.h,v 1.11 2021/08/22 04:43:44 rillig Exp $ */ +/* $NetBSD: externs2.h,v 1.12 2021/08/22 14:50:06 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -44,7 +44,8 @@ extern bool tflag; extern bool Hflag; extern bool hflag; extern bool Fflag; - +extern bool pflag; +extern bool Tflag; /* * hash.c