Skip to content

Commit 3247b98

Browse files
authored
ast: fix const field str() (#21998)
1 parent ddb6685 commit 3247b98

16 files changed

+85
-45
lines changed

vlib/encoding/csv/csv_reader_random_access.v

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ pub mut:
5656

5757
end_line u8 = `\n`
5858
end_line_len int = csv.endline_cr_len // size of the endline rune \n = 1, \r\n = 2
59-
separator u8 = `,` // comma is the default separator
60-
separator_len int = 1 // size of the separator rune
61-
quote u8 = `"` // double quote is the standard quote char
59+
separator u8 = `,` // comma is the default separator
60+
separator_len int = 1 // size of the separator rune
61+
quote u8 = `"` // double quote is the standard quote char
6262
quote_remove bool // if true clear the cell from the quotes
6363
comment u8 = `#` // every line that start with the quote char is ignored
6464

@@ -92,7 +92,7 @@ pub:
9292
default_cell string = '*' // return this string if out of the csv boundaries
9393
empty_cell string // return this string if empty cell
9494
end_line_len int = csv.endline_cr_len // size of the endline rune
95-
quote u8 = `"` // double quote is the standard quote char
95+
quote u8 = `"` // double quote is the standard quote char
9696
quote_remove bool // if true clear the cell from the quotes
9797
}
9898

vlib/net/http/header.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pub const max_headers = 50
1717
pub struct Header {
1818
pub mut:
1919
// data map[string][]string
20-
data [max_headers]HeaderKV
20+
data [http.max_headers]HeaderKV
2121
mut:
2222
cur_pos int
2323
// map of lowercase header keys to their original keys

vlib/sokol/gfx/gfx_structs.c.v

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ pub const sg_max_mipmaps = 16
769769

770770
pub struct C.sg_image_data {
771771
pub mut:
772-
subimage [sg_cubeface_num][sg_max_mipmaps]Range
772+
subimage [gfx.sg_cubeface_num][gfx.sg_max_mipmaps]Range
773773
}
774774

775775
pub type ImageData = C.sg_image_data

vlib/sokol/sapp/sapp_structs.c.v

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pub type ImageDesc = C.sapp_image_desc
2929
pub struct C.sapp_icon_desc {
3030
pub:
3131
sokol_default bool
32-
images [max_iconimages]ImageDesc
32+
images [sapp.max_iconimages]ImageDesc
3333
}
3434

3535
pub type IconDesc = C.sapp_icon_desc
@@ -89,25 +89,25 @@ pub type Desc = C.sapp_desc
8989
@[typedef]
9090
pub struct C.sapp_event {
9191
pub:
92-
frame_count u64 // current frame counter, always valid, useful for checking if two events were issued in the same frame
93-
@type EventType // the event type, always valid
94-
key_code KeyCode // the virtual key code, only valid in KEY_UP, KEY_DOWN
95-
char_code u32 // the UTF-32 character code, only valid in CHAR events
96-
key_repeat bool // true if this is a key-repeat event, valid in KEY_UP, KEY_DOWN and CHAR
97-
modifiers u32 // current modifier keys, valid in all key-, char- and mouse-events
98-
mouse_button MouseButton // mouse button that was pressed or released, valid in MOUSE_DOWN, MOUSE_UP
99-
mouse_x f32 // current horizontal mouse position in pixels, always valid except during mouse lock
100-
mouse_y f32 // current vertical mouse position in pixels, always valid except during mouse lock
101-
mouse_dx f32 // relative horizontal mouse movement since last frame, always valid
102-
mouse_dy f32 // relative vertical mouse movement since last frame, always valid
103-
scroll_x f32 // horizontal mouse wheel scroll distance, valid in MOUSE_SCROLL events
104-
scroll_y f32 // vertical mouse wheel scroll distance, valid in MOUSE_SCROLL events
105-
num_touches int // number of valid items in the touches[] array
106-
touches [max_touchpoints]TouchPoint // current touch points, valid in TOUCHES_BEGIN, TOUCHES_MOVED, TOUCHES_ENDED
107-
window_width int // current window- and framebuffer width in pixels, always valid
108-
window_height int // current window- and framebuffer height in pixels, always valid
109-
framebuffer_width int // = window_width * dpi_scale
110-
framebuffer_height int // = window_height * dpi_scale
92+
frame_count u64 // current frame counter, always valid, useful for checking if two events were issued in the same frame
93+
@type EventType // the event type, always valid
94+
key_code KeyCode // the virtual key code, only valid in KEY_UP, KEY_DOWN
95+
char_code u32 // the UTF-32 character code, only valid in CHAR events
96+
key_repeat bool // true if this is a key-repeat event, valid in KEY_UP, KEY_DOWN and CHAR
97+
modifiers u32 // current modifier keys, valid in all key-, char- and mouse-events
98+
mouse_button MouseButton // mouse button that was pressed or released, valid in MOUSE_DOWN, MOUSE_UP
99+
mouse_x f32 // current horizontal mouse position in pixels, always valid except during mouse lock
100+
mouse_y f32 // current vertical mouse position in pixels, always valid except during mouse lock
101+
mouse_dx f32 // relative horizontal mouse movement since last frame, always valid
102+
mouse_dy f32 // relative vertical mouse movement since last frame, always valid
103+
scroll_x f32 // horizontal mouse wheel scroll distance, valid in MOUSE_SCROLL events
104+
scroll_y f32 // vertical mouse wheel scroll distance, valid in MOUSE_SCROLL events
105+
num_touches int // number of valid items in the touches[] array
106+
touches [sapp.max_touchpoints]TouchPoint // current touch points, valid in TOUCHES_BEGIN, TOUCHES_MOVED, TOUCHES_ENDED
107+
window_width int // current window- and framebuffer width in pixels, always valid
108+
window_height int // current window- and framebuffer height in pixels, always valid
109+
framebuffer_width int // = window_width * dpi_scale
110+
framebuffer_height int // = window_height * dpi_scale
111111
}
112112

113113
pub type Event = C.sapp_event

vlib/term/termios/termios_android.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mut:
2626
c_cflag TcFlag
2727
c_lflag TcFlag
2828
c_line Cc
29-
c_cc [cclen]Cc
29+
c_cc [termios.cclen]Cc
3030
c_ispeed Speed
3131
c_ospeed Speed
3232
}
@@ -58,7 +58,7 @@ pub mut:
5858
c_cflag TcFlag
5959
c_lflag TcFlag
6060
c_line Cc
61-
c_cc [cclen]Cc
61+
c_cc [termios.cclen]Cc
6262
c_ispeed Speed
6363
c_ospeed Speed
6464
}

