diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 16:06:58 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 16:06:58 -0400 |
| commit | 2bc8e5f74cdfca319f04ac2e6c13d04c05059137 (patch) | |
| tree | 4e3960e6a9f97573c9a63d6cbd74ea67bf20ffeb /src/compile/headers.c | |
| parent | 40e332fdbde4cc082ba9d0e4f5e8c53612bfec68 (diff) | |
Deprecate `extern` keyword
Diffstat (limited to 'src/compile/headers.c')
| -rw-r--r-- | src/compile/headers.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/compile/headers.c b/src/compile/headers.c index f6313cd6..1865905c 100644 --- a/src/compile/headers.c +++ b/src/compile/headers.c @@ -51,24 +51,6 @@ Text_t compile_statement_namespace_header(env_t *env, Path_t header_path, ast_t block = def->namespace; break; } - case Extern: { - DeclareMatch(ext, ast, Extern); - type_t *t = parse_type_ast(env, ext->type); - Text_t decl; - if (t->tag == ClosureType) { - t = Match(t, ClosureType)->fn; - DeclareMatch(fn, t, FunctionType); - decl = Texts(compile_type(fn->ret), " ", ext->name, "("); - for (arg_t *arg = fn->args; arg; arg = arg->next) { - decl = Texts(decl, compile_type(arg->type)); - if (arg->next) decl = Texts(decl, ", "); - } - decl = Texts(decl, ")"); - } else { - decl = compile_declaration(t, Text$from_str(ext->name)); - } - return Texts("extern ", decl, ";\n"); - } case Declare: { DeclareMatch(decl, ast, Declare); const char *decl_name = Match(decl->var, Var)->name; |
