Debian Codegraph @

terps/alan3/word.h

raw symbols SCIP
1 #ifndef WORD_H_
2 #define WORD_H_
3 /*----------------------------------------------------------------------*\
4
5 word
6
7 \*----------------------------------------------------------------------*/
8
9 /* IMPORTS */
10
11
12 /* CONSTANTS */
13
14
15 /* TYPES */
16
17 typedef struct WordEntry {
18 int code; /* The dictionary index for that word */
19 char *start; /* Where does it start */
20 char *end; /* .. and end */
21 } Word;
22
23
24 /* DATA */
25
26 extern Word *playerWords; /* List of Parsed Word */
27 extern int currentWordIndex; /* and an index into it */
28 extern int firstWord;
29 extern int lastWord;
30
31 extern int verbWord;
32 extern int verbWordCode;
33
34
35
36 /* FUNCTIONS */
37 extern void ensureSpaceForPlayerWords(int count);
38 extern char *playerWordsAsCommandString(void);
39 extern void clearWordList(Word *list);
40
41
42 #endif /* WORD_H_ */