X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=b6992497a12a5219b2f8c7679d66301fb94e8f8c;hb=7ed1e95441b4850f7d12c8670188ee810f4c0a90;hp=4a6679ef2a1a4f804d0c6dd2b709e35bfda51de3;hpb=deb61e3dcd060dac685feb71aa21e52165fd8691;p=open-adventure.git diff --git a/advent.h b/advent.h index 4a6679e..b699249 100644 --- a/advent.h +++ b/advent.h @@ -3,6 +3,7 @@ #include #include "common.h" +#include "newdb.h" #define LINESIZE 100 #define NDWARVES 6 /* number of dwarves */ @@ -70,8 +71,8 @@ struct game_t { long fixed[NOBJECTS + 1]; long link[NOBJECTS * 2 + 1]; long place[NOBJECTS + 1]; - long hinted[HNTSIZ + 1]; - long hintlc[HNTSIZ + 1]; + long hinted[HINT_COUNT]; + long hintlc[HINT_COUNT]; long prop[NOBJECTS + 1]; }; @@ -88,7 +89,6 @@ extern bool oldstyle, editline, prompt; #define READ_MODE "rb" #define WRITE_MODE "wb" extern void* xmalloc(size_t size); -extern char* xstrdup(const char*); extern void packed_to_token(long, char token[]); extern void token_to_packed(char token[], long*); extern void vspeak(const char*, va_list);