diff options
author | Paul Gilbert | 2019-06-22 12:19:13 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-06-22 14:40:50 -0700 |
commit | bad3ecd643132a09422117b63a687bf758139c01 (patch) | |
tree | 3e3af6d0c6085402c428f40adb23d2572aff3137 /engines/glk/alan2/main.h | |
parent | 62eb0be065cc2bd911d3e14f4b6356f3081b7817 (diff) | |
download | scummvm-rg350-bad3ecd643132a09422117b63a687bf758139c01.tar.gz scummvm-rg350-bad3ecd643132a09422117b63a687bf758139c01.tar.bz2 scummvm-rg350-bad3ecd643132a09422117b63a687bf758139c01.zip |
GLK: ALAN2: Create jump context system to replace original setjmp
This is basically a simplified version of the ScummVM coroutines,
since we just need the ability to consistently break out to the
main game loop when a call is made to the error method
Diffstat (limited to 'engines/glk/alan2/main.h')
-rw-r--r-- | engines/glk/alan2/main.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/glk/alan2/main.h b/engines/glk/alan2/main.h index 9dffbc343a..9672899c81 100644 --- a/engines/glk/alan2/main.h +++ b/engines/glk/alan2/main.h @@ -27,6 +27,7 @@ #include "common/file.h" #include "glk/alan2/types.h" +#include "glk/alan2/jumps.h" namespace Glk { namespace Alan2 { @@ -100,7 +101,7 @@ extern Boolean needsp; extern void *allocate(unsigned long len); extern void terminate(int code); extern void usage(void); -extern void error(MsgKind msg); +extern void error(CONTEXT, MsgKind msg); extern void syserr(const char *msg); extern void statusline(void); extern void output(const char string[]); @@ -111,8 +112,8 @@ extern void newline(void); extern Boolean checklim(Aword cnt, Aword obj); extern Boolean possible(void); extern Boolean exitto(int to, int from); -extern void action(ParamElem *plst); -extern void go(int dir); +extern void action(CONTEXT, ParamElem *plst); +extern void go(CONTEXT, int dir); extern Boolean eot(Aword *adr); extern Boolean isObj(Aword x); |