about summary refs log tree commit diff
path: root/boot/common.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-07-04 03:27:27 +0200
committerMel <mel@rnrd.eu>2025-07-04 03:27:27 +0200
commit8f2e0f0202317cc27371d2833eb93b64230ac0e8 (patch)
treee2b395c1abbdab5fe12d22b3847c7ce7373f4bd6 /boot/common.c
parent8e0beabeb4efa50a3072ef805682c0f42b6c16a8 (diff)
downloadcatskill-8f2e0f0202317cc27371d2833eb93b64230ac0e8.tar.zst
catskill-8f2e0f0202317cc27371d2833eb93b64230ac0e8.zip
Test suite runner prototype for `catboot`
Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/common.c')
-rw-r--r--boot/common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/common.c b/boot/common.c
index cf9aa46..a072f60 100644
--- a/boot/common.c
+++ b/boot/common.c
@@ -10,8 +10,6 @@
 
 #pragma once
 
-#include "catboot.h"
-
 #include <stdarg.h>
 #include <stddef.h>
 #include <stdint.h>
@@ -102,6 +100,8 @@ check(bool condition, const ascii* message)
 // for each entry in a linked list.
 #define FOR_EACH(type, cursor, head) for (type cursor = head; cursor != nil; cursor = cursor->next)
 
+#define ARRAY_SIZE(array) (sizeof(array) / sizeof((array)[0]))
+
 // the common size of region memory blocks.
 #define REGION_SIZE 65536