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: refrain from renaming the grammar ...



details:   https://anonhg.NetBSD.org/src/rev/f51d22aa8a16
branches:  trunk
changeset: 984220:f51d22aa8a16
user:      rillig <rillig%NetBSD.org@localhost>
date:      Mon Jun 28 09:01:48 2021 +0000

description:
lint: refrain from renaming the grammar rule 'pointer'

That rule is called 'pointer' by C99 as well.

No functional change.

diffstat:

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

diffs (29 lines):

diff -r 723b0f260ea8 -r f51d22aa8a16 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Mon Jun 28 09:00:45 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Mon Jun 28 09:01:48 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.243 2021/06/28 08:52:55 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.244 2021/06/28 09:01:48 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.243 2021/06/28 08:52:55 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.244 2021/06/28 09:01:48 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1199,8 +1199,7 @@
          }
        ;
 
-/* TODO: rename 'pointer' to something less ambiguous, maybe 'pointer_level' */
-pointer:
+pointer:                       /* C99 6.7.5 */
          asterisk
        | asterisk type_qualifier_list {
                $$ = merge_qualified_pointer($1, $2);



Home | Main Index | Thread Index | Old Index