remove stale code from posix_path, redo readme

This commit is contained in:
maksw committed 2026-06-30 21:50:26 +02:00
1 parent b7fcfce6f7
commit 08329516ba
2 files changed
+39 -201

No files matched your search

@@ -4,11 +4,6 @@
#include <string.h>
#include "posix_path.h"
// Implements the flip Slashes operation.
static void FlipSlashes(char* s) {
for (; *s; s++) if (*s == '/') *s = '\\';
}
// Checks whether drive Mount.
static int IsDriveMount(const char* p) {
return p && p[0] == '/' && p[1] >= '0' && p[1] <= '7' &&
@@ -30,7 +25,6 @@ const char* PosixTranslatePath(const char* in, char* out, size_t outSize) {
if (restLen + 4 > outSize) restLen = outSize - 4;
memcpy(out + 3, rest, restLen);
out[3 + restLen] = '\0';
FlipSlashes(out);
return out;
}
@@ -49,7 +43,6 @@ const char* PosixTranslatePath(const char* in, char* out, size_t outSize) {
out[len] = '\0';
}
FlipSlashes(out);
return out;
}