aboutsummaryrefslogtreecommitdiff
path: root/src/checker.c
diff options
context:
space:
mode:
authorGinger Bill <bill@gingerbill.org>2017-01-29 20:15:16 +0000
committerGinger Bill <bill@gingerbill.org>2017-01-29 20:15:16 +0000
commit984e36a15147cb4ed681174fb1f97f4e1735411d (patch)
tree042890f3eb8a56add6091646279a599204635d18 /src/checker.c
parentec9c8fb8a49cb6f9fe8f6df806dfb5a6fcb2e148 (diff)
Dynamic arrays
Diffstat (limited to 'src/checker.c')
-rw-r--r--src/checker.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/checker.c b/src/checker.c
index 4c9b58ce1..7740a6711 100644
--- a/src/checker.c
+++ b/src/checker.c
@@ -125,6 +125,9 @@ typedef enum BuiltinProcId {
BuiltinProc_new_slice,
BuiltinProc_free,
+ BuiltinProc_reserve,
+ BuiltinProc_append,
+
BuiltinProc_size_of,
BuiltinProc_size_of_val,
BuiltinProc_align_of,
@@ -169,6 +172,9 @@ gb_global BuiltinProc builtin_procs[BuiltinProc_Count] = {
{STR_LIT("new_slice"), 2, false, Expr_Expr},
{STR_LIT("free"), 1, false, Expr_Stmt},
+ {STR_LIT("reserve"), 2, false, Expr_Stmt},
+ {STR_LIT("append"), 2, false, Expr_Stmt},
+
{STR_LIT("size_of"), 1, false, Expr_Expr},
{STR_LIT("size_of_val"), 1, false, Expr_Expr},
{STR_LIT("align_of"), 1, false, Expr_Expr},