diff options
Diffstat (limited to 'src/fspec/private')
-rw-r--r-- | src/fspec/private/bcode-types.h | 16 |
1 files changed, 16 insertions, 0 deletions
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 <inttypes.h> +#include <stdint.h> + +/** 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; |