feat(libcairo): implement cairo_glyph_free #16954
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/16954"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by jeej1k on 2026-11-08T01:13:19Z.
What
Implements
cairo_glyph_free(NIDlAEbTbSUTTo) in libcairo for the inputs this library can account for. A null pointer is a no-op, as in Cairo (API docs). No export here allocates glyph arrays yet (cairo_scaled_font_text_to_glyphsis still a stub, andcairo_glyph_allocateis not in the PS5 catalogue), so a non-null array comes from outside the library and still throws throughNotImplemented_nid_no_patchinstead of reachingfree. Freeing can follow the allocator once an export returns glyph arrays.cairo_glyph_tis declared with the PS5 (LP64) layout: a 64-bit glyph index followed by two doubles, 24 bytes. The index isstd::uint64_trather thanunsigned long, which is 32 bits on Windows. The stub is removed fromExport.cpp, the declaration lives once inInventoryExports.hpp, and the debt file drops its row (73 remaining callable NIDs) and gets a short entry for the new file.Tested
Windows 11 25H2, WinLibs GCC 15.2.0 r7 UCRT, Release,
BUILD_TESTING=ON, rebased on currentmain. Newguest_cairo_glyphtest: layout static asserts, null is a no-op, and a non-null array throws. Fullctest: 5038 of 5040 passed,guest_cairo_glyphandpatched_librariesincluded; the two failures (configure_seed_stdout,check_compile_test_windows_gcc_response_text_mode_is_not_reinterpreted) also fail on this machine without the change.python tools/check_conventions.py --base origin/main: all checks passed. Not tested on Linux or on a console.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code