1 typedef enum { POSITION_ASIS
, POSITION_UNSPECIFIED
} unit_position
;
3 typedef enum { STATUS_UNKNOWN
, STATUS_UNSPECIFIED
} unit_status
;
7 unit_position position
;
11 extern void abort (void);
14 new_unit (unit_flags
* flags
)
16 if (flags
->status
== STATUS_UNSPECIFIED
)
17 flags
->status
= STATUS_UNKNOWN
;
19 if (flags
->position
== POSITION_UNSPECIFIED
)
20 flags
->position
= POSITION_ASIS
;
22 switch (flags
->status
)
35 f
.status
= STATUS_UNSPECIFIED
;