- Large rewrite of switch code. Instead of having switch parameters in

the (monstrously large) system structure, there is now a global
  'switchdata' structure originating in switches.c. This makes it much
  easier to see what's happening.
  * Note: although this code has been tested, there might be some
    hiccups, because doing multiple search&replace actions over all
    files is bound to cause some problems.
This commit is contained in:
ccremers
2005-06-07 15:02:27 +00:00
parent c4fad31f25
commit 1bdaf7b5d9
17 changed files with 400 additions and 325 deletions

View File

@@ -17,6 +17,7 @@
#include "system.h"
#include "binding.h"
#include "arachne.h" // for get_semitrace_length
#include "switches.h"
#include "xmlout.h"
@@ -411,7 +412,7 @@ isProtocolInvolved (const System sys, const Protocol p)
int
isEventInteresting (const System sys, const Roledef rd)
{
if (sys->switchHuman)
if (switches.human)
{
if (rd->type != CLAIM)
{
@@ -624,7 +625,7 @@ xmlOutSysInfo (const System sys)
xmlPrint ("<system>");
xmlindent++;
xmlOutInteger ("match", sys->match);
xmlOutInteger ("match", switches.match);
xmlInitialKnowledge (sys);
xmlInvolvedProtocolRoles (sys);