Skip to content

Commit c0a5e06

Browse files
committed
fixes x
1 parent 082f29d commit c0a5e06

62 files changed

Lines changed: 582 additions & 557 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

cmd/tools/vquest.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ fn run_issue(cmd cli.Command, issue_query string, issue_label string, help_label
288288
}
289289

290290
fn run_document(_cmd cli.Command) ! {
291-
res := os.execute('${os.quoted_path(@VEXE)} missdoc --exclude vlib/v --exclude /linux_bare/ --exclude /wasm_bare/ @vlib')
291+
res :=
292+
os.execute('${os.quoted_path(@VEXE)} missdoc --exclude vlib/v --exclude /linux_bare/ --exclude /wasm_bare/ @vlib')
292293
if res.exit_code != 0 {
293294
return error('v missdoc failed: ${res.output}')
294295
}

cmd/tools/vrepl.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,8 @@ fn (r &Repl) check_fn_type_kind(new_line string) FnType {
306306
// -usecache keeps repeated REPL checks responsive by reusing cached modules.
307307
// -w suppresses warnings from this synthetic println probe.
308308
// -check just does syntax and checker analysis without generating/running code.
309-
os_response := os.execute('${os.quoted_path(vexe)} -usecache -w -check ${os.quoted_path(check_file)}')
309+
os_response :=
310+
os.execute('${os.quoted_path(vexe)} -usecache -w -check ${os.quoted_path(check_file)}')
310311
str_response := convert_output(os_response.output)
311312
if os_response.exit_code != 0 && str_response.contains('can not print void expressions') {
312313
return FnType.void
@@ -855,7 +856,8 @@ fn repl_check_vfile(file string) !os.Result {
855856
}
856857
// Declaration-only REPL lines do not need code generation or execution.
857858
// Cached checks keep repeated imports and definitions responsive.
858-
s := os.execute('${os.quoted_path(vexe)} -usecache -message-limit 1 -repl -check ${os.quoted_path(file)}')
859+
s :=
860+
os.execute('${os.quoted_path(vexe)} -usecache -message-limit 1 -repl -check ${os.quoted_path(file)}')
859861
if s.exit_code < 0 {
860862
rerror(s.output)
861863
return error(s.output)

cmd/tools/vsqlite/main.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,8 @@ fn (mut app App) exec_file(path string) {
330330
trimmed := stmt.trim_space()
331331
// Strip comment-only lines to decide if the chunk has real SQL,
332332
// but pass the original (with comments) to SQLite so it can parse them.
333-
sql_content := trimmed.split('\n').filter(!it.trim_space().starts_with('--')).join('\n').trim_space()
333+
sql_content :=
334+
trimmed.split('\n').filter(!it.trim_space().starts_with('--')).join('\n').trim_space()
334335
if sql_content == '' {
335336
continue
336337
}
@@ -348,7 +349,8 @@ fn (mut app App) read_file_repl(path string) {
348349
mut count := 0
349350
for stmt in split_statements(content) {
350351
trimmed := stmt.trim_space()
351-
sql_content := trimmed.split('\n').filter(!it.trim_space().starts_with('--')).join('\n').trim_space()
352+
sql_content :=
353+
trimmed.split('\n').filter(!it.trim_space().starts_with('--')).join('\n').trim_space()
352354
if sql_content == '' {
353355
continue
354356
}

cmd/tools/vsymlink/vsymlink_windows.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ fn set_reg_value(reg_key voidptr, key string, value string) !bool {
150150
// letting them know that the system environment has changed and should be reloaded
151151
fn send_setting_change_msg(message_data string) !bool {
152152
message_data_wide := message_data.to_wide()
153-
if C.SendMessageTimeoutW(os.hwnd_broadcast, os.wm_settingchange, 0, unsafe { &u32(message_data_wide) },
154-
os.smto_abortifhung, 5000, 0) == 0 {
153+
if C.SendMessageTimeoutW(os.hwnd_broadcast, os.wm_settingchange, 0,
154+
unsafe { &u32(message_data_wide) }, os.smto_abortifhung, 5000, 0) == 0 {
155155
return error('Could not broadcast WM_SETTINGCHANGE')
156156
}
157157
return true

cmd/tools/vtest-cleancode.v

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ fn v_test_vetting(vargs string) ! {
9090
'${os.quoted_path(vexe)} fmt -inprocess -verify', 'fmt -inprocess -verify'
9191
}
9292
vfmt_list := util.find_all_v_files(vfmt_verify_list) or { return }
93-
exceptions := (util.find_all_v_files(vfmt_known_failing_exceptions) or { return }).map(os.abs_path)
93+
exceptions :=
94+
(util.find_all_v_files(vfmt_known_failing_exceptions) or { return }).map(os.abs_path)
9495
filtered_vfmt_list := vfmt_list.filter(os.abs_path(it) !in exceptions)
95-
verify_session := tsession(vargs, 'vfmt.v', fmt_cmd, fmt_args, filtered_vfmt_list,
96-
exceptions)
96+
verify_session := tsession(vargs, 'vfmt.v', fmt_cmd, fmt_args, filtered_vfmt_list, exceptions)
9797

9898
if vet_session.benchmark.nfail > 0 || verify_session.benchmark.nfail > 0 {
9999
eprintln('\n')

vlib/builtin/vgc_d_vgc.c.v

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -846,8 +846,7 @@ fn vgc_realloc(old_ptr voidptr, new_size usize) voidptr {
846846
if old_span.noscan {
847847
new_ptr = vgc_malloc_noscan_opts(new_size, false)
848848
} else if old_span.has_ptrmap {
849-
new_ptr = vgc_malloc_typed_opts(new_size, old_span.ptrmap, old_span.ptr_words,
850-
false)
849+
new_ptr = vgc_malloc_typed_opts(new_size, old_span.ptrmap, old_span.ptr_words, false)
851850
} else {
852851
new_ptr = vgc_malloc_typed_opts(new_size, 0, 0, false)
853852
}

vlib/db/pg/orm.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ pub fn (db DB) select(config orm.SelectConfig, data orm.QueryData, where orm.Que
3030

3131
// insert is used internally by V's ORM for processing `INSERT ` queries
3232
pub fn (db DB) insert(table orm.Table, data orm.QueryData) ! {
33-
query, converted_data := orm.orm_stmt_gen(.pg, table, '"', .insert, true, '$', 1,
34-
data, orm.QueryData{})
33+
query, converted_data :=
34+
orm.orm_stmt_gen(.pg, table, '"', .insert, true, '$', 1, data, orm.QueryData{})
3535
pg_stmt_worker(db, query, converted_data, orm.QueryData{})!
3636
}
3737

vlib/db/sqlite/sqlite.c.v

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,8 @@ pub fn (mut db DB) release_savepoint(savepoint string) ! {
583583

584584
// tables returns the names of all user tables in the database.
585585
pub fn (db &DB) tables() ![]string {
586-
rows := db.exec("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' ORDER BY name")!
586+
rows :=
587+
db.exec("SELECT name FROM sqlite_master WHERE type='table' AND name NOT LIKE 'sqlite_%' ORDER BY name")!
587588
return rows.map(it.vals[0])
588589
}
589590

@@ -603,7 +604,8 @@ pub fn (db &DB) schema(table string) !string {
603604
} else {
604605
''
605606
}
606-
rows := db.exec("SELECT sql FROM sqlite_master WHERE type IN ('table','index','view','trigger') ${filter} AND sql IS NOT NULL ORDER BY type, name")!
607+
rows :=
608+
db.exec("SELECT sql FROM sqlite_master WHERE type IN ('table','index','view','trigger') ${filter} AND sql IS NOT NULL ORDER BY type, name")!
607609
return rows.map(it.vals[0]).join('\n\n')
608610
}
609611

vlib/fasthttp/fasthttp_linux.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ fn process_request(server &Server, epoll_fd int, client_fd int, request_buffer [
245245
mut send_error := false
246246
mut pos := 0
247247
for pos < response.content.len {
248-
sent := C.send(client_fd, unsafe { &response.content[pos] }, response.content.len - pos,
249-
C.MSG_NOSIGNAL)
248+
sent := C.send(client_fd, unsafe { &response.content[pos] },
249+
response.content.len - pos, C.MSG_NOSIGNAL)
250250
if sent <= 0 {
251251
eprintln('ERROR: send() failed with errno=${C.errno}')
252252
send_error = true

vlib/gg/gg.js.v

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,8 @@ pub fn (mut ctx Context) draw_rect(x f32, y f32, w f32, h f32, c Color) {
485485

486486
fn gg_animation_frame_fn(mut g Context) {
487487
g.frame++
488-
g.context.clearRect(JS.Number(0), JS.Number(0), JS.Number(g.config.width), JS.Number(g.config.height))
488+
g.context.clearRect(JS.Number(0), JS.Number(0), JS.Number(g.config.width),
489+
JS.Number(g.config.height))
489490
// todo(playXE): handle events
490491

491492
if !isnil(g.config.frame_fn) {

0 commit comments

Comments
 (0)