mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
fmt: fix alignment of struct init fields (#22025)
This commit is contained in:
parent
99da5726db
commit
c51d30bf53
671 changed files with 18817 additions and 18787 deletions
|
@ -65,7 +65,7 @@ fn (mut pv Picoev) poll_once(max_wait_in_sec int) int {
|
|||
|
||||
// select and handle sockets if any
|
||||
tv := C.timeval{
|
||||
tv_sec: u64(max_wait_in_sec)
|
||||
tv_sec: u64(max_wait_in_sec)
|
||||
tv_usec: 0
|
||||
}
|
||||
r := C.@select(maxfd + 1, &readfds, &writefds, &errorfds, &tv)
|
||||
|
|
|
@ -160,7 +160,7 @@ fn (mut pv Picoev) update_events(fd int, events int) int {
|
|||
@[direct_array_access]
|
||||
fn (mut pv Picoev) poll_once(max_wait_in_sec int) int {
|
||||
ts := C.timespec{
|
||||
tv_sec: max_wait_in_sec
|
||||
tv_sec: max_wait_in_sec
|
||||
tv_nsec: 0
|
||||
}
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ fn (mut pv Picoev) update_events(fd int, events int) int {
|
|||
@[direct_array_access]
|
||||
fn (mut pv Picoev) poll_once(max_wait_in_sec int) int {
|
||||
ts := C.timespec{
|
||||
tv_sec: max_wait_in_sec
|
||||
tv_sec: max_wait_in_sec
|
||||
tv_nsec: 0
|
||||
}
|
||||
|
||||
|
|
|
@ -288,10 +288,10 @@ fn raw_callback(fd int, events int, context voidptr) {
|
|||
response_buffer += fd * pv.max_write // pointer magic
|
||||
}
|
||||
mut res := picohttpparser.Response{
|
||||
fd: fd
|
||||
fd: fd
|
||||
buf_start: response_buffer
|
||||
buf: response_buffer
|
||||
date: pv.date.str
|
||||
buf: response_buffer
|
||||
date: pv.date.str
|
||||
}
|
||||
|
||||
for {
|
||||
|
@ -356,15 +356,15 @@ pub fn new(config Config) !&Picoev {
|
|||
}
|
||||
|
||||
mut pv := &Picoev{
|
||||
num_loops: 1
|
||||
cb: config.cb
|
||||
num_loops: 1
|
||||
cb: config.cb
|
||||
error_callback: config.err_cb
|
||||
raw_callback: config.raw_cb
|
||||
user_data: config.user_data
|
||||
timeout_secs: config.timeout_secs
|
||||
max_headers: config.max_headers
|
||||
max_read: config.max_read
|
||||
max_write: config.max_write
|
||||
raw_callback: config.raw_cb
|
||||
user_data: config.user_data
|
||||
timeout_secs: config.timeout_secs
|
||||
max_headers: config.max_headers
|
||||
max_read: config.max_read
|
||||
max_write: config.max_write
|
||||
}
|
||||
|
||||
if isnil(pv.raw_callback) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue