From f640ceee89836b56ac95c4eb1b0a43d1171c3354 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 17 May 2023 00:19:14 +0200 Subject: General improvements (nothing special, mainly cleanup and docs) --- inc/free.h | 13 ------------- inc/parse.h | 1 + inc/term.h | 1 + 3 files changed, 2 insertions(+), 13 deletions(-) delete mode 100644 inc/free.h (limited to 'inc') diff --git a/inc/free.h b/inc/free.h deleted file mode 100644 index 34c82c7..0000000 --- a/inc/free.h +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright (c) 2023, Marvin Borner -// SPDX-License-Identifier: MIT - -#ifndef BLOC_FREE_H -#define BLOC_FREE_H - -#include -#include - -void free_term(struct term *term); -void free_bloc(struct bloc_parsed *bloc); - -#endif diff --git a/inc/parse.h b/inc/parse.h index 2071f65..205f204 100644 --- a/inc/parse.h +++ b/inc/parse.h @@ -16,6 +16,7 @@ struct bloc_parsed { struct term *parse_blc(const char *term); struct bloc_parsed *parse_bloc(const void *bloc); +void free_bloc(struct bloc_parsed *bloc); struct term *from_bloc(struct bloc_parsed *bloc); #endif diff --git a/inc/term.h b/inc/term.h index a90bdd3..1fe5a91 100644 --- a/inc/term.h +++ b/inc/term.h @@ -28,5 +28,6 @@ struct term { }; struct term *new_term(term_type type); +void free_term(struct term *term); #endif -- cgit v1.2.3