refactor(ffi-linkage): Phase 6.5 — migrate gpu/ #foreign→extern; library/ now #foreign-free

Final Phase 6 batch: gpu/gles3.sx (eglGetProcAddress + 1 comment) and gpu/metal.sx
(MTLCreateSystemDefaultDevice), bare fn markers → 'extern'. Verified byte-identical
'sx ir' on importers 1610 (gles3 via uikit GLView) + 1606 (metal). **PHASE 6
COMPLETE — zero #foreign remains anywhere under library/.** Empty snapshot diff;
suite green (647 corpus / 444 unit, 0 failed). Next: Phase 7 (examples + issues).
This commit is contained in:
agra
2026-06-15 04:48:30 +03:00
parent 666a2e20e1
commit 32a7628297
2 changed files with 3 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
// MTLCreateSystemDefaultDevice lives in the Metal framework as a plain C
// function. Returns id<MTLDevice> retained +1; we leak it for now since
// the device lives for the whole process.
MTLCreateSystemDefaultDevice :: () -> *void #foreign;
MTLCreateSystemDefaultDevice :: () -> *void extern;
// Pixel formats.
MTL_PIXEL_FORMAT_BGRA8_UNORM :u64: 80;