X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast_t.h;h=7efa19480c6d4914325e145e4e8c4274e7015bcf;hb=78cc65b14fc5c53a16368fe5975c70c83e969b19;hp=89a9f59b6c872b6f44d41e4d4d2db1405a733392;hpb=1465a73b88bc8189d767535d74e6748e8ac0821e;p=cparser diff --git a/ast_t.h b/ast_t.h index 89a9f59..7efa194 100644 --- a/ast_t.h +++ b/ast_t.h @@ -397,6 +397,7 @@ struct declaration_t { decl_modifiers_t modifiers; unsigned int address_taken : 1; unsigned int is_inline : 1; + unsigned int used : 1; /**< Set if the declaration is used. */ type_t *type; symbol_t *symbol; source_position_t source_position; @@ -482,8 +483,8 @@ struct switch_statement_t { struct goto_statement_t { statement_base_t statement; - declaration_t *label; - goto_statement_t *next; /**< link all goto statements in a function */ + declaration_t *label; /**< The destination label. */ + goto_statement_t *next; /**< links all goto statements of a function */ }; struct case_label_statement_t { @@ -494,9 +495,10 @@ struct case_label_statement_t { }; struct label_statement_t { - statement_base_t statement; - declaration_t *label; - statement_t *label_statement; + statement_base_t statement; + declaration_t *label; + statement_t *label_statement; + label_statement_t *next; /**< links all label statements of a function */ }; struct expression_statement_t {