refactor(ffi-linkage): Phase 6.3 — migrate std/ #foreign→extern
Pure source rename across 11 std modules (~60 sites): cli/core/fmt/fs/log/ net/kqueue/process/socket/thread/time/trace. All fn-decl markers — bare '#foreign;', '#foreign libc;'/'#foreign tlib;' (LIB ref), and '#foreign libc "csym";' (LIB+rename) → the same 'extern …' tail (extern carries the identical [LIB] ["csym"] axis). Plus 2 stale comment mentions (fmt/fs). No class forms in std. These modules ARE host-corpus-exercised, so the empty snapshot diff is direct validation. Suite green (647 corpus / 444 unit, 0 failed).
This commit is contained in:
@@ -24,7 +24,7 @@ Timespec :: struct {
|
||||
nsec: i64;
|
||||
}
|
||||
|
||||
clock_gettime :: (clock_id: i32, ts: *Timespec) -> i32 #foreign libc;
|
||||
clock_gettime :: (clock_id: i32, ts: *Timespec) -> i32 extern libc;
|
||||
|
||||
CLOCK_REALTIME :i32: 0;
|
||||
CLOCK_MONOTONIC :i32: 6; // darwin; linux is 1 (C3 selects per-OS)
|
||||
|
||||
Reference in New Issue
Block a user