- [Syntactical changes only]

Fixed the indentation of some files.
This commit is contained in:
ccremers 2005-06-02 09:40:05 +00:00
parent 01124e2104
commit cd2ef14e4e
4 changed files with 18 additions and 16 deletions

View File

@ -58,14 +58,14 @@ roledefPrintGeneric (Roledef rd, int print_actor)
Term label; Term label;
/* Old version: sometimes prints protocol stuff (really unique labels) /* Old version: sometimes prints protocol stuff (really unique labels)
label = deVar (rd->label);
if (protocolCount < 2 && realTermTuple (label))
{
// Only one protocol, so we don't need to show the extra label info
label = TermOp2 (label);
}
*/
label = deVar (rd->label); label = deVar (rd->label);
if (protocolCount < 2 && realTermTuple (label))
{
// Only one protocol, so we don't need to show the extra label info
label = TermOp2 (label);
}
*/
label = deVar(rd->label);
if (realTermTuple (label)) if (realTermTuple (label))
{ {
label = TermOp2 (label); label = TermOp2 (label);

View File

@ -76,7 +76,7 @@ systemInit ()
sys->switchClaims = 0; // default don't report on claims sys->switchClaims = 0; // default don't report on claims
sys->switchClaimToCheck = NULL; // default check all claims sys->switchClaimToCheck = NULL; // default check all claims
sys->switchXMLoutput = 0; // default no xml output sys->switchXMLoutput = 0; // default no xml output
sys->switchHuman = false; // not human friendly by default sys->switchHuman = false; // not human friendly by default
sys->switchGoalSelectMethod = 3; // default goal selection method sys->switchGoalSelectMethod = 3; // default goal selection method
sys->traverse = 12; // default traversal method sys->traverse = 12; // default traversal method

View File

@ -10,7 +10,8 @@ static clock_t endwait = 0;
/** /**
* <= 0 means none. * <= 0 means none.
*/ */
void set_time_limit (int seconds) void
set_time_limit (int seconds)
{ {
if (seconds > 0) if (seconds > 0)
{ {
@ -25,13 +26,15 @@ void set_time_limit (int seconds)
} }
//! Retrieve time limit //! Retrieve time limit
int get_time_limit () int
get_time_limit ()
{ {
return time_max_seconds; return time_max_seconds;
} }
//! Check whether time limit has passed. //! Check whether time limit has passed.
int passed_time_limit () int
passed_time_limit ()
{ {
if (endwait <= 0) if (endwait <= 0)
{ {
@ -41,11 +44,10 @@ int passed_time_limit ()
{ {
struct tms t; struct tms t;
times(&t); times (&t);
if (t.tms_utime > endwait) if (t.tms_utime > endwait)
return 1; return 1;
else else
return 0; return 0;
} }
} }