diff options
Diffstat (limited to 'bytecode/slice.h')
| -rw-r--r-- | bytecode/slice.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bytecode/slice.h b/bytecode/slice.h index 509f7ca..577befd 100644 --- a/bytecode/slice.h +++ b/bytecode/slice.h @@ -4,13 +4,24 @@ #include <stddef.h> #include <stdint.h> +#include "value.h" + struct slice { size_t size; uint8_t *buf; }; +struct val_slice { + size_t size; + value *buf; +}; + struct slice slice(struct slice, size_t, size_t); struct slice slice1(struct slice, size_t); +struct val_slice val_slice(struct val_slice, size_t, size_t); + +struct val_slice val_slice1(struct val_slice, size_t); + #endif |
