Add command_word_t, for command words.
authorJason S. Ninneman <jsn@mbar.us>
Thu, 3 Aug 2017 02:26:29 +0000 (19:26 -0700)
committerJason S. Ninneman <jsn@mbar.us>
Thu, 3 Aug 2017 15:16:19 +0000 (08:16 -0700)
advent.h

index 2e07c7ef26d30c176905f6740c890c261546b7e6..d2357070a6e891d4511b32a1ffccaec9b843beee 100644 (file)
--- a/advent.h
+++ b/advent.h
@@ -183,6 +183,11 @@ struct settings_t {
     bool prompt;
 };
 
+typedef struct {
+  vocab_t id;
+  word_type_t type;
+} command_word_t;
+
 struct command_t {
     char raw1[LINESIZE], raw2[LINESIZE];
     enum speechpart part;