Module Name: src
Committed By: christos
Date: Sun Dec 25 01:05:04 UTC 2011
Modified Files:
src/usr.bin/xlint/lint1: cgram.y
Log Message:
PR/45666: Nicolas Joly: lint(1) wrong 'syntax error' message
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 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.51 src/usr.bin/xlint/lint1/cgram.y:1.52
--- src/usr.bin/xlint/lint1/cgram.y:1.51 Mon Dec 19 11:52:27 2011
+++ src/usr.bin/xlint/lint1/cgram.y Sat Dec 24 20:05:03 2011
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.51 2011/12/19 16:52:27 njoly Exp $ */
+/* $NetBSD: cgram.y,v 1.52 2011/12/25 01:05:03 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.51 2011/12/19 16:52:27 njoly Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.52 2011/12/25 01:05:03 christos Exp $");
#endif
#include <stdlib.h>
@@ -107,7 +107,7 @@ static inline void RESTORE(const char *f
#endif
%}
-%expect 7
+%expect 5
%union {
int y_int;
@@ -1804,9 +1804,11 @@ identifier:
T_NAME {
$$ = $1;
}
+/*
| T_TYPENAME {
$$ = $1;
}
+*/
;
%%