diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-23 16:14:51 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-03-23 16:14:51 +0200 |
| commit | 5b038666c3e911ffeb78a4d656044e5bd076705b (patch) | |
| tree | 9b09b4f27c39ef6a0139a5eb9bfa5e98a250086c /examples/alloc.ct | |
| parent | 70615379062cdd2e016f5095dfafd23a6dca148c (diff) | |
| download | ek-5b038666c3e911ffeb78a4d656044e5bd076705b.tar.gz ek-5b038666c3e911ffeb78a4d656044e5bd076705b.zip | |
integrate parser work
Diffstat (limited to 'examples/alloc.ct')
| -rw-r--r-- | examples/alloc.ct | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
