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: remove unused TBUILTIN_SIZEOF from...



details:   https://anonhg.NetBSD.org/src/rev/281f154ecd5d
branches:  trunk
changeset: 949212:281f154ecd5d
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jan 05 00:02:52 2021 +0000

description:
lint: remove unused TBUILTIN_SIZEOF from the C grammar

This token is not generated by the lexer, and it was misspelled anyway.
All other token names start with "T_", this one was missing the
underscore.

diffstat:

 usr.bin/xlint/lint1/cgram.y |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 208ccd4e29b6 -r 281f154ecd5d usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Mon Jan 04 23:58:19 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Tue Jan 05 00:02:52 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.130 2021/01/03 21:33:50 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.131 2021/01/05 00:02:52 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.130 2021/01/03 21:33:50 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.131 2021/01/05 00:02:52 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -259,7 +259,7 @@
 %left  T_SHFTOP
 %left  T_ADDOP
 %left  T_MULT T_DIVOP
-%right T_UNOP T_INCDEC T_SIZEOF TBUILTIN_SIZEOF T_ALIGNOF T_REAL T_IMAG
+%right T_UNOP T_INCDEC T_SIZEOF T_ALIGNOF T_REAL T_IMAG
 %left  T_LPAREN T_LBRACK T_STROP
 
 %token <y_sb>          T_NAME



Home | Main Index | Thread Index | Old Index