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 accept typenames in param decls.



details:   https://anonhg.NetBSD.org/src/rev/0097f758afbb
branches:  trunk
changeset: 807274:0097f758afbb
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 03 21:40:04 2015 +0000

description:
accept typenames in param decls.

diffstat:

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

diffs (37 lines):

diff -r f5e606bb4853 -r 0097f758afbb usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Fri Apr 03 21:38:47 2015 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Fri Apr 03 21:40:04 2015 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.67 2014/09/26 15:26:01 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.68 2015/04/03 21:40:04 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.67 2014/09/26 15:26:01 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.68 2015/04/03 21:40:04 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -107,7 +107,7 @@
 #endif
 %}
 
-%expect 75
+%expect 78
 
 %union {
        int     y_int;
@@ -1025,7 +1025,7 @@
        ;
 
 direct_notype_param_decl:
-         T_NAME {
+         identifier {
                $$ = dname(getsym($1));
          }
        | T_LPARN notype_param_decl T_RPARN {



Home | Main Index | Thread Index | Old Index