17988 Commits

Author SHA1 Message Date
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
Turiiya
5e01f673de
vlib, cmd: fix typo unkown -> unknown (#21535) 2024-05-20 08:28:46 +03:00
Turiiya
f56b2b6833
tools.vet: add notice for empty strings conditions (#21421) 2024-05-19 21:40:25 +03:00
Turiiya
f7e820cdeb
v: vet for empty string conditions (#21529) 2024-05-19 17:57:52 +03:00
Delyan Angelov
6752ce8914
builtin,dlmalloc: fixes for v vlib/v/gen/c/coutput_test.v for gcc14.1, which is stricter 2024-05-19 17:18:48 +03:00
Kim Shrier
5fbf676803
math.unsigned: fix some Uint256 bugs and add tests (#21528) 2024-05-19 16:51:01 +03:00
Delyan Angelov
9f2cb8ccbb ci: mark again tcp_test.v as flaky (it had 3 unrelated failures on the CI over the last week) 2024-05-19 10:32:44 +03:00
Delyan Angelov
4486493158 ci: fix failing vlib/v/tests/option_test.c.v 2024-05-19 10:11:27 +03:00
Turiiya
1f7c91e00f
parser: parse string and array typ idx of ScopeVar and Ident (#21523) 2024-05-19 09:58:32 +03:00
Delyan Angelov
6389da7047
os: rename os_structs_stat_windows.v to os_structs_stat_windows.c.v to fix v -Wimpure-v -os windows vlib/os/os_stat_test.v 2024-05-18 23:09:11 +03:00
Delyan Angelov
3a3a1085cf
builtin: simplify MessageError.msg() (#21524) 2024-05-18 22:36:24 +03:00
JoeyShapiro
c8bf38ccb3
v.pref: error for v file.v --unknown-option (#21391) 2024-05-18 19:52:06 +03:00
Delyan Angelov
14d8a97fe6
ci: make sure that unformatted code in just cmd/ is not allowed 2024-05-18 15:10:29 +03:00
Delyan Angelov
961bc7907c
ci: run v fmt -w cmd/tools/vdoc/vdoc_test.v 2024-05-18 15:06:20 +03:00
Felipe Pena
fd144b30f2
cgen: fix C struct init when it has default expr (#21510) 2024-05-18 14:35:55 +03:00
Turiiya
755cdca249
vdoc: improve vdocignore file handling by walking all .vdocignore sub-paths in IgnoreRules.get, add test (#21521) 2024-05-18 14:30:50 +03:00
Rom
2a614bd0a8
net.unix: remove debug/trace eprintln (#21517) 2024-05-17 08:45:26 +03:00
Swastik Baranwal
eeaf8d94d0
checker: disallow invalid ptr operations (#21515) 2024-05-17 00:13:56 +03:00
Delyan Angelov
a6704bef88
ci: update g++ to g++-10 in other_ci.yml, add workflow_dispatch: trigger for easier local future diagnostic 2024-05-16 23:22:14 +03:00
Delyan Angelov
96ecb3f8d9
ci: use g++ not g++-11 in misc-tooling (g++-11 can not be found and installed on the CI runner anymore for some reason) 2024-05-16 23:09:47 +03:00
Delyan Angelov
f8222633fb
ci: run build-module-docs, when changes to the source of the v doc tool happen too 2024-05-16 22:53:04 +03:00
Turiiya
41b7e5fc21
vdoc: fix handling of .vdocignore files in subdirectories (#21514) 2024-05-16 22:42:28 +03:00
Turiiya
9639f55db0
vdoc: include src dir when trying to generate doc comments for module (#21505) 2024-05-15 21:07:15 +03:00
Turiiya
8a515c03b8
vdoc: fix search in README index.html when generated with v doc -f html -m -readme flags (#21506) 2024-05-15 21:06:26 +03:00