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:
maksw committed 2026-10-12 18:17:43 +02:00
1 parent 899225f551
commit c0ad63c27f
226 files changed
+6562 -4147

No files matched your search

@@ -1,5 +1,7 @@
// WinMM waveform-output smoke test over the native render-stream personality path.
#include <ntlite/atomic.h>
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
@@ -127,9 +129,9 @@ static int16_t gS16Frames[TEST_FRAMES * 2u];
static uint8_t gS24Frames[TEST_FRAMES * 2u * 3u];
static int16_t gControlFrames[TEST_CONTROL_FRAMES * 2u];
static HANDLE gFunctionEvent;
static volatile long gOpenCallbacks;
static volatile long gDoneCallbacks;
static volatile long gCloseCallbacks;
static int32_t gOpenCallbacks;
static int32_t gDoneCallbacks;
static int32_t gCloseCallbacks;
// Writes one NUL-terminated string to the kernel console.
static void print(const char* text) {
@@ -205,12 +207,12 @@ static void __stdcall wave_callback(HWAVEOUT waveOut,
(void)parameter1;
(void)parameter2;
if (message == WOM_OPEN)
_InterlockedIncrement(&gOpenCallbacks);
NtlAtomicIncrement32(&gOpenCallbacks);
else if (message == WOM_DONE) {
_InterlockedIncrement(&gDoneCallbacks);
NtlAtomicIncrement32(&gDoneCallbacks);
(void)SetEvent(gFunctionEvent);
} else if (message == WOM_CLOSE)
_InterlockedIncrement(&gCloseCallbacks);
NtlAtomicIncrement32(&gCloseCallbacks);
}
// Waits for one callback event with a finite deadline.