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

toml: clearly mark the workaround [manualfree] tags with [autofree_bug; manualfree], so they can be found/removed when -autofree is fixed

This commit is contained in:
Delyan Angelov 2022-11-01 18:08:32 +02:00
parent ffd9b9bae1
commit 968435fca6
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -819,7 +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]
[autofree_bug; 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
@ -890,7 +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]
[autofree_bug; 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"')