refactor(ffi-linkage): Phase 8 pre-cutover — migrate identity ffi-foreign-* test decls
Migrate the DECLS of the 7 identity-#foreign feature tests to extern/export
(1205-global/-helper, 1207, 1218-cvariadic, 1219, 1306, 1318): fn/global markers →
extern, the 2 objc import classes (1306/1318) → postfix '#objc_class("X") extern {'.
Behavior-preserving (A→B gate + existing extern twins guarantee identical output);
empty snapshot diff, corpus-validated. Comment-only #foreign in these files is left
for the Phase 9.3 doc/comment purge (comments aren't parsed → not cutover-critical).
Suite green (647 corpus / 444 unit, 0 failed).
This commit is contained in:
@@ -9,9 +9,9 @@
|
||||
#source "1218-ffi-foreign-cvariadic.c";
|
||||
};
|
||||
|
||||
sx_ffi_sum_ints :: (n: i32, ..args: []i32) -> i64 #foreign;
|
||||
sx_ffi_avg_doubles :: (n: i32, ..args: []f64) -> f64 #foreign;
|
||||
sx_ffi_count_args :: (tag: *u8, ..args: []*u8) -> i32 #foreign;
|
||||
sx_ffi_sum_ints :: (n: i32, ..args: []i32) -> i64 extern;
|
||||
sx_ffi_avg_doubles :: (n: i32, ..args: []f64) -> f64 extern;
|
||||
sx_ffi_count_args :: (tag: *u8, ..args: []*u8) -> i32 extern;
|
||||
|
||||
main :: () -> i32 {
|
||||
print("sum_ints(3, 10, 20, 30) = {}\n", sx_ffi_sum_ints(3, 10, 20, 30));
|
||||
|
||||
Reference in New Issue
Block a user