From 5b038666c3e911ffeb78a4d656044e5bd076705b Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 23 Mar 2023 16:14:51 +0200 Subject: integrate parser work --- examples/alloc.ct | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/alloc.ct') diff --git a/examples/alloc.ct b/examples/alloc.ct index 5f11bb7..11eed78 100644 --- a/examples/alloc.ct +++ b/examples/alloc.ct @@ -1,8 +1,8 @@ /* from c bindings */ -pub alloc(s usize) *void +pub alloc(s: usize) *void { - p *u8 = malloc(s); + p: *u8 = malloc(s); assert(p, "memory allocation failed\n"); return p; } -- cgit v1.3