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 indentation in C grammar
details: https://anonhg.NetBSD.org/src/rev/dadff06f1c23
branches: trunk
changeset: 363390:dadff06f1c23
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Mar 09 00:20:48 2022 +0000
description:
lint: fix indentation in C grammar
No functional change.
diffstat:
usr.bin/xlint/lint1/cgram.y | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (42 lines):
diff -r 6c462e885044 -r dadff06f1c23 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Tue Mar 08 23:24:20 2022 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Wed Mar 09 00:20:48 2022 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.387 2022/03/01 00:17:12 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.388 2022/03/09 00:20:48 rillig Exp $ */
/*
* Copyright (c) 1996 Christopher G. Demetriou. All Rights Reserved.
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.y,v 1.387 2022/03/01 00:17:12 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.388 2022/03/09 00:20:48 rillig Exp $");
#endif
#include <limits.h>
@@ -1833,16 +1833,17 @@
for_start
begin_type_declaration_specifiers end_type
notype_init_declarators T_SEMI
- expression_opt T_SEMI expression_opt T_RPAREN {
+ expression_opt T_SEMI
+ expression_opt T_RPAREN {
/* variable declaration in for loop */
c99ism(325);
for1(NULL, $6, $8);
clear_warning_flags();
}
- | for_start
- expression_opt T_SEMI
- expression_opt T_SEMI
- expression_opt T_RPAREN {
+ | for_start
+ expression_opt T_SEMI
+ expression_opt T_SEMI
+ expression_opt T_RPAREN {
for1($2, $4, $6);
clear_warning_flags();
}
Home |
Main Index |
Thread Index |
Old Index