Module Name: src Committed By: rillig Date: Tue Aug 10 17:31:44 UTC 2021
Modified Files: src/usr.bin/xlint/common: lint.h src/usr.bin/xlint/lint1: mem1.c src/usr.bin/xlint/lint2: externs2.h Log Message: lint: clean up comments To generate a diff of this commit: cvs rdiff -u -r1.27 -r1.28 src/usr.bin/xlint/common/lint.h cvs rdiff -u -r1.47 -r1.48 src/usr.bin/xlint/lint1/mem1.c cvs rdiff -u -r1.9 -r1.10 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/lint.h diff -u src/usr.bin/xlint/common/lint.h:1.27 src/usr.bin/xlint/common/lint.h:1.28 --- src/usr.bin/xlint/common/lint.h:1.27 Sat Apr 10 18:36:27 2021 +++ src/usr.bin/xlint/common/lint.h Tue Aug 10 17:31:44 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: lint.h,v 1.27 2021/04/10 18:36:27 rillig Exp $ */ +/* $NetBSD: lint.h,v 1.28 2021/08/10 17:31:44 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -80,7 +80,7 @@ typedef enum { PTR, /* pointer */ ARRAY, /* array */ FUNC, /* function */ - COMPLEX, /* _Complex */ + COMPLEX, /* keyword "_Complex", only used in the parser */ FCOMPLEX, /* float _Complex */ DCOMPLEX, /* double _Complex */ LCOMPLEX /* long double _Complex */ Index: src/usr.bin/xlint/lint1/mem1.c diff -u src/usr.bin/xlint/lint1/mem1.c:1.47 src/usr.bin/xlint/lint1/mem1.c:1.48 --- src/usr.bin/xlint/lint1/mem1.c:1.47 Sun Aug 1 18:07:35 2021 +++ src/usr.bin/xlint/lint1/mem1.c Tue Aug 10 17:31:44 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: mem1.c,v 1.47 2021/08/01 18:07:35 rillig Exp $ */ +/* $NetBSD: mem1.c,v 1.48 2021/08/10 17:31:44 rillig Exp $ */ /* * Copyright (c) 1994, 1995 Jochen Pohl @@ -37,7 +37,7 @@ #include <sys/cdefs.h> #if defined(__RCSID) && !defined(lint) -__RCSID("$NetBSD: mem1.c,v 1.47 2021/08/01 18:07:35 rillig Exp $"); +__RCSID("$NetBSD: mem1.c,v 1.48 2021/08/10 17:31:44 rillig Exp $"); #endif #include <sys/types.h> @@ -297,7 +297,7 @@ initmem(void) } -/* Allocate memory associated with level l. */ +/* Allocate memory associated with level l, initialized with zero. */ void * getlblk(size_t l, size_t s) { @@ -310,6 +310,10 @@ getlblk(size_t l, size_t s) return xgetblk(&mblks[l], s); } +/* + * Return allocated memory for the current mem_block_level, initialized with + * zero. + */ void * getblk(size_t s) { Index: src/usr.bin/xlint/lint2/externs2.h diff -u src/usr.bin/xlint/lint2/externs2.h:1.9 src/usr.bin/xlint/lint2/externs2.h:1.10 --- src/usr.bin/xlint/lint2/externs2.h:1.9 Sat Jan 16 02:40:02 2021 +++ src/usr.bin/xlint/lint2/externs2.h Tue Aug 10 17:31:44 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: externs2.h,v 1.9 2021/01/16 02:40:02 rillig Exp $ */ +/* $NetBSD: externs2.h,v 1.10 2021/08/10 17:31:44 rillig Exp $ */ /* * Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved. @@ -33,7 +33,7 @@ */ /* - * main.c + * main2.c */ extern bool xflag; extern bool uflag;