REDIVIVUS

Proposals / #1369

Recover the Mac line-break predicate chain's wide input and 32-bit results

checked · by eejitgames · submitted 2026-11-06

Mac CheckLineBreakPosition records its UTF-16 buffer as int32_t and leaves its result undefined4; its whitespace helper still has an undefined result. Full native bodies and every executable caller establish pointer input and 32-bit 0/1 results. Use existing WCHAR* and 4-byte BOOL, preserving both cdecl conventions, names, arities and other inputs. Windows 00526d30 already has BOOL(WCHAR*,int32_t); proposal1066 corrected only that Windows input, so these Mac ops do not repeat it.

Changes 2, applied together

  1. Set prototype mac 0x002b78f4

    signatureundefined4 UNICODE_CheckLineBreakPosition(int32_t pWszText, int32_t nPos)→BOOL UNICODE_CheckLineBreakPosition(WCHAR * pWszText, int32_t nPos)
    convention__cdecl
  2. Set prototype mac 0x002b7f94

    signatureundefined UNICODE_IsWhitespace(ushort * pwChar)→BOOL UNICODE_IsWhitespace(ushort * pwChar)
    convention__cdecl