Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/xlint/lint1 lint: fix and update comments about init...



details:   https://anonhg.NetBSD.org/src/rev/582b3529f266
branches:  trunk
changeset: 960716:582b3529f266
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Mar 27 13:17:42 2021 +0000

description:
lint: fix and update comments about initialization

diffstat:

 usr.bin/xlint/lint1/init.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r ba1709453b07 -r 582b3529f266 usr.bin/xlint/lint1/init.c
--- a/usr.bin/xlint/lint1/init.c        Sat Mar 27 13:08:20 2021 +0000
+++ b/usr.bin/xlint/lint1/init.c        Sat Mar 27 13:17:42 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: init.c,v 1.135 2021/03/27 13:08:20 rillig Exp $        */
+/*     $NetBSD: init.c,v 1.136 2021/03/27 13:17:42 rillig Exp $        */
 
 /*
  * Copyright (c) 1994, 1995 Jochen Pohl
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: init.c,v 1.135 2021/03/27 13:08:20 rillig Exp $");
+__RCSID("$NetBSD: init.c,v 1.136 2021/03/27 13:17:42 rillig Exp $");
 #endif
 
 #include <stdlib.h>
@@ -94,7 +94,7 @@
 
 
 /*
- * Type of stack which is used for initialization of aggregate types.
+ * Describes a single level of an ongoing initialization.
  *
  * XXX: Since C99, the initializers can be listed in arbitrary order by using
  * designators to specify the sub-object to be initialized.  The member names
@@ -401,8 +401,6 @@
 }
 
 /*
- * TODO: try whether a single-line output is more readable
- *
  * TODO: only log the top of the stack after each modifying operation
  *
  * TODO: wrap all write accesses to initstack_element in setter functions



Home | Main Index | Thread Index | Old Index