summaryrefslogtreecommitdiff
path: root/tree/src/dwm/my-dwm/util.h
diff options
context:
space:
mode:
authorThomas Ulmer <thomasmulmer02@gmail.com>2026-02-13 09:22:47 -0800
committerThomas Ulmer <thomasmulmer02@gmail.com>2026-02-13 09:22:47 -0800
commitf56506908110a82b369780a5a7cfc07cc7ede850 (patch)
tree3d2152dae43bc664556eff7ff5b254236b6f41b7 /tree/src/dwm/my-dwm/util.h
parent20867201e2016aa1f4dc489ec2f608cfcdb6aac2 (diff)
dwm try single tagsset
Diffstat (limited to 'tree/src/dwm/my-dwm/util.h')
-rw-r--r--tree/src/dwm/my-dwm/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tree/src/dwm/my-dwm/util.h b/tree/src/dwm/my-dwm/util.h
new file mode 100644
index 0000000..c0a50d4
--- /dev/null
+++ b/tree/src/dwm/my-dwm/util.h
@@ -0,0 +1,9 @@
+/* See LICENSE file for copyright and license details. */
+
+#define MAX(A, B) ((A) > (B) ? (A) : (B))
+#define MIN(A, B) ((A) < (B) ? (A) : (B))
+#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B))
+#define LENGTH(X) (sizeof (X) / sizeof (X)[0])
+
+void die(const char *fmt, ...);
+void *ecalloc(size_t nmemb, size_t size);