diff options
author | Paul Gilbert | 2019-04-15 20:20:33 -0700 |
---|---|---|
committer | Paul Gilbert | 2019-04-17 20:46:06 -0700 |
commit | 1c4649018388e7df15bc0787ed66b6dc7755db1d (patch) | |
tree | 15f54169008eca2a6b578ffb38f5aa401d7cd3a6 /engines/glk/glulxe/glulxe_types.h | |
parent | a6cf55862d8c4ece72fc1f0ecda083b78b853597 (diff) | |
download | scummvm-rg350-1c4649018388e7df15bc0787ed66b6dc7755db1d.tar.gz scummvm-rg350-1c4649018388e7df15bc0787ed66b6dc7755db1d.tar.bz2 scummvm-rg350-1c4649018388e7df15bc0787ed66b6dc7755db1d.zip |
GLK: GLULXE: Add serial methods
Diffstat (limited to 'engines/glk/glulxe/glulxe_types.h')
-rw-r--r-- | engines/glk/glulxe/glulxe_types.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/engines/glk/glulxe/glulxe_types.h b/engines/glk/glulxe/glulxe_types.h index 50b62a0f15..5b14a6aaf8 100644 --- a/engines/glk/glulxe/glulxe_types.h +++ b/engines/glk/glulxe/glulxe_types.h @@ -266,6 +266,11 @@ enum gestulx { gestulx_Float = 11 }; +/** + * You may have to edit the definition of gfloat32 to make sure it's really a 32-bit floating-point type. + */ +typedef float gfloat32; + struct dispatch_splot_struct { int numwanted; int maxargs; @@ -358,6 +363,22 @@ struct heapblock_struct { }; typedef heapblock_struct heapblock_t; +/** + * This structure allows us to write either to a Glk stream or to a dynamically-allocated memory chunk. + */ +struct dest_struct { + int ismem; + + /* If it's a Glk stream: */ + strid_t str; + + /* If it's a block of memory: */ + byte *ptr; + uint pos; + uint size; +}; +typedef dest_struct dest_t; + } // End of namespace Glulxe } // End of namespace Glk |