X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fset.c;h=8128d3ba8b9c365ae6c00e2d207364b93c182ee3;hb=3dff5ea08f916551668dc18b449327a8a593bc9f;hp=fbd804da42ae5d6f7c4a3741a848817845fada75;hpb=7b4f6392441a6e69ad541a1f47652b49202994ec;p=libfirm diff --git a/ir/adt/set.c b/ir/adt/set.c index fbd804da4..8128d3ba8 100644 --- a/ir/adt/set.c +++ b/ir/adt/set.c @@ -168,7 +168,7 @@ static inline int iter_step(SET *table) /* * finds the first entry in the table */ -void * MANGLEP(first) (SET *table) +void *(MANGLEP(first))(SET *table) { assert (!table->iter_tail); table->iter_i = 0; @@ -184,7 +184,7 @@ void * MANGLEP(first) (SET *table) /* * returns next entry in the table */ -void *MANGLEP(next) (SET *table) +void *(MANGLEP(next))(SET *table) { if (!table->iter_tail) return NULL; @@ -437,8 +437,7 @@ void *(pset_insert) (SET *se, const void *key, unsigned hash) void pset_insert_pset_ptr(pset *target, pset *src) { - void *elt; - for (elt = pset_first(src); elt; elt = pset_next(src)) { + foreach_pset(src, void, elt) { pset_insert_ptr(target, elt); } } @@ -447,13 +446,13 @@ void pset_insert_pset_ptr(pset *target, pset *src) void *(set_find) (set *se, const void *key, size_t size, unsigned hash) { - return set_find (se, key, size, hash); + return set_find(void, se, key, size, hash); } void *(set_insert) (set *se, const void *key, size_t size, unsigned hash) { - return set_insert (se, key, size, hash); + return set_insert(void, se, key, size, hash); }