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

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)

This commit is contained in:
Delyan Angelov 2022-11-01 17:52:31 +02:00
parent bd7c86a9d4
commit ffd9b9bae1
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -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"')