about summary refs log tree commit diff
path: root/boot/catboot.c
diff options
context:
space:
mode:
authorMel <mel@rnrd.eu>2025-06-30 23:15:23 +0200
committerMel <mel@rnrd.eu>2025-06-30 23:15:23 +0200
commit37217cf1b921a2a6e128b6134518912f0bd57f62 (patch)
tree4a1f616355e02198735878e55c32347376848a93 /boot/catboot.c
parent0737d287c29b404700bfaa07625177eb443dfab2 (diff)
downloadcatskill-37217cf1b921a2a6e128b6134518912f0bd57f62.tar.zst
catskill-37217cf1b921a2a6e128b6134518912f0bd57f62.zip
Factor out translation unit includes to seperate header
This allows both the usual build compiler and an LSP server like `clangd`
to correctly locate symbols throughout every subunit.

Signed-off-by: Mel <mel@rnrd.eu>
Diffstat (limited to 'boot/catboot.c')
-rw-r--r--boot/catboot.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/boot/catboot.c b/boot/catboot.c
index f716e4f..fac6273 100644
--- a/boot/catboot.c
+++ b/boot/catboot.c
@@ -24,11 +24,7 @@
 #include <sys/mman.h>
 #include <sys/stat.h>
 
-#include "common.c"
-#include "lex.c"
-#include "tree.c"
-#include "parse.c"
-#include "visit.c"
+#include "catboot.h"
 
 const ascii*
 read_file(const ascii* path)