Encapsulate command words into their own struct.
This commit is contained in:
parent
a15e7c9f91
commit
5c91ea3739
4 changed files with 73 additions and 76 deletions
7
advent.h
7
advent.h
|
@ -184,17 +184,14 @@ struct settings_t {
|
|||
};
|
||||
|
||||
typedef struct {
|
||||
char raw[LINESIZE];
|
||||
vocab_t id;
|
||||
word_type_t type;
|
||||
} command_word_t;
|
||||
|
||||
struct command_t {
|
||||
char raw1[LINESIZE], raw2[LINESIZE];
|
||||
enum speechpart part;
|
||||
vocab_t id1;
|
||||
vocab_t id2;
|
||||
word_type_t type1;
|
||||
word_type_t type2;
|
||||
command_word_t word[2];
|
||||
verb_t verb;
|
||||
obj_t obj;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue