X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnodeset.h;h=330caa620ae3762bb2cbb6a834763e34e1f6b7a7;hb=af9b9a12e6cd2aaf7a0d71c262f068a516a8735f;hp=712f7a8606329b06e7605eb7d55f0994396ba7a1;hpb=5beb22722da3e63aaff57205aa04a64b83713ca4;p=libfirm diff --git a/ir/ir/irnodeset.h b/ir/ir/irnodeset.h index 712f7a860..330caa620 100644 --- a/ir/ir/irnodeset.h +++ b/ir/ir/irnodeset.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -30,8 +30,6 @@ #ifndef _FIRM_IRNODESET_H_ #define _FIRM_IRNODESET_H_ -#include "firm_config.h" - #include "firm_types.h" #include "xmalloc.h" @@ -89,8 +87,8 @@ void ir_nodeset_destroy(ir_nodeset_t *nodeset); * @param expected_elements Number of elements expected in the nodeset (roughly) * @return The initialized nodeset */ -static INLINE ir_nodeset_t *ir_nodeset_new(size_t expected_elements) { - ir_nodeset_t *res = xmalloc(sizeof(*res)); +static inline ir_nodeset_t *ir_nodeset_new(size_t expected_elements) { + ir_nodeset_t *res = XMALLOC(ir_nodeset_t); ir_nodeset_init_size(res, expected_elements); return res; } @@ -98,7 +96,7 @@ static INLINE ir_nodeset_t *ir_nodeset_new(size_t expected_elements) { /** * Destroys a nodeset and frees the memory of the nodeset itself. */ -static INLINE void ir_nodeset_del(ir_nodeset_t *nodeset) { +static inline void ir_nodeset_del(ir_nodeset_t *nodeset) { ir_nodeset_destroy(nodeset); xfree(nodeset); }