From 4e07a05b2dbd7e734d2dd1e1a775edb0e39fa972 Mon Sep 17 00:00:00 2001 From: apb Date: Sat, 2 Aug 2008 12:05:48 +0000 Subject: [PATCH] Lint predefines the following symbols: "__LINT__", "lint", "__lint", and "__lint__"; not only "lint" as the man page previously claimed. --- usr.bin/xlint/xlint/lint.1 | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/usr.bin/xlint/xlint/lint.1 b/usr.bin/xlint/xlint/lint.1 index 1733cd6c0729..d4653bc88e35 100644 --- a/usr.bin/xlint/xlint/lint.1 +++ b/usr.bin/xlint/xlint/lint.1 @@ -1,4 +1,4 @@ -.\" $NetBSD: lint.1,v 1.32 2008/07/31 15:24:09 christos Exp $ +.\" $NetBSD: lint.1,v 1.33 2008/08/02 12:05:48 apb Exp $ .\" .\" Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. .\" Copyright (c) 1994, 1995 Jochen Pohl @@ -30,7 +30,7 @@ .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd July 31, 2008 +.Dd August 2, 2008 .Dt LINT 1 .Os .Sh NAME @@ -116,15 +116,18 @@ The list of errors .Nm produces are enumerated in .Xr lint 7 . +.Pp .Nm runs the C preprocessor as its first phase, with the -preprocessor symbol -.Sy lint +following preprocessor symbols defined to allow certain questionable code to be altered -or skipped by -.Nm . -Therefore, this symbol should be thought of as a reserved -word for all code that is to be checked by +or skipped: +.Sy __LINT__ , +.Sy lint , +.Sy __lint , +.Sy __lint__ . +These symbols should therefore be thought of as reserved +words for all code that is to be checked by .Nm . .Pp Among the possible problems that are currently noted are