vlib/term/termios/termios_darwin.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mut:
2525
c_oflag TcFlag
2626
c_cflag TcFlag
2727
c_lflag TcFlag
28-
c_cc [cclen]Cc
28+
c_cc [termios.cclen]Cc
2929
c_ispeed Speed
3030
c_ospeed Speed
3131
}
@@ -56,7 +56,7 @@ pub mut:
5656
c_oflag TcFlag
5757
c_cflag TcFlag
5858
c_lflag TcFlag
59-
c_cc [cclen]Cc
59+
c_cc [termios.cclen]Cc
6060
c_ispeed Speed
6161
c_ospeed Speed
6262
}

vlib/term/termios/termios_dragonfly.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mut:
2525
c_oflag TcFlag
2626
c_cflag TcFlag
2727
c_lflag TcFlag
28-
c_cc [cclen]Cc
28+
c_cc [termios.cclen]Cc
2929
c_ispeed Speed
3030
c_ospeed Speed
3131
}
@@ -56,7 +56,7 @@ pub mut:
5656
c_oflag TcFlag
5757
c_cflag TcFlag
5858
c_lflag TcFlag
59-
c_cc [cclen]Cc
59+
c_cc [termios.cclen]Cc
6060
c_ispeed Speed
6161
c_ospeed Speed
6262
}

vlib/term/termios/termios_freebsd.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mut:
2525
c_oflag TcFlag
2626
c_cflag TcFlag
2727
c_lflag TcFlag
28-
c_cc [cclen]Cc
28+
c_cc [termios.cclen]Cc
2929
c_ispeed Speed
3030
c_ospeed Speed
3131
}
@@ -56,7 +56,7 @@ pub mut:
5656
c_oflag TcFlag
5757
c_cflag TcFlag
5858
c_lflag TcFlag
59-
c_cc [cclen]Cc
59+
c_cc [termios.cclen]Cc
6060
c_ispeed Speed
6161
c_ospeed Speed
6262
}

vlib/term/termios/termios_linux.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mut:
2626
c_cflag TcFlag
2727
c_lflag TcFlag
2828
c_line Cc
29-
c_cc [cclen]Cc
29+
c_cc [termios.cclen]Cc
3030
c_ispeed Speed
3131
c_ospeed Speed
3232
}
@@ -58,7 +58,7 @@ pub mut:
5858
c_cflag TcFlag
5959
c_lflag TcFlag
6060
c_line Cc
61-
c_cc [cclen]Cc
61+
c_cc [termios.cclen]Cc
6262
c_ispeed Speed
6363
c_ospeed Speed
6464
}

vlib/term/termios/termios_openbsd.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ mut:
2525
c_oflag TcFlag
2626
c_cflag TcFlag
2727
c_lflag TcFlag
28-
c_cc [cclen]Cc
28+
c_cc [termios.cclen]Cc
2929
c_ispeed Speed
3030
c_ospeed Speed
3131
}
@@ -56,7 +56,7 @@ pub mut:
5656
c_oflag TcFlag
5757
c_cflag TcFlag
5858
c_lflag TcFlag
59-
c_cc [cclen]Cc
59+
c_cc [termios.cclen]Cc
6060
c_ispeed Speed
6161
c_ospeed Speed
6262
}

0 commit comments

Comments
 (0)