Module Name: src
Committed By: christos
Date: Fri Apr 3 21:40:04 UTC 2015
Modified Files:
src/usr.bin/xlint/lint1: cgram.y
Log Message:
accept typenames in param decls.
To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/usr.bin/xlint/lint1/cgram.y
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/xlint/lint1/cgram.y
diff -u src/usr.bin/xlint/lint1/cgram.y:1.67 src/usr.bin/xlint/lint1/cgram.y:1.68
--- src/usr.bin/xlint/lint1/cgram.y:1.67 Fri Sep 26 11:26:01 2014
+++ src/usr.bin/xlint/lint1/cgram.y Fri Apr 3 17:40:04 2015
@@ -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 @@ static inline void RESTORE(const char *f
#endif
%}
-%expect 75
+%expect 78
%union {
int y_int;
@@ -1025,7 +1025,7 @@ notype_param_decl:
;
direct_notype_param_decl:
- T_NAME {
+ identifier {
$$ = dname(getsym($1));
}
| T_LPARN notype_param_decl T_RPARN {