aboutsummaryrefslogtreecommitdiff
path: root/src/types.h
diff options
context:
space:
mode:
authorMustafa Quraish <[email protected]>2022-02-03 03:42:41 -0500
committerMustafa Quraish <[email protected]>2022-02-03 03:42:41 -0500
commit3a7588e5c5b7718012917b608e2346dc066cecc2 (patch)
treeaa88655cf4210d5256377ab44ec1915a0bcebcfc /src/types.h
parentMove builtins to a separate file (diff)
downloadcup-3a7588e5c5b7718012917b608e2346dc066cecc2.tar.xz
cup-3a7588e5c5b7718012917b608e2346dc066cecc2.zip
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.
Diffstat (limited to 'src/types.h')
-rw-r--r--src/types.h2
1 files changed, 2 insertions, 0 deletions
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);