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 Allow type attributes after function poi...



details:   https://anonhg.NetBSD.org/src/rev/9245ac5a9e35
branches:  trunk
changeset: 982457:9245ac5a9e35
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Apr 13 22:22:02 2021 +0000

description:
Allow type attributes after function pointer parameters

diffstat:

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

diffs (46 lines):

diff -r 2854af041689 -r 9245ac5a9e35 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Tue Apr 13 22:21:19 2021 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Tue Apr 13 22:22:02 2021 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.212 2021/04/12 15:55:26 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.213 2021/04/13 22:22:02 christos 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.212 2021/04/12 15:55:26 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.213 2021/04/13 22:22:02 christos Exp $");
 #endif
 
 #include <limits.h>
@@ -123,7 +123,7 @@
 }
 %}
 
-%expect 165
+%expect 177
 
 %union {
        val_t   *y_val;
@@ -1257,14 +1257,14 @@
        ;
 
 abstract_decl_param_list:
-         abstract_decl_lparen T_RPAREN {
+         abstract_decl_lparen T_RPAREN opt_type_attribute {
                $$ = NULL;
          }
-       | abstract_decl_lparen vararg_parameter_type_list T_RPAREN {
+       | abstract_decl_lparen vararg_parameter_type_list T_RPAREN opt_type_attribute {
                dcs->d_proto = true;
                $$ = $2;
          }
-       | abstract_decl_lparen error T_RPAREN {
+       | abstract_decl_lparen error T_RPAREN opt_type_attribute {
                $$ = NULL;
          }
        ;



Home | Main Index | Thread Index | Old Index