using int/bool convention instead of new enum type
This commit is contained in:
@@ -196,11 +196,6 @@ typedef enum {
|
||||
TIMEOFDAY // act when time of day occurs
|
||||
} ControlType;
|
||||
|
||||
typedef enum {
|
||||
DISABLED,
|
||||
ENABLED
|
||||
} EnabledType;
|
||||
|
||||
typedef enum {
|
||||
XHEAD, // pump cannot deliver head (closed)
|
||||
TEMPCLOSED, // temporarily closed
|
||||
@@ -479,7 +474,7 @@ typedef struct // Control Statement
|
||||
double Setting; // new link setting
|
||||
StatusType Status; // new link status
|
||||
ControlType Type; // control type
|
||||
EnabledType isEnabled; // control enabled?
|
||||
int isEnabled; // control enabled?
|
||||
} Scontrol;
|
||||
|
||||
typedef struct // Field Object of Report Table
|
||||
@@ -531,7 +526,7 @@ typedef struct // Control Rule Structure
|
||||
{
|
||||
char label[MAXID+1]; // rule label
|
||||
double priority; // priority level
|
||||
EnabledType isEnabled; // is the rule enabled?
|
||||
int isEnabled; // is the rule enabled?
|
||||
Spremise *Premises; // list of premises
|
||||
Saction *ThenActions; // list of THEN actions
|
||||
Saction *ElseActions; // list of ELSE actions
|
||||
|
||||
Reference in New Issue
Block a user