X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=advent.h;h=fbdd580e4dd2b73220f730ac65fba556fd7157a8;hp=27250b7dd0f198bd550cabcf2ab1148b571f2624;hb=876fbb2f78bc63b3c99091ab658042f578b3df35;hpb=4e4c2e01989980a29d6bd8856c163c599d9c63d7 diff --git a/advent.h b/advent.h index 27250b7..fbdd580 100644 --- a/advent.h +++ b/advent.h @@ -8,9 +8,9 @@ /* 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 1093L +#define LCG_C 221587L +#define LCG_M 1048576L #define LINESIZE 1024 #define TOKLEN 5 // № sigificant characters in a token */ @@ -232,7 +232,7 @@ extern int restore(FILE *); 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__));