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:
@@ -14,6 +14,7 @@
|
||||
#include "glyph-util.h"
|
||||
#include "gunicode.h"
|
||||
#include "locale-util.h"
|
||||
#include "log.h"
|
||||
#include "macro.h"
|
||||
#include "memory-util.h"
|
||||
#include "memstream-util.h"
|
||||
@@ -1042,6 +1043,15 @@ int free_and_strdup(char **p, const char *s) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
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_strndup(char **p, const char *s, size_t l) {
|
||||
char *t;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user