Add void type
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
namespace c
|
||||
|
||||
extern func printf(fmt: ^u8, ...args: any)
|
||||
extern func printf(fmt: ^u8, ...args: any): void
|
||||
extern func getchar(): i32
|
||||
extern func puts(fmt: ^u8)
|
||||
|
||||
extern func malloc(size: i64): ^any
|
||||
extern func calloc(num: i64, size: i64): ^any
|
||||
extern func realloc(ptr: ^any, size: i64): ^any
|
||||
extern func free(ptr: ^any)
|
||||
extern func malloc(size: i64): ^void
|
||||
extern func calloc(num: i64, size: i64): ^void
|
||||
extern func realloc(ptr: ^void, size: i64): ^void
|
||||
extern func free(ptr: ^void)
|
||||
|
||||
extern func sin(x: f64): f64
|
||||
extern func cos(x: f64): f64
|
||||
|
||||
Reference in New Issue
Block a user