projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More magic-number elimination, and some information hiding.
[open-adventure.git]
/
advent.h
diff --git
a/advent.h
b/advent.h
index 3e5dc9a39e918f9dd653dd5aab4104157ec9b774..47548b6baa112e046b3c9735da3397ec17a9fb59 100644
(file)
--- a/
advent.h
+++ b/
advent.h
@@
-10,7
+10,7
@@
typedef struct lcg_state
unsigned long a, c, m, x;
} 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 {
typedef long vocab_t; /* index into a vocabulary array */
struct game_t {