basic: Stop including log.h in macro.h

Now that the necessary functions from log.h have been moved to macro.h,
we can stop including log.h in macro.h. This requires modifying source
files all over the tree to include log.h instead.
This commit is contained in:
Daan De Meyer
2025-04-18 14:19:15 +02:00
parent c68eb22064
commit 93a1f7921a
324 changed files with 354 additions and 31 deletions
+1 -8
View File
@@ -215,14 +215,7 @@ char* strrep(const char *s, unsigned n);
int split_pair(const char *s, const char *sep, char **ret_first, char **ret_second);
int free_and_strdup(char **p, const char *s);
static inline int free_and_strdup_warn(char **p, const char *s) {
int r;
r = free_and_strdup(p, s);
if (r < 0)
return log_oom();
return r;
}
int free_and_strdup_warn(char **p, const char *s);
int free_and_strndup(char **p, const char *s, size_t l) _nonnull_if_nonzero_(2, 3);
int strdup_to_full(char **ret, const char *src);