basic: Move trivial cleanup/ref/unref macros from macro.h to memory-util.h

Let's keep macro.h for the extremely generic macros that don't fit anywhere
else. Since CLEANUP_ARRAY() is already in memory-util-fundamental.h, we can
make a good case for moving the other cleanup macros in there as well.
This commit is contained in:
Daan De Meyer
2025-04-18 13:59:04 +02:00
parent a4bff6ef8e
commit b14f74f9ab
27 changed files with 115 additions and 89 deletions
+1
View File
@@ -5,6 +5,7 @@
#include <stddef.h>
#include "macro.h"
#include "memory-util.h"
/*
* The log context allows attaching extra metadata to log messages written to the journal via log.h. We keep