rewrite comments into one, unified style

This commit is contained in:
maksw committed 2026-06-15 10:17:48 +02:00
1 parent 6260de0085
commit 467a58c9c6
163 files changed
+3560 -2556

No files matched your search

+5 -1
View File
@@ -1,12 +1,15 @@
// posix_path.c - POSIX <-> native path translation
// POSIX compatibility support for posix path.
#include <stddef.h>
#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' &&
(p[2] == '\0' || p[2] == '/');
@@ -50,6 +53,7 @@ const char* PosixTranslatePath(const char* in, char* out, size_t outSize) {
return out;
}
// Implements the native To Posix operation.
void NativeToPosix(const char* in, char* out, size_t outSize) {
if (!in || !out || outSize == 0) return;