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/parse.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 inc/parse.h (limited to 'inc/parse.h') diff --git a/inc/parse.h b/inc/parse.h new file mode 100644 index 0000000..2368199 --- /dev/null +++ b/inc/parse.h @@ -0,0 +1,20 @@ +// Copyright (c) 2023, Marvin Borner +// SPDX-License-Identifier: MIT + +#ifndef BLOC_PARSE_H +#define BLOC_PARSE_H + +#include + +#include +#include + +struct bloc_parsed { + size_t length; + struct term **entries; +}; + +struct bloc_parsed *parse_bloc(const void *bloc); +void free_bloc(struct bloc_parsed *bloc); + +#endif -- cgit v1.2.3