diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/kit/file.c | 4 |
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) |