Reindenting code.

This commit is contained in:
Cas Cremers 2011-01-25 17:33:12 +01:00
parent 68409e14ad
commit fea2bcf477
4 changed files with 22 additions and 17 deletions

View File

@ -828,13 +828,16 @@ arachne_claim_commit (const System sys, const int claim_run,
params_b = tuple_to_termlist (rd->message);
// check agent requirements
if (isTermEqual(rd->from,actor_b) && isTermEqual(params_b->term,actor_a))
if (isTermEqual (rd->from, actor_b)
&& isTermEqual (params_b->term, actor_a))
{
// check role (also same protocol)
if (isTermEqual(partner_role,rd->claiminfo->rolename))
if (isTermEqual
(partner_role, rd->claiminfo->rolename))
{
// check parameters
if (isTermlistEqual (params_a->next,params_b->next))
if (isTermlistEqual
(params_a->next, params_b->next))
{
// Claim holds
termlistDelete (params_b);

View File

@ -626,7 +626,8 @@ isEventIgnored (const System sys, int run, int ev)
return false;
}
// If the claim type is commit, we also show running claims
if (isTermEqual(sys->current_claim->type, CLAIM_Commit) || isTermEqual(sys->current_claim->type, CLAIM_Reachable))
if (isTermEqual (sys->current_claim->type, CLAIM_Commit)
|| isTermEqual (sys->current_claim->type, CLAIM_Reachable))
{
if (isTermEqual (rd->claiminfo->type, CLAIM_Running))
{

View File

@ -926,7 +926,8 @@ tuple_to_termlist (Term t)
}
//! Get the leftmost term of a tuple (e.g. a non-tuple)
Term termLeft(Term t)
Term
termLeft (Term t)
{
t = deVar (t);
if (realTermTuple (t))