From ffd9b9bae1d2ce38524297bb15eaccd4bc548d15 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Tue, 1 Nov 2022 17:52:31 +0200 Subject: [PATCH] ci,toml: add a workaround for buggy `-autofree` (skip -autofree compilation for some of the toml functions, that prevent VED to compile cleanly on the CI) --- vlib/toml/parser/parser.v | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vlib/toml/parser/parser.v b/vlib/toml/parser/parser.v index 60d74d44ed..ed56c27617 100644 --- a/vlib/toml/parser/parser.v +++ b/vlib/toml/parser/parser.v @@ -819,6 +819,7 @@ pub fn (mut p Parser) inline_table(mut tbl map[string]ast.Value) ! { } // array_of_tables parses next tokens into an array of `ast.Value`s. +[manualfree] pub fn (mut p Parser) array_of_tables(mut table map[string]ast.Value) ! { util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'parsing array of tables "$p.tok.kind" "$p.tok.lit"') // NOTE this is starting to get ugly. TOML isn't simple at this point @@ -889,6 +890,7 @@ pub fn (mut p Parser) array_of_tables_contents() ![]ast.Value { } // double_array_of_tables parses next tokens into an array of tables of arrays of `ast.Value`s... +[manualfree] pub fn (mut p Parser) double_array_of_tables(mut table map[string]ast.Value) ! { util.printdbg(@MOD + '.' + @STRUCT + '.' + @FN, 'parsing nested array of tables "$p.tok.kind" "$p.tok.lit"')