From b754e71ca502a5027ea3479eb3ea1a0ac28e5282 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 Jan 2024 00:59:12 +0100 Subject: Initial commit --- inc/spec.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 inc/spec.h (limited to 'inc/spec.h') 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 +// 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 -- cgit v1.2.3