Repository navigation
feat(libSceJxr): implement the linked-list WMPStream - #15771
Conversation
|
Windows check of head Setup: Windows 11 Enterprise 22621, WinLibs GCC 15.2 UCRT, Release. The hosted Windows check does not run this test on pull requests.
This is the same Windows behaviour as in #15739. The library stores the address of #15739 fixed it by taking the expected pointer from AI-assisted: yes. |
Progress report (9e47f0c → 4595cdf)📈 System libraries: 32.03% (+0.02%, +6 implemented functions) ✅ 6 implemented
Changed libraries (implemented exports)
|
|
Rechecked on Windows at head AI-assisted: yes. |
47a6346 to
a870eb7
Compare
a870eb7 to
bbf0d80
Compare
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
bbf0d80 to
9db6287
Compare
Fix-up on alvaroelpob's change: ListStream.cpp adapts the linked-list WMPStream functions of jxrlib image/sys/strcodec.c (pinned submodule commit f7521879862b9085318e814c6157490dd9dbbdb4, lines 455-601), so it carries the same Microsoft notice block that main's SimpleBitIo.cpp carries for the same file (strcodec.c lines 1-27, copied verbatim, UTF-8).
|
Hi @alvaroelpob, |
One conflict in docs/dev/debt/libSceJxr.md: keep main's PKImageDecode entry, keep the list stream entry from this PR, and set the remaining additional stubs to 62 (Export.cpp has 68 NotImplemented_nid_no_patch bodies on main; the six list stream exports are implemented here).
|
Hi @alvaroelpob, main had moved under this PR again (a new |
|
Thanks @oneandonlydean. The Could you reword it, for example to |
|
Hi @alvaroelpob, thanks for flagging the conventions failure. It comes from our own fix-up commit d95f1b7 (the licence notice), whose subject has no Conventional Commits type. Rewording it would mean rewriting your branch history with a force-push, which we don't do, so we're merging as-is with the conventions check red on that one commit. Everything else is green (windows pass on 4595cdf), and the content was reviewed. For the record: the subject should have been docs(libSceJxr): add the jxrlib licence notice to the list stream code. Our future fix-ups will carry a type. |
What
Implements the libSceJxr list stream exports, CreateWS_List, CloseWS_List, ReadWS_List, WriteWS_List, SetPosWS_List and GetPosWS_List, as in jxrlib's strcodec.c. The stream keeps 4 KiB guest-heap packets chained through next-packet pointers, and jxrlib's bounds checks are kept as written.
Tested
Full suite on 715a2a2 (Linux): 3883/3883 passed, including the new guest_jxr_list_stream test. It covers writes that fill and link packets, jxrlib's capacity and wrap checks, a failed packet allocation and its retry, reads across packets up to the capacity clamp and past the last packet, seeks inside and beyond the chain, positions, closing a multi-packet stream, and CreateWS_List's layout, slots and allocation failure, with a round trip through the slots. check_conventions passes.
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)