Преглед на файлове

initialized bool variable is not required on memory space aware allocators, since they are initialized manually.

Ioannis Koutras преди 13 години
родител
ревизия
07993f77d6
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      include/dmmlib/heap.h

+ 2 - 0
include/dmmlib/heap.h

@@ -79,7 +79,9 @@ typedef struct heap_s {
 /** The allocator structure of dmmlib. */
 typedef struct allocator_s {
 	heap_t heaps[NUM_HEAPS]; /**< The heaps that the allocator manages. */
+#ifndef WITH_MEMORY_SPACE_AWARENESS
 	bool initialized; /**< Initialization flag of the allocator. */
+#endif /* WITH_MEMORY_SPACE_AWARENESS */
 	void *border_ptr; /**< Border pointer of the allocator. */
 #ifdef WITH_MEMORY_SPACE_AWARENESS
 	size_t remaining_size; /**< The size of the remaining free space which