summaryrefslogtreecommitdiff
path: root/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
commit8d2258410c02a190c69ac51179d6c8793443d678 (patch)
treec0b1173ec225a4519fc81b9033a4623db1fae188 /src/dwm/my-dwm/util.h
parent4e0fe99c05390ad76c9307fcfc743feeeaa83b1f (diff)
dwm try single tagsset
Diffstat (limited to 'src/dwm/my-dwm/util.h')
-rw-r--r--src/dwm/my-dwm/util.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/dwm/my-dwm/util.h b/src/dwm/my-dwm/util.h
new file mode 100644
index 0000000..c0a50d4
--- /dev/null
+++ b/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);