From 2023a7b2d9656f80b00de81453348c0a66f200f7 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 14 Aug 2024 20:44:26 +0300 Subject: test cleanup + Somewhat poor Git hygiene but I also fixed some bugs while I was at it. --- examples/alloc.ct | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 examples/alloc.ct (limited to 'examples/alloc.ct') 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); -} -- cgit v1.3