X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=8ef2f5b59c950b0471e3159f675d73b392324ae2;hb=f03bde268ebb52455d4ca728ce043e2bddedae22;hp=085244067441c5de988a35ef3c3d57df88142b8b;hpb=eba8015059c1ad2d20e55be9ed69c22aec1871be;p=open-adventure.git diff --git a/advent.h b/advent.h index 0852440..8ef2f5b 100644 --- a/advent.h +++ b/advent.h @@ -183,6 +183,7 @@ struct command_t { vocab_t obj; token_t wd1, wd1x; token_t wd2, wd2x; + char raw1[BUFSIZ], raw2[BUFSIZ]; }; extern struct game_t game; @@ -192,7 +193,7 @@ extern char* xstrdup(const char* s); extern void* xmalloc(size_t size); extern void packed_to_token(long, char token[]); extern long token_to_packed(const char token[TOKLEN+1]); -extern void tokenize(char*, long tokens[4]); +extern void tokenize(char*, struct command_t *); extern void vspeak(const char*, bool, va_list); extern bool wordeq(token_t, token_t); extern bool wordempty(token_t);