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: sort tokens in grammar
details: https://anonhg.NetBSD.org/src/rev/cdff332812dd
branches: trunk
changeset: 958760:cdff332812dd
user: rillig <rillig%NetBSD.org@localhost>
date: Mon Jan 18 17:59:51 2021 +0000
description:
lint: sort tokens in grammar
diffstat:
usr.bin/xlint/lint1/cgram.y | 26 ++++++++++++--------------
1 files changed, 12 insertions(+), 14 deletions(-)
diffs (60 lines):
diff -r 98eaf52a5714 -r cdff332812dd usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Mon Jan 18 17:54:50 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Mon Jan 18 17:59:51 2021 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.152 2021/01/18 17:54:50 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.153 2021/01/18 17:59:51 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.152 2021/01/18 17:54:50 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.153 2021/01/18 17:59:51 rillig Exp $");
#endif
#include <limits.h>
@@ -185,30 +185,28 @@
/* struct or union */
%token <y_tspec> T_STRUCT_OR_UNION
-/* enum */
-%token T_ENUM
-
/* remaining keywords */
+%token T_ASM
+%token T_BREAK
%token T_CASE
+%token T_CONTINUE
%token T_DEFAULT
-%token T_IF
+%token T_DO
%token T_ELSE
-%token T_SWITCH
-%token T_DO
-%token T_WHILE
+%token T_ENUM
%token T_FOR
%token T_GOTO
-%token T_CONTINUE
-%token T_BREAK
+%token T_IF
+%token T_PACKED
%token T_RETURN
-%token T_ASM
+%token T_SWITCH
%token T_SYMBOLRENAME
-%token T_PACKED
+%token T_WHILE
/* Type Attributes */
%token <y_type> T_ATTRIBUTE
%token <y_type> T_AT_ALIAS
+%token <y_type> T_AT_ALIGNED
%token <y_type> T_AT_ALLOC_SIZE
-%token <y_type> T_AT_ALIGNED
%token <y_type> T_AT_ALWAYS_INLINE
%token <y_type> T_AT_BOUNDED
%token <y_type> T_AT_BUFFER
Home |
Main Index |
Thread Index |
Old Index