make parser more robust against invalid declarations
authorMatthias Braun <matze@braunis.de>
Fri, 30 May 2008 08:57:45 +0000 (08:57 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 30 May 2008 08:57:45 +0000 (08:57 +0000)
[r19830]

ast_t.h

diff --git a/ast_t.h b/ast_t.h
index b3b8bb9..8a0dc02 100644 (file)
--- a/ast_t.h
+++ b/ast_t.h
@@ -539,6 +539,7 @@ struct declaration_t {
        unsigned int        is_inline     : 1;
        unsigned int        used          : 1;  /**< Set if the declaration is used. */
        unsigned int        deprecated    : 1;  /**< Microsoft or GNU deprecated attribute. */
+       unsigned int        valid         : 1;  /**< declaration is valid (=no syntax errors) */
        type_t             *type;
        symbol_t           *symbol;
        source_position_t   source_position;