diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-01-28 20:16:18 +0000 |
| commit | e86c990b75bb30f0116430453b42a59317e3fead (patch) | |
| tree | 2645005099bd2cf744299d6a3538408ed5728d39 /src/checker.c | |
| parent | 31aacd5bf435224c7d8f9b19359175d3e6d25660 (diff) | |
Overloaded `free`; 3 dotted ellipsisv0.0.6a
Diffstat (limited to 'src/checker.c')
| -rw-r--r-- | src/checker.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/checker.c b/src/checker.c index aecaf66d9..4c9b58ce1 100644 --- a/src/checker.c +++ b/src/checker.c @@ -5,8 +5,8 @@ typedef enum AddressingMode { Addressing_Invalid, Addressing_NoValue, - Addressing_Value, // R-value - Addressing_Variable, // L-value + Addressing_Value, + Addressing_Variable, Addressing_Constant, Addressing_Type, Addressing_Builtin, @@ -123,6 +123,7 @@ typedef enum BuiltinProcId { BuiltinProc_new, BuiltinProc_new_slice, + BuiltinProc_free, BuiltinProc_size_of, BuiltinProc_size_of_val, @@ -165,7 +166,8 @@ gb_global BuiltinProc builtin_procs[BuiltinProc_Count] = { {STR_LIT(""), 0, false, Expr_Stmt}, {STR_LIT("new"), 1, false, Expr_Expr}, - {STR_LIT("new_slice"), 2, false, Expr_Expr}, + {STR_LIT("new_slice"), 2, false, Expr_Expr}, + {STR_LIT("free"), 1, false, Expr_Stmt}, {STR_LIT("size_of"), 1, false, Expr_Expr}, {STR_LIT("size_of_val"), 1, false, Expr_Expr}, |