summaryrefslogtreecommitdiff
path: root/src/aplos.h
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-26 16:23:58 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2025-07-26 16:23:58 +0200
commitb5a24778844f41e38168d97761d72cf0d5b400b3 (patch)
tree1d880857bb4f6ff3406d7572e25bf738134a165c /src/aplos.h
parentfdef211fd968c6a3ff0ca6ca38620e8c13387c4c (diff)
Some minor cleanup
Diffstat (limited to 'src/aplos.h')
-rw-r--r--src/aplos.h28
1 files changed, 15 insertions, 13 deletions
diff --git a/src/aplos.h b/src/aplos.h
index 4e663f4..a64e7cc 100644
--- a/src/aplos.h
+++ b/src/aplos.h
@@ -28,30 +28,32 @@ struct boot_info
/* boot.c */
uint64_t cpu_count(void);
-
+
+/* error.c */
+void assert(bool);
+
+/* font.c */
+void font_init(void);
+void font_draw(char8_t *, uint32_t, uint32_t, uint32_t, uint32_t);
+
/* main.c */
void main(struct boot_info *);
-#define ASSERT(chk) do{if(!(chk)) halt();}while(0)
+
+/* nasty.S */
+void halt(void);
/* screen.c */
void screen_init(struct framebuffer *);
void screen_draw_pixel(uint32_t, uint32_t, uint32_t);
void print(char8_t *, ...);
-/* font.c */
-void font_init(void);
-void font_draw(char8_t *, uint32_t, uint32_t, uint32_t, uint32_t);
+/* utf8.c */
+int utf8_char_length(const char8_t *);
+int utf8_cmp_n(const char8_t *, const char8_t *, uint64_t);
+uint32_t utf8_value(const char8_t *);
/* util.c */
uint16_t read_uint16_le(const uint8_t *);
uint16_t read_uint16_be(const uint8_t *);
uint32_t read_uint32_le(const uint8_t *);
int memcmp(const void *, const void *, size_t);
-
-/* utf8.c */
-int utf8_char_length(const char8_t *);
-int utf8_cmp_n(const char8_t *, const char8_t *, uint64_t);
-uint32_t utf8_value(const char8_t *);
-
-/* nasty.S */
-extern void halt(void);