lang: rename signed integer types sN -> iN
Surface rename of the signed integer family: s1..s64 become i1..i64
(u1..u64, usize, isize unchanged). 'string' keeps the s-prefix arm in
name classification; width parsing moves to the i-prefix arm next to
isize.
Internal TypeId tags follow the surface (.s8/.s16/.s32/.s64 ->
.i8/.i16/.i32/.i64), as do mono-key mangle fragments (ptr_i64,
tu_i64_bool) and all display/diagnostic formatting (i{d}).
Migrated in the same sweep: stdlib + examples + issue repros + FFI C
companions (shared symbol names like ffi_id_i64), expected
stdout/stderr/ir snapshots, specs.md, readme.md, CLAUDE.md/AGENTS.md,
implementation_plan.md, docs/, issue writeups. Vendored stb_image and
historical flow state left untouched.
zig build test: 426/426; examples suite: 595/595.
This commit is contained in:
@@ -18,22 +18,22 @@
|
||||
#import "modules/ffi/objc.sx";
|
||||
|
||||
SxManglingProbe :: #foreign #objc_class("SxManglingProbe") {
|
||||
length :: (self: *Self) -> s32;
|
||||
addObject :: (self: *Self, a: s32) -> s32;
|
||||
combine_and :: (self: *Self, a: s32, b: s32) -> s32;
|
||||
insert_after_index :: (self: *Self, a: s32, b: s32, c: s32) -> s32;
|
||||
add_observer_for_event :: (self: *Self, a: s32, b: s32, c: s32, d: s32) -> s32;
|
||||
initWithFrame_options :: (self: *Self, f: s32, o: s32) -> s32;
|
||||
custom_name :: (self: *Self) -> s32 #selector("actualSelectorName");
|
||||
length :: (self: *Self) -> i32;
|
||||
addObject :: (self: *Self, a: i32) -> i32;
|
||||
combine_and :: (self: *Self, a: i32, b: i32) -> i32;
|
||||
insert_after_index :: (self: *Self, a: i32, b: i32, c: i32) -> i32;
|
||||
add_observer_for_event :: (self: *Self, a: i32, b: i32, c: i32, d: i32) -> i32;
|
||||
initWithFrame_options :: (self: *Self, f: i32, o: i32) -> i32;
|
||||
custom_name :: (self: *Self) -> i32 #selector("actualSelectorName");
|
||||
}
|
||||
|
||||
universal_imp :: (self: *void, _cmd: *void, a: s32, b: s32, c: s32, d: s32) -> s32 callconv(.c) {
|
||||
universal_imp :: (self: *void, _cmd: *void, a: i32, b: i32, c: i32, d: i32) -> i32 callconv(.c) {
|
||||
// Returns the arg count's witness; the test doesn't check return
|
||||
// values, only that dispatch succeeds for each selector shape.
|
||||
a + b + c + d
|
||||
}
|
||||
|
||||
main :: () -> s32 {
|
||||
main :: () -> i32 {
|
||||
inline if OS == .macos {
|
||||
ns_object := objc_getClass("NSObject".ptr);
|
||||
cls := objc_allocateClassPair(ns_object, "SxManglingProbe".ptr, 0);
|
||||
|
||||
Reference in New Issue
Block a user