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: document grammar rule that deviate...



details:   https://anonhg.NetBSD.org/src/rev/2fe688788e4c
branches:  trunk
changeset: 984420:2fe688788e4c
user:      rillig <rillig%NetBSD.org@localhost>
date:      Tue Jul 06 16:02:44 2021 +0000

description:
lint: document grammar rule that deviates from C99

diffstat:

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

diffs (27 lines):

diff -r b121d90d5c65 -r 2fe688788e4c usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Tue Jul 06 14:22:16 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Tue Jul 06 16:02:44 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.257 2021/07/06 05:39:27 rillig Exp $ */
+/* $NetBSD: cgram.y,v 1.258 2021/07/06 16:02:44 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.257 2021/07/06 05:39:27 rillig Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.258 2021/07/06 16:02:44 rillig Exp $");
 #endif
 
 #include <limits.h>
@@ -1300,6 +1300,7 @@
          }
        ;
 
+/* XXX: C99 6.7.5 defines the same name, but it looks completely different. */
 parameter_declaration:
          declmods deftyp {
                $$ = declare_argument(abstract_name(), false);



Home | Main Index | Thread Index | Old Index