More magic-number elimination, and some information hiding.
This commit is contained in:
parent
924157fa9f
commit
c68b92d9da
3 changed files with 29 additions and 22 deletions
2
advent.h
2
advent.h
|
@ -10,7 +10,7 @@ typedef struct lcg_state
|
|||
unsigned long a, c, m, x;
|
||||
} lcg_state;
|
||||
|
||||
typedef long token_t; /* word token - someday this will be a character array */
|
||||
typedef long token_t; /* word token - someday this will be char[TOKLEN+1] */
|
||||
typedef long vocab_t; /* index into a vocabulary array */
|
||||
|
||||
struct game_t {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue