X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast_t.h;h=1bc501f060547dc3e625bc89d1bdea2b701bb5cc;hb=e42f17f93812ed574c456b8a06db16ecf06a6689;hp=5860cc1e0de6c58648104ae0fc6257bf94cba9ce;hpb=c8fc7380fec1a14d8bb748ebe5fa5d07a02fb5fb;p=cparser diff --git a/ast_t.h b/ast_t.h index 5860cc1..1bc501f 100644 --- a/ast_t.h +++ b/ast_t.h @@ -25,6 +25,7 @@ typedef enum { EXPR_ARRAY_ACCESS, EXPR_SIZEOF, EXPR_CLASSIFY_TYPE, + EXPR_ALIGNOF, EXPR_FUNCTION, EXPR_PRETTY_FUNCTION, @@ -229,6 +230,11 @@ struct sizeof_expression_t { expression_t *size_expression; }; +struct alignof_expression_t { + expression_base_t expression; + type_t *type; +}; + struct designator_t { symbol_t *symbol; expression_t *array_access; @@ -289,6 +295,7 @@ union expression_t { conditional_expression_t conditional; statement_expression_t statement; classify_type_expression_t classify_type; + alignof_expression_t alignofe; }; typedef enum {