Copied another iterator to remove a trampoline.
This commit is contained in:
parent
2ad030f919
commit
ec8ea5f95c
@ -630,17 +630,19 @@ int
|
|||||||
countBindingsDone ()
|
countBindingsDone ()
|
||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
|
List bl;
|
||||||
|
|
||||||
int countDone (Binding b)
|
|
||||||
{
|
|
||||||
if ((!b->blocked) && b->done)
|
|
||||||
{
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
iterate_bindings (countDone);
|
for (bl = sys->bindings; bl != NULL; bl = bl->next)
|
||||||
|
{
|
||||||
|
Binding b;
|
||||||
|
|
||||||
|
b = (Binding) bl->data;
|
||||||
|
if ((!b->blocked) && b->done)
|
||||||
|
{
|
||||||
|
count++;
|
||||||
|
}
|
||||||
|
}
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user