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: reduce nesting of function calls
details: https://anonhg.NetBSD.org/src/rev/d8e2afceef98
branches: trunk
changeset: 979490:d8e2afceef98
user: rillig <rillig%NetBSD.org@localhost>
date: Wed Dec 30 01:44:32 2020 +0000
description:
lint: reduce nesting of function calls
diffstat:
usr.bin/xlint/lint1/cgram.y | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (30 lines):
diff -r 27e0b57fc6d7 -r d8e2afceef98 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Wed Dec 30 01:42:31 2020 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Wed Dec 30 01:44:32 2020 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.117 2020/12/30 01:02:38 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.118 2020/12/30 01:44:32 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.117 2020/12/30 01:02:38 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.118 2020/12/30 01:44:32 rillig Exp $");
#endif
#include <limits.h>
@@ -1165,8 +1165,8 @@
$$ = merge_pointers_and_qualifiers($1, $2);
}
| asterisk type_qualifier_list pointer {
- $$ = merge_pointers_and_qualifiers(
- merge_pointers_and_qualifiers($1, $2), $3);
+ $$ = merge_pointers_and_qualifiers($1, $2);
+ $$ = merge_pointers_and_qualifiers($$, $3);
}
;
Home |
Main Index |
Thread Index |
Old Index