lang migration: rename signed integer types sN -> iN
Mechanical sweep of all .sx sources and plan docs (PLAN.md, current/, .agents/) for the sx language rename (s8/s16/s32/s64 -> i8/i16/i32/i64). Verified: make build + make test, 14/14.
This commit is contained in:
@@ -33,7 +33,7 @@ STORE_REL :: ".sx-tmp/publish_happy";
|
||||
cwd :: () -> string {
|
||||
buf : [4096]u8 = ---;
|
||||
r := c_getcwd(@buf[0], 4096);
|
||||
process.assert(cast(s64) r != 0, "getcwd must succeed");
|
||||
process.assert(cast(i64) r != 0, "getcwd must succeed");
|
||||
n := 0;
|
||||
while buf[n] != 0 { n += 1; }
|
||||
return substr(string.{ ptr = @buf[0], len = n }, 0, n);
|
||||
@@ -65,8 +65,8 @@ rehashes_to :: (path: string, want: string) -> bool {
|
||||
}
|
||||
|
||||
// Count audit events whose "action" equals `action`.
|
||||
count_action :: (events: Array, action: string) -> s64 {
|
||||
c : s64 = 0;
|
||||
count_action :: (events: Array, action: string) -> i64 {
|
||||
c : i64 = 0;
|
||||
i := 0;
|
||||
while i < events.len {
|
||||
eo := events.items[i].object;
|
||||
@@ -76,7 +76,7 @@ count_action :: (events: Array, action: string) -> s64 {
|
||||
return c;
|
||||
}
|
||||
|
||||
main :: () -> s32 {
|
||||
main :: () -> i32 {
|
||||
gpa := GPA.init();
|
||||
arena := Arena.init(xx gpa, 1 << 20);
|
||||
defer arena.deinit();
|
||||
|
||||
Reference in New Issue
Block a user