Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ast/function_decl.c2
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const char*[] defKind_names = {
"global",
"type",
"struct-member",
"template",
"param",
"template",
}

type FunctionDeclBits struct {
Expand Down
3 changes: 1 addition & 2 deletions ast/type_ref.c2
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module ast;

import src_loc local;
import string_buffer;
import stdio;

import string;

public type TypeRefKind enum u8 {
Expand Down Expand Up @@ -538,7 +538,6 @@ public fn const char* TypeRef.diagName(const TypeRef* r) {
local char[128] result;
string_buffer.Buf buf.init(result, elemsof(result), false, false, 0);
r.print(&buf, true);
stdio.puts(result);
return result;
}

3 changes: 2 additions & 1 deletion ast/utils.c2
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ public fn void deinit(bool print_stats) {
globals.ast_list = nil;
globals.pointers.clear();
globals.string_types.clear();
stdlib.free(globals);
globals.dump_buf.free();
stdlib.free(globals);
globals = nil;
}

public fn u32 getWordSize() {
Expand Down