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: merge duplicate code from grammar ...
details: https://anonhg.NetBSD.org/src/rev/71561735e649
branches: trunk
changeset: 984504:71561735e649
user: rillig <rillig%NetBSD.org@localhost>
date: Sat Jul 10 16:39:43 2021 +0000
description:
lint: merge duplicate code from grammar rule clrtyp_typespec
No functional change.
diffstat:
usr.bin/xlint/lint1/cgram.y | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diffs (33 lines):
diff -r fe7435c065b2 -r 71561735e649 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Sat Jul 10 15:04:07 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Sat Jul 10 16:39:43 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.290 2021/07/10 15:04:07 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.291 2021/07/10 16:39:43 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.290 2021/07/10 15:04:07 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.291 2021/07/10 16:39:43 rillig Exp $");
#endif
#include <limits.h>
@@ -568,12 +568,9 @@
;
clrtyp_typespec:
- clrtyp notype_typespec {
+ clrtyp typespec {
$$ = $2;
}
- | clrtyp T_TYPENAME {
- $$ = getsym($2)->s_type;
- }
;
typespec:
Home |
Main Index |
Thread Index |
Old Index