Module Name: src Committed By: rillig Date: Sat Jul 10 16:39:43 UTC 2021
Modified Files: src/usr.bin/xlint/lint1: cgram.y Log Message: lint: merge duplicate code from grammar rule clrtyp_typespec No functional change. To generate a diff of this commit: cvs rdiff -u -r1.290 -r1.291 src/usr.bin/xlint/lint1/cgram.y Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/usr.bin/xlint/lint1/cgram.y diff -u src/usr.bin/xlint/lint1/cgram.y:1.290 src/usr.bin/xlint/lint1/cgram.y:1.291 --- src/usr.bin/xlint/lint1/cgram.y:1.290 Sat Jul 10 15:04:07 2021 +++ src/usr.bin/xlint/lint1/cgram.y Sat Jul 10 16:39:43 2021 @@ -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 @@ qualifier_or_storage_class: ; clrtyp_typespec: - clrtyp notype_typespec { + clrtyp typespec { $$ = $2; } - | clrtyp T_TYPENAME { - $$ = getsym($2)->s_type; - } ; typespec: