Skip to content

Commit

Permalink
ci: fix error for private_redeclaration_of_C_struct.out
Browse files Browse the repository at this point in the history
  • Loading branch information
spytheman committed Oct 6, 2023
1 parent 8e7cd6f commit 729ed06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vlib/v/checker/tests/private_redeclaration_of_C_struct.out
Original file line number Diff line number Diff line change
@@ -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{}
| ~~~~~~~~~~~~~
Expand Down

0 comments on commit 729ed06

Please sign in to comment.