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 handle compound literals with a trailing...
details: https://anonhg.NetBSD.org/src/rev/078b34926503
branches: trunk
changeset: 338129:078b34926503
user: christos <christos%NetBSD.org@localhost>
date: Mon May 11 17:20:06 2015 +0000
description:
handle compound literals with a trailing comma
diffstat:
usr.bin/xlint/lint1/cgram.y | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (55 lines):
diff -r 83269ad4394d -r 078b34926503 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y Mon May 11 16:50:35 2015 +0000
+++ b/usr.bin/xlint/lint1/cgram.y Mon May 11 17:20:06 2015 +0000
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: cgram.y,v 1.68 2015/04/03 21:40:04 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.69 2015/05/11 17:20:06 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.68 2015/04/03 21:40:04 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.69 2015/05/11 17:20:06 christos Exp $");
#endif
#include <stdlib.h>
@@ -107,7 +107,7 @@
#endif
%}
-%expect 78
+%expect 80
%union {
int y_int;
@@ -890,7 +890,7 @@
;
notype_init_decl:
- notype_decl opt_asm_or_symbolrename {
+ notype_decl opt_asm_or_symbolrename {
idecl($1, 0, $2);
chksz($1);
}
@@ -902,7 +902,7 @@
;
type_init_decl:
- type_decl opt_asm_or_symbolrename {
+ type_decl opt_asm_or_symbolrename {
idecl($1, 0, $2);
chksz($1);
}
@@ -1210,7 +1210,7 @@
;
init_expr:
- expr %prec T_COMMA {
+ | expr %prec T_COMMA {
mkinit($1);
}
| init_by_name init_expr %prec T_COMMA
Home |
Main Index |
Thread Index |
Old Index