Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/xlint lint: clean up comments



details:   https://anonhg.NetBSD.org/src/rev/8af2564e62a5
branches:  trunk
changeset: 985174:8af2564e62a5
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Aug 10 17:31:44 2021 +0000

description:
lint: clean up comments

diffstat:

 usr.bin/xlint/common/lint.h    |   4 ++--
 usr.bin/xlint/lint1/mem1.c     |  10 +++++++---
 usr.bin/xlint/lint2/externs2.h |   4 ++--
 3 files changed, 11 insertions(+), 7 deletions(-)

diffs (74 lines):

diff -r 30e0a28c3708 -r 8af2564e62a5 usr.bin/xlint/common/lint.h
--- a/usr.bin/xlint/common/lint.h       Tue Aug 10 17:12:31 2021 +0000
+++ b/usr.bin/xlint/common/lint.h       Tue Aug 10 17:31:44 2021 +0000
@@ -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 @@
        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 */
diff -r 30e0a28c3708 -r 8af2564e62a5 usr.bin/xlint/lint1/mem1.c
--- a/usr.bin/xlint/lint1/mem1.c        Tue Aug 10 17:12:31 2021 +0000
+++ b/usr.bin/xlint/lint1/mem1.c        Tue Aug 10 17:31:44 2021 +0000
@@ -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 @@
 }
 
 
-/* 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 @@
        return xgetblk(&mblks[l], s);
 }
 
+/*
+ * Return allocated memory for the current mem_block_level, initialized with
+ * zero.
+ */
 void *
 getblk(size_t s)
 {
diff -r 30e0a28c3708 -r 8af2564e62a5 usr.bin/xlint/lint2/externs2.h
--- a/usr.bin/xlint/lint2/externs2.h    Tue Aug 10 17:12:31 2021 +0000
+++ b/usr.bin/xlint/lint2/externs2.h    Tue Aug 10 17:31:44 2021 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index