projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Create regression test for issue #36.
[open-adventure.git]
/
advent.h
diff --git
a/advent.h
b/advent.h
index 27250b7dd0f198bd550cabcf2ab1148b571f2624..321e0363417c332f079e4a00da1ad0cb930eaa98 100644
(file)
--- a/
advent.h
+++ b/
advent.h
@@
-8,9
+8,9
@@
/* LCG PRNG parameters tested against
* Knuth vol. 2. by the original authors */
/* LCG PRNG parameters tested against
* Knuth vol. 2. by the original authors */
-#define LCG_A 1093
-#define LCG_C 221587
-#define LCG_M 1048576
+#define LCG_A 1093
L
+#define LCG_C 221587
L
+#define LCG_M 1048576
L
#define LINESIZE 1024
#define TOKLEN 5 // № sigificant characters in a token */
#define LINESIZE 1024
#define TOKLEN 5 // № sigificant characters in a token */
@@
-107,6
+107,9
@@
enum phase_codes {
GO_MOVE,
GO_TOP,
GO_CLEAROBJ,
GO_MOVE,
GO_TOP,
GO_CLEAROBJ,
+ GO_CHECKHINT,
+ GO_CHECKFOO,
+ GO_LOOKUP,
GO_WORD2,
GO_UNKNOWN,
GO_DWARFWAKE,
GO_WORD2,
GO_UNKNOWN,
GO_DWARFWAKE,
@@
-232,7
+235,7
@@
extern int restore(FILE *);
extern long initialise(void);
extern int action(command_t command);
extern void state_change(obj_t, int);
extern long initialise(void);
extern int action(command_t command);
extern void state_change(obj_t, int);
-
+extern bool is_valid(struct game_t);
void bug(enum bugtype, const char *) __attribute__((__noreturn__));
void bug(enum bugtype, const char *) __attribute__((__noreturn__));