refactor(ffi-linkage): Phase 6.4 — migrate ffi/ #foreign→extern

Pure source rename across objc/objc_block/raylib/sdl3/wasm (~51 sites): fn-decl
markers (bare / 'objc' LIB ref) → 'extern …', and objc.sx's 2 import runtime
classes '#foreign #objc_class("X") {' → '#objc_class("X") extern {'. No bare
defined classes. Behavior-preserving. objc + objc_block validated directly by the
50 marked 13xx corpus examples (incl. import classes 1300/1301 + defined classes
1339/1349); raylib/ffi-sdl3/wasm (no marked importers on host) verified by
byte-identical 'sx ir' probes pre/post. Empty snapshot diff; suite green (647
corpus / 444 unit, 0 failed).
This commit is contained in:
agra
2026-06-15 04:45:55 +03:00
parent 48a8769d19
commit 666a2e20e1
5 changed files with 51 additions and 51 deletions

View File

@@ -8,10 +8,10 @@ Vector2 :: struct {
x, y: f32;
}
InitWindow :: (width: i32, height: i32, title: [:0]u8) -> void #foreign raylib;
CloseWindow :: () -> void #foreign raylib;
WindowShouldClose :: () -> bool #foreign raylib;
BeginDrawing :: () -> void #foreign raylib;
EndDrawing :: () -> void #foreign raylib;
ClearBackground :: (color: Color) -> void #foreign raylib;
DrawTriangle :: (v1: Vector2, v2: Vector2, v3: Vector2, color: Color) -> void #foreign raylib;
InitWindow :: (width: i32, height: i32, title: [:0]u8) -> void extern raylib;
CloseWindow :: () -> void extern raylib;
WindowShouldClose :: () -> bool extern raylib;
BeginDrawing :: () -> void extern raylib;
EndDrawing :: () -> void extern raylib;
ClearBackground :: (color: Color) -> void extern raylib;
DrawTriangle :: (v1: Vector2, v2: Vector2, v3: Vector2, color: Color) -> void extern raylib;