refactor: create include/common.h with shared types/macros, deduplicate across 7 files
This commit is contained in:
+1
-4
@@ -82,14 +82,11 @@
|
||||
#include "ext_workspace.h"
|
||||
#include "ipc.h"
|
||||
#include "ipc_socket.h"
|
||||
#include "common.h"
|
||||
|
||||
/* macros */
|
||||
#define MAX(A, B) ((A) > (B) ? (A) : (B))
|
||||
#define MIN(A, B) ((A) < (B) ? (A) : (B))
|
||||
#define CLEANMASK(mask) (mask & ~WLR_MODIFIER_CAPS)
|
||||
#define LENGTH(X) (sizeof X / sizeof X[0])
|
||||
#define END(A) ((A) + LENGTH(A))
|
||||
#define TAGMASK ((1u << TAGCOUNT) - 1)
|
||||
#define LISTEN(E, L, H) wl_signal_add((E), ((L)->notify = (H), (L)))
|
||||
#define LISTEN_STATIC(E, H) \
|
||||
do { \
|
||||
|
||||
Reference in New Issue
Block a user