#define DEBUG_MEMORY_IMPLEMENTATION
-#include "os/os_memory.h"
-#include "os/os_memory_debug.h"
#include "os/os_thread.h"
#include "util/u_debug.h"
+#include "util/u_debug_gallium.h"
#include "util/u_debug_stack.h"
#include "util/list.h"
+#include "util/os_memory.h"
+#include "util/os_memory_debug.h"
#define DEBUG_MEMORY_MAGIC 0x6e34090aU
ftr->magic = DEBUG_MEMORY_MAGIC;
mtx_lock(&list_mutex);
- LIST_ADDTAIL(&hdr->head, &list);
+ list_addtail(&hdr->head, &list);
mtx_unlock(&list_mutex);
return data_from_header(hdr);
memset(ptr, DEBUG_FREED_BYTE, hdr->size);
#else
mtx_lock(&list_mutex);
- LIST_DEL(&hdr->head);
+ list_del(&hdr->head);
mtx_unlock(&list_mutex);
hdr->magic = 0;
ftr->magic = 0;
new_ftr->magic = DEBUG_MEMORY_MAGIC;
mtx_lock(&list_mutex);
- LIST_REPLACE(&old_hdr->head, &new_hdr->head);
+ list_replace(&old_hdr->head, &new_hdr->head);
mtx_unlock(&list_mutex);
/* copy data */