19797 Commits

Author SHA1 Message Date
Pasha Radchenko
5c4f7ca871
tests: add missing license info for reserved_keywords_as_struct_field_test.v (#23817) 2025-02-27 02:16:28 +02:00
kbkpbot
370ba448dd
os: fix buffer overflow in os.get_raw_line under Windows (#23816) 2025-02-27 01:09:34 +02:00
Delyan Angelov
a1f7213de0
sokol: allow for v -os wasm32_emscripten -o examples/tetris/tetris.html examples/tetris/ (avoid using -sMODULARIZE) (#23814) 2025-02-26 11:51:33 +02:00
Delyan Angelov
94f0f6d93b
cgen,checker: allow for pub type C.HINSTANCE = voidptr, being used in @[export: "wWinMain"] fn mymain(x C.HINSTANCE, xprev C.HINSTANCE, lpcmdline &C.WCHAR, cmdshow int) int { in module no_main programs (#23812) 2025-02-26 11:05:11 +02:00
Kim Shrier
c826923b16
cli: fix minor typo (#23811) 2025-02-26 09:04:39 +02:00
Delyan Angelov
9b8a1607ed
math.big: add vlib/math/big/big_division_test.v (follow-up to 270941a) 2025-02-26 05:25:51 +02:00
Delyan Angelov
270941a6bd
math.big: bump newton_division_limit to 1_000_000 (workaround issue #23806) 2025-02-26 04:54:01 +02:00
Eliyaan (Nopana)
c9bec82033
native: fix unsigned and signed int comparison (#23808) 2025-02-26 03:52:37 +02:00
Hitalo Souza
c349381aa5
x.json2.decoder2: improve string tests (#23809) 2025-02-26 03:49:04 +02:00
larpon
4f98fe982c
math.vec: add rotate_around_* (cw/ccw) functions to vec.Vec2[T] (#23807) 2025-02-26 03:46:18 +02:00
Felipe Pena
537605a058
checker: fix map when casting to interface (fix #23790) (#23799) 2025-02-25 16:42:23 +02:00
Anonymous User
ab2eb0016c
veb.request_id: new middleware that implements request ID tracking (#23727) 2025-02-25 00:54:43 +03:00
Delyan Angelov
f3d2eb1c24
log: fix valgrind_test.v failure weekly.2025.09 2025-02-24 19:21:47 +02:00
Delyan Angelov
b9d057118c
log: fix panic on mutex destroy, when exiting a program, while a thread is still logging 2025-02-24 18:28:27 +02:00
Delyan Angelov
1cb76c92f4
ci: remove the VJOBS=1 restriction for test-cleancode on linux (#23801) 2025-02-24 16:30:36 +02:00
Delyan Angelov
fa8c5e369a
examples: show how to use a v file server for the wasm version of 2048, instead of emrun 2025-02-24 15:25:16 +02:00
Delyan Angelov
8241f22116
ci: use -silent in more jobs that produce a lot of OK lines normally (for test-cleancode, test-self, build-examples, build-tools) 2025-02-24 11:23:59 +02:00
Delyan Angelov
f83c8bf478
v.pref: allow for -os wasm32_emscripten and filtering _d_wasm32_emscripten.c.v and _notd_wasm32_emscripten.c.v files. (#23797) 2025-02-24 11:23:37 +02:00
Delyan Angelov
252df04ceb
ci: use -silent for the longer test runs (suppress most OK lines, to reduce scrolling on failure) 2025-02-24 09:35:16 +02:00
Felipe Pena
0f58a02c14
cgen: fix gowrapper codegen for receiver ptrptr (fix #23798) (#23800) 2025-02-24 03:54:25 +02:00
Felipe Pena
99216929d6
checker: fix missing struct cast validation (fix #23748) (#23788) 2025-02-23 21:06:12 +02:00
Bruno-Vdr
e5e9b5dc08
v.pref: fix panic in parse_args_and_show_errors, called with no args (fix #23713) (#23794) 2025-02-23 21:02:47 +02:00
Delyan Angelov
3c88926fdb
term: make the second example in the README.md compilable as well 2025-02-23 14:26:16 +02:00
Delyan Angelov
be3a5362c2
term: add more comments in vlib/term/README.md 2025-02-23 13:40:33 +02:00
Felipe Pena
89d1aac5bd
checker, cgen: fix aggregate var handling on match branch (fix #23768) (#23787) 2025-02-23 12:15:10 +02:00
Eliyaan (Nopana)
5376a55cef
native: add support for enums of different types (#23786) 2025-02-23 01:06:40 +02:00
Felipe Pena
ffdc1ab702
cgen: fix codegen for match with sumtype ptrptr (fix #23776) (#23785) 2025-02-23 01:00:14 +02:00
Delyan Angelov
3f44780be4
sync: cleanup tcc flag declarations on musl based distros like Alpine as well (#23783) 2025-02-22 14:24:55 +02:00
Delyan Angelov
9062d76bb4
tools: support module no_main based examples in v should-compile-all 2025-02-22 14:22:22 +02:00
Delyan Angelov
7d60ce0061
sync: use #flag $when_first_existing() to cleanup vlib/sync/stdatomic/1.declarations.c.v (followup to #23780) (#23781) 2025-02-21 22:21:11 +02:00
Eliyaan (Nopana)
515d78d77c
native: cleanup assign, fix nested struct (#23778) 2025-02-21 20:04:40 +02:00
Delyan Angelov
b766900e86
v.cflag: support #flag $when_first_existing(libABC.a, /some/path/libABC.a, ...), without panicing (unlike #flag $first_existing(...)) (#23780) 2025-02-21 19:29:00 +02:00
Richard Wheeler
5a749582c1
ci: make freebsd_ci.yml runnable on personal forked repos, that are not named v (#23779) 2025-02-21 05:22:49 +02:00
Swastik Baranwal
e613211560
checker: allow generic operators to be called in fn (fix #23773) (#23774) 2025-02-21 03:07:01 +02:00
Delyan Angelov
6d017f3a31
math.big: fix 1/115792089237316195423570985008687907853269984665640564039457584007908834671663 leading to panic (fix #23771) 2025-02-20 18:19:55 +02:00
Delyan Angelov
c5b26c441c
sync: support x86_64-alt-linux gcc paths too when tcc is used (needed for ALT Linux) 2025-02-20 17:16:24 +02:00
Bruno-Vdr
8b3d02de75
strconv: add atou, atou8/16/32/64 utility functions with tests (#23766) 2025-02-20 09:53:09 +02:00
Delyan Angelov
cfeb1bb564
ci: skip fibonacci_native.vv on windows for now 2025-02-20 09:24:58 +02:00
Delyan Angelov
5698a6ae79
ci: fix v build-examples failure on gcc-windows 2025-02-20 09:13:06 +02:00
Alexander Medvednikov
620b365509 native: fibonacci test 2025-02-20 06:59:53 +03:00
Alexander Medvednikov
a045bb0132 all: use arguments() instead of os.args in some files 2025-02-20 03:07:30 +03:00
Richard Wheeler
0dd7698fd1
native: fix missing symbols CaptureStackBackTrace and __debugbreak (#23765) 2025-02-19 23:58:18 +03:00
Alexander Medvednikov
af3f6c18f5 native: minor comptime fixes 2025-02-19 20:50:16 +03:00
Felipe Pena
99635cfba9
checker: fix missing check for method that returns veb.Result (fix #23647) (#23762) 2025-02-19 17:41:27 +02:00
Delyan Angelov
dfacc3321d
tools: build examples, that start with module no_main as well 2025-02-19 17:19:50 +02:00
Delyan Angelov
4a8b3151b9
examples: add minimal_c_like_program_using_puts.v showing how to produce a much smaller executable on Linux, using clang, mold and sstrip. 2025-02-19 17:14:03 +02:00
Felipe Pena
70db1499b8
checker: fix spreed operator ref field validation (fix #23759) (#23760) 2025-02-19 14:26:50 +02:00
Bruno-Vdr
a694918f4c
strconv : add atoi8/16/32/64 helper functions with their tests (#23757) 2025-02-19 02:32:19 +02:00
Eliyaan (Nopana)
1274f46150
native: support negative integer literals (#23755)
* fix mov64

* add tests for negative integer literals

* raise an error when printing unsigned int

* fix comments

* fix windows CI failure/compiler panic

* fix root cause of panic, provide valid zero ast.IntegerLiteral to c.gen_exit(zero) in Amd64.fn_decl/1

* fix comments, add test

---------

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2025-02-18 18:27:12 +02:00
Delyan Angelov
0c5a6d5a62
ci: rebuild V with v -g self in .github/workflows/native_backend_ci.yml, to improve remote diagnosis of panics in PRs 2025-02-18 16:40:01 +02:00