1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

do not allow go print()

This commit is contained in:
Alexander Medvednikov
2019-09-19 17:25:00 +03:00
parent c8a781bf77
commit b6bb6a5a60
2 changed files with 12 additions and 5 deletions

View File

@ -188,11 +188,16 @@ fn main() {
// TODO remove
if v.pref.autofree {
println('started freeing v struct')
v.table.fns.free()
v.table.typesmap.free()
v.table.obf_ids.free()
v.cgen.lines.free()
free(v.cgen)
for _, f in v.table.fns {
f.local_vars.free()
f.args.free()
//f.defer_text.free()
}
v.table.fns.free()
free(v.table)
//for p in parsers {
@ -226,6 +231,8 @@ fn (v mut V) compile() {
for file in v.files {
mut p := v.new_parser(file)
p.parse(.decl)
}
// Main pass
cgen.pass = Pass.main