summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-12-07 17:45:58 +0100
committerMitya Selivanov <automainint@guattari.tech>2023-12-07 17:45:58 +0100
commit3d00d8a155be29dd003d03bdc95eef5cdd6d6c67 (patch)
tree1695fcb768332b520d2bb918245c10402f7429dd /source
parent8b39a701ec9a09c1a66bce5ebfab99aacfb77815 (diff)
downloadkit-3d00d8a155be29dd003d03bdc95eef5cdd6d6c67.zip
Update build script
Diffstat (limited to 'source')
-rw-r--r--source/kit/file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/kit/file.c b/source/kit/file.c
index 8fcf4fb..e5b834f 100644
--- a/source/kit/file.c
+++ b/source/kit/file.c
@@ -260,6 +260,9 @@ kit_str_t kit_path_take(kit_str_t path, i64 count) {
return s;
}
+// TODO
+// Long path support for Windows
+//
static void kit_prepare_path_(char *buf, kit_str_t path) {
assert(path.size == 0 || path.values != NULL);
assert(path.size + 1 < PATH_BUF_SIZE);
@@ -268,6 +271,7 @@ static void kit_prepare_path_(char *buf, kit_str_t path) {
if (path.size > 0 && path.size + 1 < PATH_BUF_SIZE)
memcpy(buf, path.values, path.size);
}
+
#define PREPARE_PATH_BUF_ \
char buf[PATH_BUF_SIZE]; \
kit_prepare_path_(buf, path)