summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Maiolino <[email protected]>2025-07-26 15:27:23 +0200
committerCarlos Maiolino <[email protected]>2025-07-26 15:27:23 +0200
commitfd9f4bd7724b4440bede4ccbb3670e88289402d9 (patch)
treedc9921957e3afeffbafdaf8cf6ea88d6ce446389
parent02a4f7fa2100809d84b93dbe8d6c828e4768ad41 (diff)
Move include files to a subdirectory
Move the include files to the toxic/ subdirectory, so it gets a bit more organized. Ah, yeah, OS name will be renamed to ToxicOS Signed-off-by: Carlos Maiolino <[email protected]>
-rw-r--r--src/include/toxic/kernel.h (renamed from src/include/kernel.h)0
-rw-r--r--src/include/toxic/string.h (renamed from src/lib/string.h)1
-rw-r--r--src/include/toxic/vga.h (renamed from src/include/vga.h)0
-rw-r--r--src/kernel.c7
-rw-r--r--src/vga.c4
5 files changed, 7 insertions, 5 deletions
diff --git a/src/include/kernel.h b/src/include/toxic/kernel.h
index 2007693..2007693 100644
--- a/src/include/kernel.h
+++ b/src/include/toxic/kernel.h
diff --git a/src/lib/string.h b/src/include/toxic/string.h
index 72585ac..69d8bd2 100644
--- a/src/lib/string.h
+++ b/src/include/toxic/string.h
@@ -6,4 +6,5 @@
size_t strlen(const char *s);
char *strcpy(char *restrict dst, const char *restrict src);
+void *memset(void *s, int c, size_t n);
#endif /* STRING_H */
diff --git a/src/include/vga.h b/src/include/toxic/vga.h
index 7aaa210..7aaa210 100644
--- a/src/include/vga.h
+++ b/src/include/toxic/vga.h
diff --git a/src/kernel.c b/src/kernel.c
index bca7849..0aa8eef 100644
--- a/src/kernel.c
+++ b/src/kernel.c
@@ -1,11 +1,12 @@
-#include <kernel.h>
#include <stdint.h>
#include <stddef.h>
-#include <vga.h>
-#include "lib/string.h"
+#include <toxic/vga.h>
+#include <toxic/string.h>
+#include <toxic/kernel.h>
void start_kernel()
{
init_display(2);
vprintl("Hello World!!!\n");
+
}
diff --git a/src/vga.c b/src/vga.c
index 52109c6..276c9c4 100644
--- a/src/vga.c
+++ b/src/vga.c
@@ -1,7 +1,7 @@
#include <stdint.h>
#include <stddef.h>
-#include <vga.h>
-#include "lib/string.h"
+#include <toxic/vga.h>
+#include <toxic/string.h>
struct vga_display display;