- Reindented stuff (this was needed, really)
This commit is contained in:
parent
d02621c608
commit
a856e795b0
16
src/xmlout.c
16
src/xmlout.c
@ -98,7 +98,7 @@ xmlTermPrintInner (const Term term)
|
|||||||
{
|
{
|
||||||
if (term != NULL)
|
if (term != NULL)
|
||||||
{
|
{
|
||||||
if (realTermLeaf(term))
|
if (realTermLeaf (term))
|
||||||
{
|
{
|
||||||
// Variable?
|
// Variable?
|
||||||
if (realTermVariable (term))
|
if (realTermVariable (term))
|
||||||
@ -133,7 +133,7 @@ xmlTermPrintInner (const Term term)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Node
|
// Node
|
||||||
if (realTermEncrypt(term))
|
if (realTermEncrypt (term))
|
||||||
{
|
{
|
||||||
if (isTermLeaf (TermKey (term))
|
if (isTermLeaf (TermKey (term))
|
||||||
&& inTermlist (TermKey (term)->stype, TERM_Function))
|
&& inTermlist (TermKey (term)->stype, TERM_Function))
|
||||||
@ -148,9 +148,9 @@ xmlTermPrintInner (const Term term)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
printf ("<encrypt><op>");
|
printf ("<encrypt><op>");
|
||||||
xmlTermPrintInner (TermOp(term));
|
xmlTermPrintInner (TermOp (term));
|
||||||
printf ("</op><key>");
|
printf ("</op><key>");
|
||||||
xmlTermPrintInner (TermKey(term));
|
xmlTermPrintInner (TermKey (term));
|
||||||
printf ("</key></encrypt>");
|
printf ("</key></encrypt>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -158,9 +158,9 @@ xmlTermPrintInner (const Term term)
|
|||||||
{
|
{
|
||||||
// Assume tuple
|
// Assume tuple
|
||||||
printf ("<tuple><op1>");
|
printf ("<tuple><op1>");
|
||||||
xmlTermPrintInner (TermOp1(term));
|
xmlTermPrintInner (TermOp1 (term));
|
||||||
printf ("</op1><op2>");
|
printf ("</op1><op2>");
|
||||||
xmlTermPrintInner (TermOp2(term));
|
xmlTermPrintInner (TermOp2 (term));
|
||||||
printf ("</op2></tuple>");
|
printf ("</op2></tuple>");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -261,7 +261,7 @@ xmlAgentsOfRunPrint (const System sys, const int run)
|
|||||||
{
|
{
|
||||||
xmlPrint ("<role>");
|
xmlPrint ("<role>");
|
||||||
xmlOutTerm ("name", roles->term);
|
xmlOutTerm ("name", roles->term);
|
||||||
xmlOutTerm ("agent",deVar(agentOfRunRole (sys, run, roles->term)));
|
xmlOutTerm ("agent", deVar (agentOfRunRole (sys, run, roles->term)));
|
||||||
xmlPrint ("</role>");
|
xmlPrint ("</role>");
|
||||||
roles = roles->next;
|
roles = roles->next;
|
||||||
}
|
}
|
||||||
@ -375,7 +375,7 @@ xmlOutEvent (const System sys, Roledef rd, const int run, const int index)
|
|||||||
b = (Binding) dt;
|
b = (Binding) dt;
|
||||||
if (b->run_to == run && b->ev_to == index)
|
if (b->run_to == run && b->ev_to == index)
|
||||||
{
|
{
|
||||||
if (isTermVariable (b->term) && ! b->done)
|
if (isTermVariable (b->term) && !b->done)
|
||||||
{
|
{
|
||||||
// Generate from m0
|
// Generate from m0
|
||||||
xmlPrint ("<choose>");
|
xmlPrint ("<choose>");
|
||||||
|
Loading…
Reference in New Issue
Block a user