1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-13 21:29:25 +00:00

Merci klipfel pour l'astuce

This commit is contained in:
2018-06-18 16:09:28 +02:00
parent e820bd7a58
commit ba921acbf3
6 changed files with 28 additions and 32 deletions

View File

@ -10,14 +10,12 @@
typedef enum {RESIDENT, VISITOR} PASSENGER_TYPE;
typedef union u_Passenger {
Resident * resident;
Visitor * visitor;
typedef struct s_Passenger {
PASSENGER_TYPE type;
union {
Resident * resident;
Visitor * visitor;
};
} Passenger;
typedef struct s_ElevatorPassenger {
PASSENGER_TYPE type;
Passenger passenger;
} ElevatorPassenger;
#endif //LO41_PASSENGER_H