X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fset.c;h=8128d3ba8b9c365ae6c00e2d207364b93c182ee3;hb=27dc6d14e0ea17d599ae396bfd59a0826dbe48f6;hp=90e11d18aa42b4af79a589a9f086ee9fc0d8ff68;hpb=7d61ad5fbb6a87bea369c8a01103a92d9ab79a48;p=libfirm diff --git a/ir/adt/set.c b/ir/adt/set.c index 90e11d18a..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); } }