aboutsummaryrefslogtreecommitdiff
path: root/engines/director/lingo/lingo.h
diff options
context:
space:
mode:
authorEugene Sandulenko2016-06-29 14:39:38 +0200
committerEugene Sandulenko2016-08-03 23:40:36 +0200
commitbba7efff11ee5f42731495a43128dbaa909e22b1 (patch)
tree351f0e14bfdc4f8dde14255e3e865479810a2aa6 /engines/director/lingo/lingo.h
parent256727964c4c06beb70c422ec70f610e56283123 (diff)
downloadscummvm-rg350-bba7efff11ee5f42731495a43128dbaa909e22b1.tar.gz
scummvm-rg350-bba7efff11ee5f42731495a43128dbaa909e22b1.tar.bz2
scummvm-rg350-bba7efff11ee5f42731495a43128dbaa909e22b1.zip
DIRECTOR: Lingo: C++-ify structs
Diffstat (limited to 'engines/director/lingo/lingo.h')
-rw-r--r--engines/director/lingo/lingo.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/director/lingo/lingo.h b/engines/director/lingo/lingo.h
index 93a2e23267..becd41002a 100644
--- a/engines/director/lingo/lingo.h
+++ b/engines/director/lingo/lingo.h
@@ -76,7 +76,7 @@ typedef void (*inst)(void);
typedef Common::Array<inst> ScriptData;
-typedef struct Symbol { /* symbol table entry */
+struct Symbol { /* symbol table entry */
char *name;
int type;
union {
@@ -89,9 +89,9 @@ typedef struct Symbol { /* symbol table entry */
bool global;
Symbol();
-} Symbol;
+};
-typedef struct Datum { /* interpreter stack type */
+struct Datum { /* interpreter stack type */
int type;
union {
@@ -101,13 +101,13 @@ typedef struct Datum { /* interpreter stack type */
} u;
Datum() { u.sym = NULL; type = VOID; }
-} Datum;
+};
-typedef struct CFrame { /* proc/func call stack frame */
+struct CFrame { /* proc/func call stack frame */
Symbol *sp; /* symbol table entry */
int retpc; /* where to resume after return */
ScriptData *retscript; /* which script to resume after return */
-} CFrame;
+};
typedef Common::HashMap<int32, ScriptData *> ScriptHash;
typedef Common::Array<Datum> StackData;