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 add type attributes in a few more places.



details:   https://anonhg.NetBSD.org/src/rev/0269164d37e7
branches:  trunk
changeset: 747857:0269164d37e7
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Oct 03 17:09:18 2009 +0000

description:
add type attributes in a few more places.

diffstat:

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

diffs (58 lines):

diff -r 2c1f61bc7ce5 -r 0269164d37e7 usr.bin/xlint/lint1/cgram.y
--- a/usr.bin/xlint/lint1/cgram.y       Sat Oct 03 15:49:21 2009 +0000
+++ b/usr.bin/xlint/lint1/cgram.y       Sat Oct 03 17:09:18 2009 +0000
@@ -1,5 +1,5 @@
 %{
-/* $NetBSD: cgram.y,v 1.47 2009/10/03 01:35:20 christos Exp $ */
+/* $NetBSD: cgram.y,v 1.48 2009/10/03 17:09:18 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.47 2009/10/03 01:35:20 christos Exp $");
+__RCSID("$NetBSD: cgram.y,v 1.48 2009/10/03 17:09:18 christos Exp $");
 #endif
 
 #include <stdlib.h>
@@ -684,13 +684,13 @@
        | noclass_declmods typespec {
                addtype($2);
          }
-       | noclass_declspecs type_attribute
        | noclass_declspecs T_QUAL {
                addqual($2);
          }
        | noclass_declspecs notype_typespec {
                addtype($2);
          }
+       | noclass_declspecs type_attribute
        ;
 
 noclass_declmods:
@@ -903,6 +903,7 @@
                popdecl();
                blklev--;
          }
+       | notype_direct_decl type_attribute
        ;
 
 type_decl:
@@ -932,6 +933,7 @@
                popdecl();
                blklev--;
          }
+       | type_direct_decl type_attribute
        ;
 
 /*
@@ -1285,6 +1287,7 @@
                popdecl();
                blklev--;
          }
+       | direct_abs_decl type_attribute
        ;
 
 non_expr_stmnt:



Home | Main Index | Thread Index | Old Index