The Phase 7 batches globbed top-level examples/*.sx and missed #foreign decls in SUBDIRECTORY companion files. Migrate the 4 incidental fn decls (behavior-preserving): 0729/a.sx + b.sx (same-name 'absval' libc authors), 1617/c.sx (pcap_lib_version), 1623/mod.sx (unit_in_mod_answer) — all '#foreign LIB "csym";' → 'extern LIB "csym";'. Parents all marker'd → corpus-validated; empty snapshot diff. Comment lines left for Phase 9.3. Suite green (647/444).
11 lines
267 B
Plaintext
11 lines
267 B
Plaintext
// A module that owns a named C unit + a hand-curated binding.
|
|
#import "modules/std.sx";
|
|
|
|
cunit :: #import c {
|
|
#source "inmod.c";
|
|
};
|
|
|
|
unit_in_mod_answer :: () -> i32 extern cunit "unit_in_mod_answer";
|
|
|
|
answer_via_mod :: () -> i32 { return unit_in_mod_answer(); }
|