Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,118 changes: 2,558 additions & 2,560 deletions BOOTSTRAP/cli.c

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/std/array.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ let mark-memory-as-safe(ptr: t[], len: U64): Nil = (
while len > 0_u64 {
let ignored = ptr[0_u64];
len = len - 1_u64;
ptr = ((ptr as U8[]) + sizeof(t)) as t[];
ptr = ((ptr as U8[]) + 1) as t[];
};
);

Expand Down
1 change: 0 additions & 1 deletion lib/std/default.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,3 @@ import std/print.lsts;
import std/collections.lsts;
import std/regex.lsts;
import std/phi.lsts;
import std/owned-data.lsts;
1 change: 0 additions & 1 deletion lib/std/minimal.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,4 @@ import std/regex.lsts;
import std/cmp.lsts;
import std/print.lsts;
import std/collections.lsts;
import std/owned-data.lsts;
import std/phi.lsts;
91 changes: 0 additions & 91 deletions lib/std/owned-data.lsts

This file was deleted.

5 changes: 1 addition & 4 deletions lib1/std/array.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let mark-memory-as-safe(ptr: t[], len: USize): Nil = (
while len > 0_sz {
let ignored = ptr[0_sz];
len = len - 1_sz;
ptr = ((ptr as U8[]) + (sizeof(t) as USize)) as t[];
ptr = ((ptr as U8[]) + 1_sz) as t[];
};
);

Expand Down Expand Up @@ -68,9 +68,6 @@ let safe-realloc-impl(ptr: ?[], nb: USize): ?[] = (
fail(c"realloc fail");
};

# Zero Out Memory
memset(new-ptr as C<"void">[], 0, nb);

mark-memory-as-safe(new-ptr as U8[], nb);

# TODO: wrap counter adjustments in conditional compilation
Expand Down
5 changes: 1 addition & 4 deletions lib2/core/array.lsts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let mark-memory-as-safe(ptr: t[], len: USize): Nil = (
while len > 0_sz {
let ignored = ptr[0_sz];
len = len - 1_sz;
ptr = ((ptr as U8[]) + (sizeof(t) as USize)) as t[];
ptr = ((ptr as U8[]) + 1_sz) as t[];
};
);

Expand Down Expand Up @@ -66,9 +66,6 @@ let safe-realloc-impl(ptr: ?[], nb: USize): ?[] = (
fail(c"realloc fail");
};

# Zero Out Memory
memset(new-ptr as C<"void">[], 0, nb);

mark-memory-as-safe(new-ptr as U8[], nb);

# TODO: wrap counter adjustments in conditional compilation
Expand Down
Loading