From 3a7588e5c5b7718012917b608e2346dc066cecc2 Mon Sep 17 00:00:00 2001 From: Mustafa Quraish Date: Thu, 3 Feb 2022 03:42:41 -0500 Subject: Remove `putc` intrinsic and replace with `write(fd, buf, size)` `putc`, `puts`, and `putnum` in `std/common.cup` are now implemented in terms of the `write()` syscall. --- src/types.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/types.h') diff --git a/src/types.h b/src/types.h index a1f6923..73b5b63 100644 --- a/src/types.h +++ b/src/types.h @@ -19,6 +19,8 @@ typedef struct data_type_node { } Type; Type *type_new(DataType type); +Type *type_new_ptr(DataType type); + i64 size_for_type(Type *type); char *type_to_str(Type *type); -- cgit v1.2.3