Link KPR library with natural callback initialization order #762
Reference in New Issue
Block a user
Delete Branch "agent/bittle/kpr-lib-link"
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?
Scope
Follow up #754's 9/9 function matching with native linkage. Two explicit NULL initializers plus one Matching flag; no metadata, forced sections, padding objects, assembly, or new storage.
The flag-only attempt failed the DOL gate at five bytes. MWCC deferred the tentative file-static callbacks until after the function-local once variable: native .sbss was once+0, Romaji+8, DeadKeys+12; reference is DeadKeys+0, Romaji+4, once+8. Giving both existing callback pointers their natural explicit NULL initializers emits them at their declarations and reproduces the reference layout, preserving their local bindings and initial values.
Evidence
Verification after rebase on
c44fbd7209bfb996f681exactly matches the tested local tree.Draft for review; no merge performed.
Reviewed and merged: rebased on main, full build ok, DOL sha1 26116613f624061ba99c8d1a299aaa6efa85670d, 0 regressions, 0 forbidden patterns.