Source-Changes-HG archive

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

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



details:   https://anonhg.NetBSD.org/src/rev/42f857e54150
branches:  trunk
changeset: 366569:42f857e54150
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon May 30 23:27:45 2022 +0000

description:
lint: clean up comments

No binary change.

diffstat:

 tests/usr.bin/xlint/lint2/msg_000.ln |   4 ++--
 usr.bin/xlint/lint2/chk.c            |  13 +++++++------
 2 files changed, 9 insertions(+), 8 deletions(-)

diffs (54 lines):

diff -r e95a33b0fadd -r 42f857e54150 tests/usr.bin/xlint/lint2/msg_000.ln
--- a/tests/usr.bin/xlint/lint2/msg_000.ln      Mon May 30 23:02:02 2022 +0000
+++ b/tests/usr.bin/xlint/lint2/msg_000.ln      Mon May 30 23:27:45 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: msg_000.ln,v 1.3 2021/09/12 16:07:16 rillig Exp $
+# $NetBSD: msg_000.ln,v 1.4 2022/05/30 23:27:45 rillig Exp $
 #
 # Test data for message 0 of lint2:
 #      %s used( %s ), but not defined
@@ -24,7 +24,7 @@
 #      'p1'    argument 1 is a positive constant
 #      'i'     the return value of the function call is ignored
 #      '16...' the name of the called function
-#      'f2'    it's a function with 2 arguments
+#      'f2'    the function is called with 2 arguments
 #      'I'     the first argument has type 'int'
 #      'D'     the first argument has type 'double'
 #      'I'     the return type of the function is (implicitly) 'int'
diff -r e95a33b0fadd -r 42f857e54150 usr.bin/xlint/lint2/chk.c
--- a/usr.bin/xlint/lint2/chk.c Mon May 30 23:02:02 2022 +0000
+++ b/usr.bin/xlint/lint2/chk.c Mon May 30 23:27:45 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chk.c,v 1.48 2022/05/20 21:18:55 rillig Exp $ */
+/* $NetBSD: chk.c,v 1.49 2022/05/30 23:27:45 rillig Exp $ */
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All Rights Reserved.
@@ -38,7 +38,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID)
-__RCSID("$NetBSD: chk.c,v 1.48 2022/05/20 21:18:55 rillig Exp $");
+__RCSID("$NetBSD: chk.c,v 1.49 2022/05/30 23:27:45 rillig Exp $");
 #endif
 
 #include <ctype.h>
@@ -264,12 +264,13 @@
                                 * union, also if the return value is ignored.
                                 * This is necessary because the caller must
                                 * allocate stack space for the return value.
-                                * If it does not, the return value would over-
-                                * write other data.
-                                * XXX Following massage may be confusing
+                                * If it does not, the return value would
+                                * overwrite other data.
+                                *
+                                * XXX Following message may be confusing
                                 * because it appears also if the return value
                                 * was declared inconsistently. But this
-                                * behavior matches pcc based lint, so it is
+                                * behavior matches pcc-based lint, so it is
                                 * accepted for now.
                                 */
                                pos1 = xstrdup(mkpos(&def->s_pos));



Home | Main Index | Thread Index | Old Index