projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
beprefalloc: fix assignment of big values
[libfirm]
/
ir
/
adt
/
set.c
diff --git
a/ir/adt/set.c
b/ir/adt/set.c
index
90e11d1
..
8128d3b
100644
(file)
--- 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
*/
/*
* 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;
{
assert (!table->iter_tail);
table->iter_i = 0;
@@
-184,7
+184,7
@@
void * MANGLEP(first) (SET *table)
/*
* returns next entry in the table
*/
/*
* returns next entry in the table
*/
-void *
MANGLEP(next)
(SET *table)
+void *
(MANGLEP(next))
(SET *table)
{
if (!table->iter_tail)
return NULL;
{
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 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);
}
}
pset_insert_ptr(target, elt);
}
}