From 5c8f9487ec11035cbd1accfb67f1a4943a2b8db1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 11 Apr 2023 20:56:14 +0200 Subject: Bootstrapping --- inc/spec.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 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..8bd8ace --- /dev/null +++ b/inc/spec.h @@ -0,0 +1,24 @@ +// 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 *data; +} __attribute__((packed)); + +struct bloc_entry { + void *expression; +} __attribute__((packed)); + +struct bloc_structure { + void *expression; +} __attribute__((packed)); + +#endif -- cgit v1.2.3