src/: ~21 capital-Foreign comments the case-sensitive verify grep missed (Foreign-class→Runtime-class, Foreign path→Runtime path, Foreign decls→Extern decls, FOREIGN function→extern function) across calls/inst/ffi_objc/jni_descriptor/emit_llvm/ c_import/lower.*/ops. src 'foreign' now = ONLY the hash_foreign token + 4 rejection messages (9.0-delete targets). examples/*.sx comments → extern/runtime-class (1219 stdout regen; KEPT 1176). docs/inline-asm-design + debugger purged. Comments only — no build impact. 9.0 ratified: DELETE hash_foreign token next.
12 lines
307 B
Plaintext
12 lines
307 B
Plaintext
// Innermost module: owns the #library and its extern fn.
|
|
#import "modules/std.sx";
|
|
|
|
pcaplib :: #library "pcap";
|
|
pcap_lib_version :: () -> ?cstring extern pcaplib "pcap_lib_version";
|
|
|
|
pcap_version :: () -> string {
|
|
p := pcap_lib_version();
|
|
if p == null { return ""; }
|
|
return from_cstring(p!);
|
|
}
|