Encapsulate command words into their own struct.

This commit is contained in:
Jason S. Ninneman 2017-08-02 20:11:40 -07:00
parent a15e7c9f91
commit 5c91ea3739
4 changed files with 73 additions and 76 deletions

View file

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