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

checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752)

This commit is contained in:
shove
2022-09-15 12:59:31 +08:00
committed by GitHub
parent 5719344653
commit 8b962f8446
111 changed files with 288 additions and 223 deletions

View File

@@ -25,7 +25,7 @@ const (
struct App {
mut:
gg &gg.Context
gg &gg.Context = unsafe { nil }
pip_3d sgl.Pipeline
texture gfx.Image
init_flag bool

View File

@@ -36,7 +36,7 @@ const (
struct App {
mut:
gg &gg.Context
gg &gg.Context = unsafe { nil }
pip_3d sgl.Pipeline
texture gfx.Image
init_flag bool

View File

@@ -37,7 +37,7 @@ const (
struct App {
mut:
gg &gg.Context
gg &gg.Context = unsafe { nil }
texture gfx.Image
init_flag bool
frame_count int

View File

@@ -37,7 +37,7 @@ const (
struct App {
mut:
gg &gg.Context
gg &gg.Context = unsafe { nil }
texture gfx.Image
init_flag bool
frame_count int

View File

@@ -32,7 +32,7 @@ const (
struct App {
mut:
gg &gg.Context
gg &gg.Context = unsafe { nil }
texture gfx.Image
init_flag bool
frame_count int

View File

@@ -98,8 +98,8 @@ pub mut:
// shader data for the rendering
pub struct Shader_data {
pub mut:
vs_data &Tmp_vs_param
vs_data &Tmp_vs_param = unsafe { nil }
vs_len int
fs_data &Tmp_fs_param
fs_data &Tmp_fs_param = unsafe { nil }
fs_len int
}

View File

@@ -45,7 +45,7 @@ const (
struct App {
mut:
gg &gg.Context
gg &gg.Context = unsafe { nil }
texture gfx.Image
init_flag bool
frame_count int

View File

@@ -56,7 +56,7 @@ Let my heart be still a moment and this mystery explore;—
struct AppState {
mut:
pass_action gfx.PassAction
fons &fontstash.Context
fons &fontstash.Context = unsafe { nil }
font_normal int
inited bool
}

View File

@@ -9,7 +9,7 @@ mut:
gframe int // the current graphical frame
frame_0 int // offset of the current audio frames, relative to the start of the music
frames [2048]f32 // a copy of the last rendered audio frames
gg &gg.Context // used for drawing
gg &gg.Context = unsafe { nil } // used for drawing
}
fn my_audio_stream_callback(buffer &f32, num_frames int, num_channels int, mut acontext AppState) {