diff options
Diffstat (limited to 'inc/spec.h')
-rw-r--r-- | inc/spec.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/inc/spec.h b/inc/spec.h new file mode 100644 index 0000000..3d8300c --- /dev/null +++ b/inc/spec.h @@ -0,0 +1,20 @@ +// Copyright (c) 2023, Marvin Borner <dev@marvinborner.de> +// SPDX-License-Identifier: MIT + +#ifndef BLOC_SPEC_H +#define BLOC_SPEC_H + +#define BLOC_IDENTIFIER "BLoC" +#define BLOC_IDENTIFIER_LENGTH 4 + +struct bloc_header { + char identifier[BLOC_IDENTIFIER_LENGTH]; + short length; + void *entries; +} __attribute__((packed)); + +struct bloc_entry { + void *expression; +} __attribute__((packed)); + +#endif |