]> git.mdlowis.com Git - projs/libcds.git/commitdiff
added mem.h include to all data structure headers so that users have access to mem_re... encapsulation
authorMichael D. Lowis <mike.lowis@gentex.com>
Mon, 11 Aug 2014 16:13:50 +0000 (12:13 -0400)
committerMichael D. Lowis <mike.lowis@gentex.com>
Mon, 11 Aug 2014 16:13:50 +0000 (12:13 -0400)
source/buffer/buf.h
source/list/list.h
source/vector/vec.h

index d3ba854043094572eea3e5ab7962ae2eaf2e4a70..783d63747590814b12389fe6ed7c715c52830749 100644 (file)
@@ -13,6 +13,7 @@ extern "C" {
 
 #include <string.h>
 #include <stdbool.h>
+#include "mem.h"
 
 /* Forward declare our structure */
 struct buf_t;
index 8ee0b29c0bc7418a6aa220f2c39679dc217f02f1..3bea15d162f17f1fed0511d33d36759bfb1bf41c 100644 (file)
@@ -7,6 +7,7 @@ extern "C" {
 
 #include <string.h>
 #include <stdbool.h>
+#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
index 49468611a6f9c4af930271b0fadba07dbb7bbddb..31be97548481b17e4f9808232e13b0718cca6e00 100644 (file)
@@ -11,6 +11,7 @@
 #include <stdarg.h>
 #include <stdbool.h>
 #include <stddef.h>
+#include "mem.h"
 
 #ifdef __cplusplus
 extern "C" {