Another trampoline gone.

This commit is contained in:
Cas Cremers 2018-10-19 15:55:39 -04:00
parent e831a9d51b
commit 9da05f738c

View File

@ -1039,16 +1039,19 @@ iterateRuns (const System sys, int (*callback) (int r))
int
iterateRegularRuns (const System sys, int (*callback) (int r))
{
int regular (int r)
{
if (sys->runs[r].protocol != INTRUDER)
{
return callback (r);
}
return true;
}
int r;
return iterateRuns (sys, regular);
for (r = 0; r < sys->maxruns; r++)
{
if (sys->runs[r].protocol != INTRUDER)
{
if (!callback (r))
{
return false;
}
}
}
return true;
}
// Iterate over events in a certain run (increasing through role)