config.mk tools

This commit is contained in:
2026-05-08 19:19:43 +07:00
parent daa92410a7
commit fe011cb26b
2 changed files with 8 additions and 8 deletions
+3 -3
View File
@@ -7,8 +7,8 @@ proto:
$(WAYLAND_SCANNER) server-header ./protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h $(WAYLAND_SCANNER) server-header ./protocols/wlr-layer-shell-unstable-v1.xml wlr-layer-shell-unstable-v1-protocol.h
compile: proto compile: proto
cc -o absinthe src/* $(CFLAGS) $(LDFLAGS) $(CC) -o absinthe src/* $(CFLAGS) $(LDFLAGS)
format: format:
find src/ -type f -print0 | xargs -0 clang-format -i find src/ -type f | xargs $(CLANG_FORMAT) -i
find include/ -type f -print0 | xargs -0 clang-format -i find include/ -type f | xargs $(CLANG_FORMAT) -i
+5 -5
View File
@@ -21,12 +21,12 @@
#include <xcb/xcb_icccm.h> #include <xcb/xcb_icccm.h>
#endif #endif
#define BTN_LEFT 0x110 #define BTN_LEFT 0x110
#define BTN_RIGHT 0x111 #define BTN_RIGHT 0x111
#define BTN_MIDDLE 0x112 #define BTN_MIDDLE 0x112
#define MAX(A, B) (A) > (B) ? (A) : (B) #define MAX(A, B) (A) > (B) ? (A) : (B)
#define MIN(A, B) (A) < (B) ? (A) : (B) #define MIN(A, B) (A) < (B) ? (A) : (B)
/* macro for adding listener for event */ /* macro for adding listener for event */
#define LISTEN(L, C, E) \ #define LISTEN(L, C, E) \
do { \ do { \