18061 Commits

Author SHA1 Message Date
Felipe Pena
6b2d527d9e
cgen: fix array fixed initialization on struct from call (#21568) weekly.2024.22 2024-05-27 00:40:57 +03:00
Delyan Angelov
37f385c9d0
testing: implement a separate -show-asserts option, for cleaner test output (-stats still works, and still shows both the compilation stats and the asserts) (#21578) 2024-05-26 18:50:42 +03:00
tcn
c689f801ae
toml: fix @[toml: ], support @[skip] (#21571) 2024-05-26 09:35:59 +03:00
Bastian Buck
b4c560d4b8
os: fix debugger_present() for non Windows OSes (#21573) 2024-05-26 00:46:43 +03:00
Turiiya
0fdc32e225
builtin: simplify splint_nth methods (#21563) 2024-05-25 16:47:11 +03:00
Delyan Angelov
a1ad658d27
net.http: change default http.Server listening address to :9009, to avoid conflicts with tools, that start their own http servers on 8080 like bytehound (#21570) 2024-05-25 14:30:10 +03:00
Turiiya
25be36296e
os: make minior improvement to C function semantics and related code (#21565) 2024-05-25 11:30:04 +03:00
Turiiya
a7cf1ad7d5
io: cleanup prefix_and_suffix/1 util function (#21562) 2024-05-25 03:46:34 +03:00
Turiiya
14018f1c45
os: remove mut declarions for unchanged vars in os_nix.c.v (#21564) 2024-05-25 03:32:59 +03:00
Delyan Angelov
c9e6a120f6
builtin: reduce allocations in s.index_kmp/1 and s.replace/2 (#21561) 2024-05-25 03:25:38 +03:00
Delyan Angelov
cc72c2e579
ci: shorten path used for unix domain socket tests (to fit in Windows path limits) 2024-05-24 20:15:50 +03:00
Delyan Angelov
75fe4eaab7
cgen: cleanup // scopeobjects.len == lines, when -autofree is not used 2024-05-24 13:08:45 +03:00
Delyan Angelov
1cd561feb4
tests: reduce the likelyhood of naming collisions for v test session folders, started at the exact same time (the time resolution on windows is much lower) 2024-05-24 13:08:45 +03:00
Turiiya
527559c656
examples: cleanup process/execve.v (#21557) 2024-05-24 11:01:01 +03:00
Delyan Angelov
ccfa65aa14
bootstrap: cleanup code checking for overflowing int literals, ease forwards compatibility with V versions before ef758a7 2024-05-24 10:36:07 +03:00
Kim Shrier
5407dbbde7
sokol: fix audio example to work on FreeBSD (#21558) 2024-05-24 08:12:41 +03:00
Alexander Medvednikov
27833e0dbe examples: limit news_fetcher.v 2024-05-23 21:30:41 +03:00
Alexander Medvednikov
115ecdd60a examples: fix news_fetcher.v 2024-05-23 20:48:41 +03:00
Swastik Baranwal
ef758a76dd
checker: fix unknown fixed array size for const n = int(sizeof(u64)); _ = [n]int{} (fix #21544) (#21548) 2024-05-23 19:51:46 +03:00
Delyan Angelov
0fe2d6052d
tests: make the failures of vmodules_overrides_test.v more informative 2024-05-23 17:57:55 +03:00
Delyan Angelov
416b37bcb3
checker: fix v -W vlib/v/tests/enum_bitfield_64bit_test.v too 2024-05-23 17:40:02 +03:00
Delyan Angelov
eb73a53551
tests: remove generated interop_test.js 2024-05-23 16:27:18 +03:00
Delyan Angelov
dbc6b50cda
vlib: make ./v -Wimpure-v -W test vlib/ pass on Linux (#21554) 2024-05-23 16:21:01 +03:00
Delyan Angelov
373b91cd68
tests: make the failures of unknown_options_test.v more informative (the test is a bit flaky on windows) 2024-05-23 16:09:17 +03:00
Felipe Pena
2b1be9087f
cgen: fix printing of floating point values in asserts (#21538) 2024-05-23 13:53:22 +03:00
Delyan Angelov
463125e20a
tools: add a test for crosscompiling hw, on linux and macos, to FreeBSD (#21553) 2024-05-23 13:45:57 +03:00
Turiiya
98ea85170b
builtin: make FnExitCb type public (#21552) 2024-05-23 11:16:55 +03:00
Delyan Angelov
a698763c68
v.builder: support downloading the FreeBSD cross compilation files on first use 2024-05-23 10:52:40 +03:00
Delyan Angelov
302916cb2c
v.builder: minimise the amount of linked libs for cross compilation to FreeBSD 2024-05-23 09:58:46 +03:00
Delyan Angelov
956a5c00c8
pref, builder: make ./v -gc none -os freebsd examples/hello_world.v work on linux too 2024-05-23 09:29:02 +03:00
Alexander Medvednikov
b7efbca8b6 builder: cross compile to FreeBSD 2024-05-23 08:34:52 +03:00
Delyan Angelov
7a36b44c6a
ci: skip compiling the simple_sin_tones.v example again, but only in the tests-sanitize-memory-clang job 2024-05-22 08:45:50 +03:00
Alexander Medvednikov
1b5af1f989 vfmt: allow single line defer {}, just like or {} 2024-05-22 04:03:20 +03:00
Delyan Angelov
ba5b274658
ci: add libasound2-dev in order to test the compilation of the examples in examples/sokol/sounds/ 2024-05-22 00:51:33 +03:00
Delyan Angelov
6197140085 os: use 1 instead of C.SW_SHOWNORMAL to workaround a cross compilation issue from linux to windows 2024-05-21 19:47:04 +03:00
Delyan Angelov
fc45c0a55b time: make C._FILETIME and C.tm fields pub mut 2024-05-21 18:54:06 +03:00
Delyan Angelov
6a550ab86e
tools: cleanup skips for v build-examples in cmd/tools/modules/testing/common.v (#21542) 2024-05-21 16:04:20 +03:00
Delyan Angelov
c664a46a86
parser: skip parser notes when -n is used 2024-05-21 10:41:56 +03:00
Delyan Angelov
84fbe2728d
builtin,v: reduce overhead and memory usage for very frequently called methods (#21540) 2024-05-21 09:11:56 +03:00
Bakul Shah
9997ac4367
veb: support sendfile() syscall on FreeBSD (#21541) 2024-05-21 08:47:24 +03:00
Alexander Medvednikov
458aab4820 coroutines: reduce default stack size from 8 MB to 8 KB 2024-05-21 06:07:27 +03:00
Delyan Angelov
0963069b98
dlmalloc: fix notice for ambiguous expression with both >> and & (#21539) 2024-05-21 01:56:54 +03:00
Alexander Medvednikov
f3624d58cf doc: document x := ?int(none) 2024-05-20 21:48:16 +03:00
Delyan Angelov
cbc7477ecf
tools: fix spurious ending quote in the output of show_manual_release_cmd.vsh 2024-05-20 21:24:16 +03:00
Alexander Medvednikov
736067dd18 V 0.4.6 0.4.6 2024-05-20 21:06:54 +03:00
Kim Shrier
774253eeef
tools: default to -cc clang on FreeBSD in cmd/tools/vtest_test.v (#21534) 2024-05-20 10:38:08 +03:00
Felipe Pena
404f93e229
checker: fix option interface member checking when none is passed (#21509) 2024-05-20 09:16:26 +03:00
Felipe Pena
cfd23f90fd
cgen: fix sumtype field naming (when they are the same as a C keyword) (#21527) 2024-05-20 08:58:04 +03:00
Swastik Baranwal
9e7e323701
checker: allow alias enum flagged to have bit operations (#21532) 2024-05-20 08:48:18 +03:00
Felipe Pena
3aa9ab926f
checker: fix wrong checking for heap struct (#21511) 2024-05-20 08:47:31 +03:00