refactor: create include/common.h with shared types/macros, deduplicate across 7 files

This commit is contained in:
2026-07-02 01:58:57 -04:00
parent 9581031dac
commit 1e09b182ee
8 changed files with 48 additions and 71 deletions
+1 -7
View File
@@ -1,13 +1,7 @@
#pragma once
#include "peachwm-ipc-unstable-v2-protocol.h"
#include "monitor.h"
/* macros needed by IPC */
#ifndef TAGCOUNT
#define TAGCOUNT 9
#endif
#define LENGTH(X) (sizeof X / sizeof X[0])
#define TAGMASK ((1u << TAGCOUNT) - 1)
#include "common.h"
/* Forward declarations from peachwm.c */