This remove the need for various header files to include the
(relatively heavyweight) util.h.
#include <libudev.h>
#include <stdlib.h>
#include "grdev.h"
-#include "hashmap.h"
#include "idev.h"
#include "list.h"
#include "macro.h"
#include "sysview.h"
#include "term.h"
#include "unifont.h"
-#include "util.h"
typedef struct Manager Manager;
typedef struct Session Session;
***/
#include "sd-event.h"
-#include "util.h"
+#include "macro.h"
typedef struct RawImport RawImport;
#include "sparse-endian.h"
#include "journal-def.h"
-#include "util.h"
+#include "macro.h"
#include "mmap-cache.h"
#include "hashmap.h"
#define GID_INVALID ((gid_t) -1)
#define MODE_INVALID ((mode_t) -1)
+#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \
+ static inline void func##p(type *p) { \
+ if (*p) \
+ func(*p); \
+ } \
+ struct __useless_struct_to_allow_trailing_semicolon__
+
#include "log.h"
***/
#include "hashmap.h"
-#include "util.h"
+#include "macro.h"
Set *internal_set_new(const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS);
#define set_new(ops) internal_set_new(ops HASHMAP_DEBUG_SRC_ARGS)
free(*(void**) p);
}
-#define DEFINE_TRIVIAL_CLEANUP_FUNC(type, func) \
- static inline void func##p(type *p) { \
- if (*p) \
- func(*p); \
- } \
- struct __useless_struct_to_allow_trailing_semicolon__
-
static inline void closep(int *fd) {
safe_close(*fd);
}