Module Name: src
Committed By: rillig
Date: Sat Mar 20 13:00:43 UTC 2021
Modified Files:
src/usr.bin/xlint/lint1: lint1.h
Log Message:
lint: document the struct for declarations more precisely
No functional change.
To generate a diff of this commit:
cvs rdiff -u -r1.75 -r1.76 src/usr.bin/xlint/lint1/lint1.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/lint1/lint1.h
diff -u src/usr.bin/xlint/lint1/lint1.h:1.75 src/usr.bin/xlint/lint1/lint1.h:1.76
--- src/usr.bin/xlint/lint1/lint1.h:1.75 Fri Mar 19 08:21:26 2021
+++ src/usr.bin/xlint/lint1/lint1.h Sat Mar 20 13:00:43 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: lint1.h,v 1.75 2021/03/19 08:21:26 rillig Exp $ */
+/* $NetBSD: lint1.h,v 1.76 2021/03/20 13:00:43 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -309,15 +309,15 @@ typedef struct tnode {
/*
* For nested declarations a stack exists, which holds all information
- * needed for the current level. dcs points to the top element of this
+ * needed for the current level. dcs points to the innermost element of this
* stack.
*
* d_ctx describes the context of the current declaration. Its value is
* one of
* EXTERN global declarations
* MOS or MOU declarations of struct or union members
- * CTCONST declarations of enums
- * ARG declaration of arguments in old style function
+ * CTCONST declarations of enums or boolean constants
+ * ARG declaration of arguments in old-style function
* definitions
* PROTO_ARG declaration of arguments in function prototypes
* AUTO declaration of local symbols