From eb0877145d6b555fdcfb8dd8b89e1fe033ee0cd9 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 11 Aug 2014 12:13:50 -0400 Subject: [PATCH] added mem.h include to all data structure headers so that users have access to mem_release and mem_retain --- source/buffer/buf.h | 1 + source/list/list.h | 3 ++- source/vector/vec.h | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/source/buffer/buf.h b/source/buffer/buf.h index d3ba854..783d637 100644 --- a/source/buffer/buf.h +++ b/source/buffer/buf.h @@ -13,6 +13,7 @@ extern "C" { #include #include +#include "mem.h" /* Forward declare our structure */ struct buf_t; diff --git a/source/list/list.h b/source/list/list.h index 8ee0b29..3bea15d 100644 --- a/source/list/list.h +++ b/source/list/list.h @@ -7,6 +7,7 @@ extern "C" { #include #include +#include "mem.h" /** A linked list node. */ typedef struct list_node_t @@ -202,7 +203,7 @@ list_node_t* list_delete(list_t* list, size_t index); /** * @brief Delete a node from the supplied list. * - * This function differs from the above list_delete in that it is given a + * This function differs from the above list_delete in that it is given a * pointer to a node to be deleted instead of an index. * //TODO: verify node->next should be set to NULL following successful deletion * //TODO: verify node->next should not be touched if node not present in list diff --git a/source/vector/vec.h b/source/vector/vec.h index 4946861..31be975 100644 --- a/source/vector/vec.h +++ b/source/vector/vec.h @@ -11,6 +11,7 @@ #include #include #include +#include "mem.h" #ifdef __cplusplus extern "C" { -- 2.52.0