diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-03-19 16:59:11 +0000 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-03-19 16:59:11 +0000 |
| commit | 5562364a98f01a0c0221a70345656d45de0d2009 (patch) | |
| tree | 3ea4409ec3fcd1b7469c96d0e6ff03b437f8f823 /src/check_decl.c | |
| parent | 32150e401e39bd68f9882c3983829e744603dac1 (diff) | |
Add branch labels for loops; using list
Diffstat (limited to 'src/check_decl.c')
| -rw-r--r-- | src/check_decl.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/check_decl.c b/src/check_decl.c index a89460123..12ce52142 100644 --- a/src/check_decl.c +++ b/src/check_decl.c @@ -12,6 +12,7 @@ Type *check_init_variable(Checker *c, Entity *e, Operand *operand, String contex gbString expr_str = expr_to_string(operand->expr); // TODO(bill): is this a good enough error message? + // TODO(bill): Actually allow built in procedures to be passed around and thus be created on use error_node(operand->expr, "Cannot assign builtin procedure `%s` in %.*s", expr_str, @@ -276,12 +277,6 @@ void check_proc_lit(Checker *c, Entity *e, DeclInfo *d) { error_node(pd->body, "A procedure tagged as `#foreign` cannot have a body"); } - // TODO(bill): Is this the best option? What about passing to external shit?! - // if (proc_type->Proc.calling_convention != ProcCC_Odin) { - // error_node(d->proc_lit, "An internal procedure may only have the Odin calling convention"); - // proc_type->Proc.calling_convention = ProcCC_Odin; - // } - d->scope = c->context.scope; GB_ASSERT(pd->body->kind == AstNode_BlockStmt); |