Selaa lähdekoodia

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

Ioannis Koutras 13 vuotta sitten
vanhempi
commit
07993f77d6
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  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