From 4750be2da326297830691c54adbab0a5dea14802 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Fri, 23 Feb 2018 12:54:43 +0200 Subject: wip --- src/fspec/private/bcode-types.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/fspec/private/bcode-types.h (limited to 'src/fspec/private') diff --git a/src/fspec/private/bcode-types.h b/src/fspec/private/bcode-types.h new file mode 100644 index 0000000..8c9ce74 --- /dev/null +++ b/src/fspec/private/bcode-types.h @@ -0,0 +1,16 @@ +#pragma once + +#include +#include + +/** maximum size of string literals */ +#define PRI_FSPEC_STRSZ PRIu8 +typedef uint8_t fspec_strsz; + +/** maximum range of variable ids */ +#define PRI_FSPEC_VAR PRIu16 +typedef uint16_t fspec_var; + +/** maximum range of bytecode offsets */ +#define PRI_FSPEC_OFF PRIu32 +typedef uint32_t fspec_off; -- cgit v1.2.3-70-g09d2