about summary refs log tree commit diff
path: root/boot/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/common.c')
-rw-r--r--boot/common.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/boot/common.c b/boot/common.c
index a072f60..1835cd7 100644
--- a/boot/common.c
+++ b/boot/common.c
@@ -249,6 +249,14 @@ string_array_at(const struct String_Array* array, uint index)
     struct String str = array.strings[0];         \
     for (uint cursor = 0; cursor < array.count; str = array.strings[++cursor])
 
+// a source file given to the compiler.
+struct Source_File
+{
+    struct String source;
+    // path to the source file, relative to the current working directory.
+    struct String path;
+};
+
 // single iteration of the CRC32 checksum algorithm
 // described in POSIX.
 // see: https://pubs.opengroup.org/onlinepubs/9799919799/utilities/cksum.html