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: clean up indentation and wrapping ...
details: https://anonhg.NetBSD.org/src/rev/3b2dfc06dc63
branches: trunk
changeset: 374138:3b2dfc06dc63
user: rillig <rillig%NetBSD.org@localhost>
date: Sun Apr 02 19:47:54 2023 +0000
description:
lint: clean up indentation and wrapping in C parser
diffstat:
usr.bin/xlint/lint1/cgram.y | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 5e8862462777 -r 3b2dfc06dc63 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sun Apr 02 18:23:02 2023 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sun Apr 02 19:47:54 2023 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.433 2023/02/06 21:01:55 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.434 2023/04/02 19:47:54 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID)
-__RCSID("$NetBSD: cgram.y,v 1.433 2023/02/06 21:01:55 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.434 2023/04/02 19:47:54 rillig Exp $");
#endif
#include <limits.h>
@@ -2058,9 +2058,9 @@ gcc_attribute_specifier_list:
gcc_attribute_specifier:
T_ATTRIBUTE T_LPAREN T_LPAREN {
- in_gcc_attribute = true;
+ in_gcc_attribute = true;
} gcc_attribute_list {
- in_gcc_attribute = false;
+ in_gcc_attribute = false;
} T_RPAREN T_RPAREN
;
@@ -2078,8 +2078,7 @@ gcc_attribute:
else if (is_either(name, "used", "__used__") ||
is_either(name, "unused", "__unused__"))
dcs_set_used();
- else if (is_either(name, "fallthrough",
- "__fallthrough__"))
+ else if (is_either(name, "fallthrough", "__fallthrough__"))
fallthru(1);
}
| T_NAME T_LPAREN T_RPAREN
Home |
Main Index |
Thread Index |
Old Index