refactor(ffi-linkage): Phase 9.3 — purge remaining 'foreign' from library/docs/example comments
Capital-Foreign + stale-identifier comment refs: library (Foreign Java types→Runtime, foreign-class→runtime-class, foreign_class_map→runtime_class_map); docs/debugger (foreign call→extern call); docs/fork-c ledger (foreign_class_map, protocol/foreign→ runtime-class); docs/inline-asm-design Deviation-6 obsolete #foreign-vs-extern design RESOLVED to the landed extern/export reality; example comments (parseForeignClassDecl→ parseRuntimeClassDecl, checkForeignRefs→checkExternRefs, Foreign decls→Extern). Docs/ comments only — no build impact.
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
#import "modules/platform/types.sx";
|
||||
#import "modules/platform/api.sx";
|
||||
|
||||
// ── Foreign Java types ──────────────────────────────────────────────────
|
||||
// ── Runtime Java types ──────────────────────────────────────────────────
|
||||
|
||||
Bundle :: #jni_class("android/os/Bundle") extern { }
|
||||
JContext :: #jni_class("android/content/Context") extern {
|
||||
@@ -66,7 +66,7 @@ ActivityClass :: #jni_class("android/app/Activity") extern {
|
||||
setContentView :: (self: *Self, v: *JView);
|
||||
}
|
||||
|
||||
// ── Foreign C/NDK decls ─────────────────────────────────────────────────
|
||||
// ── Extern C/NDK decls ─────────────────────────────────────────────────
|
||||
|
||||
// C side of file_utils — installs the AAssetManager so `read_file_bytes`
|
||||
// can route through `AAssetManager_open` when running on Android.
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
// `View` in particular collides with `modules/ui/view.sx`'s protocol.
|
||||
// Inside the namespace these are referenced as `Jni.Activity`,
|
||||
// `Jni.Window`, etc. The compiler registers the decls both qualified
|
||||
// and bare in `foreign_class_map`, so cross-class refs in method
|
||||
// and bare in `runtime_class_map`, so cross-class refs in method
|
||||
// signatures (`getWindow :: (self: *Self) -> *Window`) still resolve
|
||||
// against the bare name within the namespace.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user