clean up and standardize types across the codebase, unify atomic operations, improve UTF-8 handling throughout the system, remove obsolete input and named queue interfaces, redesign process preparation and creation, tighten IPC and service boundaries, improve error handling and reliability, minor documentation cleanup, fix doom surfaces, fix panic in ini parsing.
This commit is contained in:
1 parent
899225f551
commit
c0ad63c27f
226 files changed
+6562
-4147
No files matched your search
@@ -1,5 +1,6 @@
|
||||
// POSIX compatibility support for path translation.
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
#include <ntlite/status.h>
|
||||
@@ -63,17 +64,17 @@ KSTATUS PosixProcessPath(const char* in, char* out, size_t outSize) {
|
||||
return NTLSTATUS_SUCCESS;
|
||||
}
|
||||
|
||||
static int PosixViewEqualsI(SYS_STRING_VIEW view, const char* text) {
|
||||
static bool PosixViewEqualsI(SYS_STRING_VIEW view, const char* text) {
|
||||
size_t length = strlen(text);
|
||||
if (view.Length != length) return 0;
|
||||
if (view.Length != length) return false;
|
||||
for (size_t i = 0; i < length; ++i) {
|
||||
char a = view.Data[i];
|
||||
char b = text[i];
|
||||
if (a >= 'A' && a <= 'Z') a = (char)(a - 'A' + 'a');
|
||||
if (b >= 'A' && b <= 'Z') b = (char)(b - 'A' + 'a');
|
||||
if (a != b) return 0;
|
||||
if (a != b) return false;
|
||||
}
|
||||
return 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
// POSIX owns the msvcrt compatibility alias; all other import names are native.
|
||||
|
||||
Reference in new issue
Block a user