using int/bool convention instead of new enum type

This commit is contained in:
Sam Hatchett
2023-09-13 09:14:57 -04:00
parent 06a43cdb4e
commit d0ab568a5d
7 changed files with 13 additions and 15 deletions

View File

@@ -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