X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ast_t.h;h=cb8d4e97636e790ec070e70221ee28483acc6bdb;hb=4f2e72b82ad87a0cd9e9d808f77557da7e0ce55f;hp=ed0e0f91ef5fc787c0e2c359c2aa59f6baae7a6a;hpb=4633337d25ebd26db4dc4034216acee7e22765e7;p=cparser diff --git a/ast_t.h b/ast_t.h index ed0e0f9..cb8d4e9 100644 --- a/ast_t.h +++ b/ast_t.h @@ -1,6 +1,6 @@ /* * This file is part of cparser. - * Copyright (C) 2007-2008 Matthias Braun + * Copyright (C) 2007-2009 Matthias Braun * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -659,20 +659,17 @@ struct translation_unit_t { statement_t *global_asm; }; -static inline -void *_allocate_ast(size_t size) +static inline void *_allocate_ast(size_t size) { return obstack_alloc(&ast_obstack, size); } -static inline -bool is_invalid_expression(expression_t *expression) +static inline bool is_invalid_expression(expression_t *expression) { return expression->base.kind == EXPR_INVALID; } -static inline -bool is_invalid_statement(statement_t *statement) +static inline bool is_invalid_statement(statement_t *statement) { return statement->base.kind == STATEMENT_INVALID; }