X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fhashset.c;h=d0a3e7e1f435e63b9cd5897ec3a8774dde34e2b1;hb=f2edb6301aa7affb0673e76436d9b4dbaef6b9e1;hp=0e8e5291e98835b13bc1c4a607ec887960b0d936;hpb=01e004951e60cd0c91f689262bce61acada91f0c;p=libfirm diff --git a/ir/adt/hashset.c b/ir/adt/hashset.c index 0e8e5291e..d0a3e7e1f 100644 --- a/ir/adt/hashset.c +++ b/ir/adt/hashset.c @@ -95,7 +95,7 @@ #ifndef Alloc #include "xmalloc.h" -#define Alloc(size) (HashSetEntry*) xmalloc((size) * sizeof(HashSetEntry)) +#define Alloc(size) XMALLOCN(HashSetEntry, (size)) #define Free(ptr) free(ptr) #endif /* Alloc */ @@ -363,7 +363,7 @@ void resize(HashSet *self, size_t new_size) #else /* resize must be defined outside */ -static void resize(HashSet *self, size_t new_size); +static INLINE void resize(HashSet *self, size_t new_size); #endif