aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/glulxe/glulxe_types.h
diff options
context:
space:
mode:
authorPaul Gilbert2019-04-15 21:36:46 -0700
committerPaul Gilbert2019-04-17 20:46:06 -0700
commit5965b02bcac9dbad6eb2c9b30a59edba0a3b1b5d (patch)
tree2a57326f02bbd0c20b7f1790170d3ba527c55adc /engines/glk/glulxe/glulxe_types.h
parent1c4649018388e7df15bc0787ed66b6dc7755db1d (diff)
downloadscummvm-rg350-5965b02bcac9dbad6eb2c9b30a59edba0a3b1b5d.tar.gz
scummvm-rg350-5965b02bcac9dbad6eb2c9b30a59edba0a3b1b5d.tar.bz2
scummvm-rg350-5965b02bcac9dbad6eb2c9b30a59edba0a3b1b5d.zip
GLK: GLULXE: Add string methods
Diffstat (limited to 'engines/glk/glulxe/glulxe_types.h')
-rw-r--r--engines/glk/glulxe/glulxe_types.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/engines/glk/glulxe/glulxe_types.h b/engines/glk/glulxe/glulxe_types.h
index 5b14a6aaf8..9200ec27eb 100644
--- a/engines/glk/glulxe/glulxe_types.h
+++ b/engines/glk/glulxe/glulxe_types.h
@@ -379,6 +379,31 @@ struct dest_struct {
};
typedef dest_struct dest_t;
+/**
+ * These constants are defined in the Glulx spec.
+ */
+enum iosys {
+ iosys_None = 0,
+ iosys_Filter = 1,
+ iosys_Glk = 2
+};
+
+#define CACHEBITS (4)
+#define CACHESIZE (1 << CACHEBITS)
+#define CACHEMASK (15)
+
+struct cacheblock_struct {
+ int depth; /* 1 to 4 */
+ int type;
+ union {
+ struct cacheblock_struct *branches;
+ unsigned char ch;
+ uint uch;
+ uint addr;
+ } u;
+};
+typedef cacheblock_struct cacheblock_t;
+
} // End of namespace Glulxe
} // End of namespace Glk