diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-14 20:44:26 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-08-14 20:44:26 +0300 |
| commit | 2023a7b2d9656f80b00de81453348c0a66f200f7 (patch) | |
| tree | 06e4ea293318955cc4cf620428d04f1708c17364 /examples/alloc.ct | |
| parent | 1a56a881bc2c37614cfd074e7b986211c6d04809 (diff) | |
| download | ek-2023a7b2d9656f80b00de81453348c0a66f200f7.tar.gz ek-2023a7b2d9656f80b00de81453348c0a66f200f7.zip | |
test cleanup
+ Somewhat poor Git hygiene but I also fixed some bugs while I was at
it.
Diffstat (limited to 'examples/alloc.ct')
| -rw-r--r-- | examples/alloc.ct | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/examples/alloc.ct b/examples/alloc.ct deleted file mode 100644 index 11eed78..0000000 --- a/examples/alloc.ct +++ /dev/null @@ -1,18 +0,0 @@ -/* from c bindings */ - -pub alloc(s: usize) *void -{ - p: *u8 = malloc(s); - assert(p, "memory allocation failed\n"); - return p; -} - -pub dealloc(p *void) -{ - free(p); -} - -pub realloc(p *, s usize) *void -{ - realloc(p, s); -} |
