Commit graph

19506 commits

Author SHA1 Message Date
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
ChAoS_UnItY (Kyle Lin)
9f3f1291e8
checker: fix signed integer literal overflow error, when most significant bit occupies signed bit (fix #23782) (#23919) 2025-03-13 17:29:44 +02:00
Felipe Pena
734fde89e8
checker: add fntype casting validations (#23872) 2025-03-13 16:38:12 +03:00
Alexander Medvednikov
e006b65944 parser: remove table dep for script main check 2025-03-13 16:01:45 +03:00
Delyan Angelov
17695801ea
gg: add is_key_down/1 helper method 2025-03-13 11:40:39 +02:00
blackshirt
2fd3b7e881
crypto.ecdsa: improve the performance of the .public_key method of PrivateKey (#23920) 2025-03-13 10:21:36 +02:00
Delyan Angelov
0321c3f544
Revert "math.bits: port changes from e66e996, so that -cstrict -cc gcc-11 passes for markdown as well"
This reverts commit 41a846a534.
2025-03-13 00:08:57 +02:00
Delyan Angelov
58e4e7bbdc
thirdparty: fix recompilation of markdown with -cc gcc-11 -prod -cstrict 2025-03-12 23:52:30 +02:00
Delyan Angelov
41a846a534
math.bits: port changes from e66e996, so that -cstrict -cc gcc-11 passes for markdown as well 2025-03-12 23:40:01 +02:00
Luke Miles
361309f660
docs: combine IDE plugins into one list in README.md (#23913) 2025-03-12 23:13:10 +02:00
Alexander Medvednikov
951d30405f builtin: string.index_after() ?int 2025-03-12 23:03:25 +03:00
Delyan Angelov
85973b9cca
v.builder,v.cflags: improve the cross compilation support for programs using libraries like raylib, that have specific linking order needs, by supporting -lraylib@START_LIBS 2025-03-12 21:58:28 +02:00
Delyan Angelov
d970a8fce2
v.build_constraint: support // vtest build: false and // vtest build: true too; add tests 2025-03-12 15:35:17 +02:00
Delyan Angelov
acfa088b60
v.build_constraint: support comments too, for example linux&&gcc // some comment 2025-03-12 14:21:57 +02:00
Felipe Pena
ad20a57139
checker, cgen: fix generic container init (fix #23910) (#23912) 2025-03-12 14:04:13 +02:00
Delyan Angelov
e32283fd1c
math: add remap/5, smoothstep/3 and smootherstep/3 implementations + tests 2025-03-12 08:53:27 +02:00
Delyan Angelov
35b1cff2d3
tools: support // vtest build: !do_not_test ?, // vtest build: !windows && tinyc to skip files during testing on specific platforms, without having to keep centralised skip lists (#23900) 2025-03-11 21:57:47 +02:00
Delyan Angelov
5439ff9cde
cgen: make sure to call the overriden pub fn (mut a []string) free() { method, NOT the generic fn (a &array) free() { one. (#23911) 2025-03-11 21:09:55 +02:00
Felipe Pena
2dc0911e8c
cgen: fix codegen for array of anon struct (fix #23896) (#23907) 2025-03-11 19:06:40 +02:00
Felipe Pena
4e87a1ba09
checker: add missing any type validation on assignment (fix #23905) (#23906) 2025-03-11 18:34:06 +02:00
⚡ Sigui
ae89466843
veb.assets: ✏️ fix typo in veb.assets error message (#23908) 2025-03-11 16:08:15 +02:00
Mike
a5affa5d99
crypto.aes: fix notices about order of operations (fix #23898) (#23902) 2025-03-11 14:22:48 +02:00
Delyan Angelov
fe618a500b
cgen: improve the stability of generated code for auto string methods 2025-03-11 13:28:04 +02:00
blackshirt
de54be058e
crypto.ecdsa: improves internal function of calc_digest_with_evpkey (#23901) 2025-03-11 11:27:14 +02:00
blackshirt
4cc6f2547f
crypto.ecda: improvement the performance of PrivateKey.new by avoiding match+assignments (#23899) 2025-03-11 04:04:19 +02:00
Hitalo Souza
f787e0317e
examples: add vanilla_http_server - a fast, multi-threaded, non-blocking, port and host reuse, thread-safe, epoll server (#23094) 2025-03-10 19:44:32 +02:00
blackshirt
6623ac21c7
crypto.ecdsa: update and cleanup the documentation (#23897) 2025-03-10 10:37:00 +02:00
Delyan Angelov
50b716b8e3
v.util: fix stack overflow during parsing of #flag -DName=$d(...) (#23895) 2025-03-10 00:36:15 +02:00
Kim Shrier
23c5bc78c4
cli: add missing struct members to str() method and fix some comments (#23893) 2025-03-09 22:14:17 +02:00
kbkpbot
b1d6b784e3
builder,cgen: fix msvc build filename, remove temp files (#23890) 2025-03-09 16:42:41 +02:00
sSAR
6cda3b0ab3
veb: handle sendfile errors, when the connection is canceled, before the file is completely transferred (#23891) 2025-03-09 16:33:11 +02:00
larpon
81afd8f502
docs, cmd: fix broken docs source links regression in vdoc (#23889) 2025-03-09 16:31:14 +02:00
Delyan Angelov
aebe9bc1c8
parser: fix panic, discovered by fuzzing examples/2048/2048.v with zzuf on the CI 2025-03-09 12:16:44 +02:00
blackshirt
309aebfaf1
crypto.ecdsa: clean out old deprecated keypair opaque from the module, make -cstrict pass for all the tests, and with both gcc and clang (#23887) 2025-03-09 09:59:10 +02:00
Delyan Angelov
03d033fa4b
examples: make the 2048 game update rate, independent from the frame rate as well 2025-03-09 09:18:52 +02:00
Delyan Angelov
aafbda4bc4
examples: make the tetris update rate, independent from the frame rate too 2025-03-09 09:05:02 +02:00
Delyan Angelov
2860152e82
gg,examples: use a timer to limit the rate of updates in breakout, instead of a separate thread, restore ability to run in a browser through emscripten 2025-03-09 08:45:21 +02:00
Delyan Angelov
77a9e6e1b8
examples: run the update method of breakout on its own frame independent rate 2025-03-09 01:47:03 +02:00
larpon
0210567af2
examples: add subtle light and shadow effects to the breakout game, to give it a little depth (#23885) 2025-03-09 00:44:33 +02:00
Delyan Angelov
ef6b81d214
examples: fix (ball->side edge of brick) collision detection in breakout.v 2025-03-09 00:41:49 +02:00
Felipe Pena
9ae8cc357f
checker: fix option ptr field assign checking (fix #23879) (#23880) 2025-03-08 20:58:03 +02:00
Felipe Pena
6b31c86fea
cgen: fix codegen for global array passed as mut (fix #23873) (#23881) 2025-03-08 20:56:38 +02:00
Felipe Pena
44f8ba6161
type_resolver: fix recheck identification for anonfn on structinit (fix regression of #18294) (#23882) 2025-03-08 18:42:50 +02:00
Delyan Angelov
615e74d341
vlib: reduce false positive matches for /// , cleanup commented code 2025-03-08 17:47:13 +02:00
Delyan Angelov
af6247135c
x.json2: add a convenience Any.as_map_of_strings/0 method 2025-03-08 16:49:50 +02:00
blackshirt
ec0b70e130
crypto.ecdsa: complete the migration to the newer OpenSSL APIs (follow up to #23876) (#23877) 2025-03-08 14:59:01 +02:00
kbkpbot
0ea6667eca
v.live: fix the output name, used for the .dll/.so creation, when -live -cc is used (make it work with -cc msvc) (fix #6936) (#23878) 2025-03-08 14:20:05 +02:00
Delyan Angelov
e475e9d437
examples: shorten the periodic output of examples/hot_reload/message.v 2025-03-08 14:02:35 +02:00
Delyan Angelov
4877417adf
math.big: make ./v -prod -cstrict -cc gcc-11 test vlib/math/ pass cleanly (workaround a problem in V's cgen, that -cstrict discovered) 2025-03-08 13:45:31 +02:00
Delyan Angelov
e66e9960d3
math: fix ./v -prod -cstrict -cc gcc-11 vlib/math/math_bench_test.v (use unions to implement f64_bits/1 and f64_from_bits/1 for compilers != tcc) 2025-03-08 12:28:25 +02:00