X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Fvalueset.h;h=027e708eeaf7facd7965120633861d9335e63f65;hb=af9b9a12e6cd2aaf7a0d71c262f068a516a8735f;hp=64dfe4face6d0d9dedc0860276626c8c8f7992c0;hpb=44d8e42d6bc1a5545cf0825e365fec2c389f3752;p=libfirm diff --git a/ir/ir/valueset.h b/ir/ir/valueset.h index 64dfe4fac..027e708ee 100644 --- a/ir/ir/valueset.h +++ b/ir/ir/valueset.h @@ -26,8 +26,6 @@ #ifndef _FIRM_VALUESET_H_ #define _FIRM_VALUESET_H_ -#include "firm_config.h" - #include "firm_types.h" #include "xmalloc.h" #include "list.h" @@ -88,8 +86,8 @@ void ir_valueset_destroy(ir_valueset_t *valueset); * @param expected_elements Number of elements expected in the value set (roughly) * @return The initialized value set */ -static INLINE ir_valueset_t *ir_valueset_new(size_t expected_elements) { - ir_valueset_t *res = xmalloc(sizeof(*res)); +static inline ir_valueset_t *ir_valueset_new(size_t expected_elements) { + ir_valueset_t *res = XMALLOC(ir_valueset_t); ir_valueset_init_size(res, expected_elements); return res; } @@ -97,7 +95,7 @@ static INLINE ir_valueset_t *ir_valueset_new(size_t expected_elements) { /** * Destroys a value set and frees the memory of the set itself. */ -static INLINE void ir_valueset_del(ir_valueset_t *valueset) { +static inline void ir_valueset_del(ir_valueset_t *valueset) { ir_valueset_destroy(valueset); xfree(valueset); }