Removed a further nested function call.
This commit is contained in:
parent
2b4af1c290
commit
08adc5b518
@ -124,21 +124,20 @@ compilerDone (void)
|
|||||||
Termlist
|
Termlist
|
||||||
compute_recv_variables (const Role r)
|
compute_recv_variables (const Role r)
|
||||||
{
|
{
|
||||||
Termlist tl;
|
Termlist tl = NULL;
|
||||||
|
Roledef rd;
|
||||||
|
|
||||||
int process_event (Roledef rd)
|
rd = r->roledef;
|
||||||
{
|
while (rd != NULL)
|
||||||
if (rd->type == RECV)
|
{
|
||||||
{
|
if (rd->type == RECV)
|
||||||
tl = termlistAddVariables (tl, rd->from);
|
{
|
||||||
tl = termlistAddVariables (tl, rd->to);
|
tl = termlistAddVariables (tl, rd->from);
|
||||||
tl = termlistAddVariables (tl, rd->message);
|
tl = termlistAddVariables (tl, rd->to);
|
||||||
}
|
tl = termlistAddVariables (tl, rd->message);
|
||||||
return 1;
|
}
|
||||||
}
|
rd = rd->next;
|
||||||
|
}
|
||||||
tl = NULL;
|
|
||||||
roledef_iterate_events (r->roledef, process_event);
|
|
||||||
return tl;
|
return tl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user