Restore translation-unit ownership and publish verified source corrections

Owner-authorized source migration: 31 helper-only translation units were merged into their callers or existing inline headers; both build manifests updated. Includes the preserved source payload, Lua configuration matching wowdecomp, and exact malloca expansion without diagnostic pragmas.

449 native units compiled locally and 449 staged units compiled by the pinned server toolchain. No previously byte-matched function regressed. Compiler mapping diagnostics remain recorded as needs_cleanup, not accepted or peer-confirmed. Existing independent review records are preserved. README.md is intentionally unchanged.
This commit is contained in:
ragnarok-clanker 2026-10-25 15:42:21 +00:00
commit e168b4e4a6
326 changed files with 9538 additions and 3481 deletions

View file

@ -1,4 +1,5 @@
#include "Network/TextEncoding.h"
#include "Utility/StackAlloc.h"
#include <cstdlib>
#include <cstring>
@ -19,7 +20,7 @@ std::string ToUtf8(std::string text) {
if (wide) {
MultiByteToWideChar(g_textCodePage, 0, text.c_str(), lstrlenA(text.c_str()), wide, wideLength);
int length = WideCharToMultiByte(CP_UTF8, 0, wide, -1, nullptr, 0, nullptr, nullptr);
char* converted = static_cast<char*>(_malloca(length + 1));
char* converted = static_cast<char*>(STACK_ALLOC(length + 1));
if (converted) {
WideCharToMultiByte(CP_UTF8, 0, wide, -1, converted, length, nullptr, nullptr);
@ -43,7 +44,7 @@ std::string FromUtf8(std::string text) {
BSTR wide = SysAllocStringLen(nullptr, wideLength);
MultiByteToWideChar(CP_UTF8, 0, text.c_str(), lstrlenA(text.c_str()) + 1, wide, wideLength);
int length = WideCharToMultiByte(g_textCodePage, 0, wide, -1, nullptr, 0, nullptr, nullptr);
char* converted = static_cast<char*>(_malloca(length + 1));
char* converted = static_cast<char*>(STACK_ALLOC(length + 1));
if (converted) {
WideCharToMultiByte(g_textCodePage, 0, wide, -1, converted, length, nullptr, nullptr);