From 729ed06a03b6f65e4c63afd311e2b75b7bac0b89 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Fri, 6 Oct 2023 15:04:32 +0300 Subject: [PATCH] ci: fix error for private_redeclaration_of_C_struct.out --- .../tests/private_redeclaration_of_C_struct.out | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vlib/v/checker/tests/private_redeclaration_of_C_struct.out b/vlib/v/checker/tests/private_redeclaration_of_C_struct.out index a270753fff663c..5eaad2452201c0 100644 --- a/vlib/v/checker/tests/private_redeclaration_of_C_struct.out +++ b/vlib/v/checker/tests/private_redeclaration_of_C_struct.out @@ -1,26 +1,26 @@ vlib/sokol/audio/audio.v:107:26: error: struct `C.saudio_desc` was declared as private to module `module_with_redeclaration`, so it can not be used inside module `sokol.audio` 105 | fn C.saudio_userdata() voidptr - 106 | + 106 | 107 | fn C.saudio_query_desc() C.saudio_desc | ~~~~~~~~~~~~~ - 108 | + 108 | 109 | fn C.saudio_sample_rate() int vlib/sokol/audio/audio.v:122:19: error: struct `C.saudio_desc` was declared as private to module `module_with_redeclaration`, so it can not be used inside module `sokol.audio` - 120 | + 120 | 121 | // setup - setup sokol-audio 122 | pub fn setup(desc &C.saudio_desc) { | ~~~~~~~~~~~~~~ - 123 | if desc.allocator.alloc == unsafe { nil } && desc.allocator.free == unsafe { nil } { + 123 | if desc.allocator.alloc_fn == unsafe { nil } && desc.allocator.free_fn == unsafe { nil } { 124 | unsafe { vlib/sokol/audio/audio.v:154:16: error: struct `C.saudio_desc` was declared as private to module `module_with_redeclaration`, so it can not be used inside module `sokol.audio` - 152 | + 152 | 153 | // query - return a copy of the original saudio_desc struct 154 | pub fn query() C.saudio_desc { | ~~~~~~~~~~~~~ 155 | return C.saudio_query_desc() 156 | } vlib/v/checker/tests/private_redeclaration_of_C_struct.vv:7:10: error: struct `C.saudio_desc` was declared as private to module `module_with_redeclaration`, so it can not be used inside module `main` - 5 | + 5 | 6 | fn main() { 7 | sd := C.saudio_desc{} | ~~~~~~~~~~~~~