From: Michael D. Lowis Date: Mon, 11 Aug 2014 16:13:50 +0000 (-0400) Subject: added mem.h include to all data structure headers so that users have access to mem_re... X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=refs%2Fheads%2Fencapsulation;p=projs%2Flibcds.git added mem.h include to all data structure headers so that users have access to mem_release and mem_retain --- 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" {