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

cgen: fix const name

This commit is contained in:
Alexander Medvednikov 2020-03-24 22:41:01 +01:00
parent cc9537dd8a
commit 7f345e310b

View File

@ -655,9 +655,9 @@ fn (g mut Gen) gen_fn_decl(it ast.FnDecl) {
if is_main {
g.writeln('_vinit();')
if g.autofree {
g.writeln('free(os__args.data); // empty, inited in _vinit()')
g.writeln('free(_const_os__args.data); // empty, inited in _vinit()')
}
g.writeln('os__args = os__init_os_args(argc, (byteptr*)argv);')
g.writeln('_const_os__args = os__init_os_args(argc, (byteptr*)argv);')
}
g.stmts(it.stmts)
// ////////////