aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/tads/tads2/post_compilation.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-05-18 13:26:57 -1000
committerPaul Gilbert2019-05-24 18:21:06 -0700
commit3d9e03af554814bee10f112c2efa0b7f0b722489 (patch)
treef174c8004d0c554dae124df63d874f78d2e88e5d /engines/glk/tads/tads2/post_compilation.h
parentfcb2592ec24f983c49f1e2e1b4f41cc9659a9229 (diff)
downloadscummvm-rg350-3d9e03af554814bee10f112c2efa0b7f0b722489.tar.gz
scummvm-rg350-3d9e03af554814bee10f112c2efa0b7f0b722489.tar.bz2
scummvm-rg350-3d9e03af554814bee10f112c2efa0b7f0b722489.zip
GLK: TADS2: Soooo much more implementation
Diffstat (limited to 'engines/glk/tads/tads2/post_compilation.h')
-rw-r--r--engines/glk/tads/tads2/post_compilation.h25
1 files changed, 10 insertions, 15 deletions
diff --git a/engines/glk/tads/tads2/post_compilation.h b/engines/glk/tads/tads2/post_compilation.h
index 1dde838d02..fdd12619fb 100644
--- a/engines/glk/tads/tads2/post_compilation.h
+++ b/engines/glk/tads/tads2/post_compilation.h
@@ -21,9 +21,6 @@
*/
/* definitions for post-compilation setup
- *
- * Does post-compilation setup, such as setting up contents lists
- * faster run-time performance, but run - time errors could be disastrous.
*/
#ifndef GLK_TADS_TADS2_POST_COMPILATION
@@ -49,45 +46,43 @@ struct supcxdef {
};
/* set up contents list for one object for demand-on-load */
-void supcont(void *ctx, objnum obj, prpnum prp);
+inline void supcont(void *ctx, objnum obj, prpnum prp);
/* set up inherited vocabulary (called before executing game) */
-void supivoc(supcxdef *ctx);
+inline void supivoc(supcxdef *ctx);
/* find required objects/functions */
-void supfind(errcxdef *ctx, tokthdef *tab, voccxdef *voc,
+inline void supfind(errcxdef *ctx, tokthdef *tab, voccxdef *voc,
objnum *preinit, int warnlevel, int casefold);
/* set up reserved words */
-void suprsrv(supcxdef *sup, void (*bif[])(struct bifcxdef *, int),
+inline void suprsrv(supcxdef *sup, void (*bif[])(struct bifcxdef *, int),
toktdef *tab, int fncntmax, int v1compat, char *new_do,
int casefold);
/* set up built-in functions without symbol table (for run-time) */
-void supbif(supcxdef *sup, void (*bif[])(struct bifcxdef *, int),
+inline void supbif(supcxdef *sup, void (*bif[])(struct bifcxdef *, int),
int bifsiz);
/* log an undefined-object error */
-void sup_log_undefobj(mcmcxdef *mctx, errcxdef *ec, int err,
+inline void sup_log_undefobj(mcmcxdef *mctx, errcxdef *ec, int err,
char *sym_name, int sym_name_len, objnum objn);
/* set up inherited vocabulary for a particular object */
-void supivoc1(supcxdef *sup, voccxdef *ctx, vocidef *v, objnum target,
+inline void supivoc1(supcxdef *sup, voccxdef *ctx, vocidef *v, objnum target,
int inh_from_obj, int flags);
/* get name of an object out of symbol table */
-void supgnam(char *buf, tokthdef *tab, objnum objn);
+inline void supgnam(char *buf, tokthdef *tab, objnum objn);
/* table of built-in functions */
-typedef struct supbidef supbidef;
-struct supbidef
-{
+struct supbidef {
char *supbinam; /* name of function */
void (*supbifn)(struct bifcxdef *, int); /* C routine to call */
};
/* external definition for special token table */
-extern tokldef supsctab[];
+//extern tokldef supsctab[];
} // End of namespace TADS2
} // End of namespace TADS