X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=advent.h;h=c5abaa6661cc917ec9fb1ad25687ba624ae512e0;hb=ff7db8b0c8d61c332cfde95530e8ebb2bb1a0c58;hp=469baa208583e02af2fccbe5bb4d51d97448b4d5;hpb=d97574d35c0532d0854b7653b47b2da7e2e305b3;p=open-adventure.git diff --git a/advent.h b/advent.h index 469baa2..c5abaa6 100644 --- a/advent.h +++ b/advent.h @@ -84,7 +84,7 @@ extern bool oldstyle, editline, prompt; #define WRITE_MODE "wb" extern char* xstrdup(const char*); extern void packed_to_token(long, char token[]); -extern void newspeak(char*); +extern void newspeak(const char*); extern void PSPEAK(vocab_t,int); extern void RSPEAK(vocab_t); extern void SETPRM(long,long,long); @@ -114,7 +114,9 @@ extern void set_seed(long); extern unsigned long get_next_lcg_value(void); extern long randrange(long); extern void score(enum termination); -extern int saveresume(FILE *, bool); +extern int suspend(FILE *); +extern int resume(FILE *); +extern int restore(FILE *); /* * MOD(N,M) = Arithmetic modulus @@ -169,6 +171,9 @@ extern long AMBER, ATTACK, AXE, BACK, BATTER, BEAR, enum speechpart {unknown, intransitive, transitive}; +void initialise(void); +int action(FILE *input, enum speechpart part, long verb, token_t obj); + /* Phase codes for action returns. * These were at one time FORTRAN line numbers. * The values don't matter, but perturb their order at your peril.