summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2023-06-30 21:39:54 +0000
committerrillig <rillig@NetBSD.org>2023-06-30 21:39:54 +0000
commit6ef0eac6dd332c75fc1cf85f941ede5d2f04767c (patch)
tree09f1c080ca35b988dbc6bc6601a8bd6456c8eb9e /tests
parentede616db90b634153005dcefd498f6509c6506d3 (diff)
lint: clean up names related to declaration levels
The previous prefix 'DK_' (declaration level kind) had a conflict with the 'DK_' (designator kind) in init.c, so change the prefix to 'DLK_'. The new name for dinfo_t is decl_level, which is more expressive. No functional change.
Diffstat (limited to 'tests')
-rw-r--r--tests/usr.bin/xlint/lint1/decl_enum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/usr.bin/xlint/lint1/decl_enum.c b/tests/usr.bin/xlint/lint1/decl_enum.c
index 65c4977f834..e8e522e9c22 100644
--- a/tests/usr.bin/xlint/lint1/decl_enum.c
+++ b/tests/usr.bin/xlint/lint1/decl_enum.c
@@ -1,4 +1,4 @@
-/* $NetBSD: decl_enum.c,v 1.3 2022/04/16 09:22:25 rillig Exp $ */
+/* $NetBSD: decl_enum.c,v 1.4 2023/06/30 21:39:54 rillig Exp $ */
# 3 "decl_enum.c"
/*
@@ -39,7 +39,7 @@ enum outer {
* enum constant would become the value of the last seen inner enum
* constant. This is because 'enumval' is a simple scalar variable,
* not a stack. If it should ever become necessary to account for
- * nested enum declarations, a field should be added in dinfo_t.
+ * nested enum declarations, a field should be added in decl_level.
*/
o2 __attribute__((__deprecated__)),
o3 = i3