Commit graph

20137 commits

Author SHA1 Message Date
Delyan Angelov
55b1236421
log: use @[noinline] for level_from_tag/1 and target_from_label/1 to avoid triggering panics for programs using log, compiled with -prod and -cc gcc>10 (fix #24874) 2025-07-10 14:43:42 +03:00
Mike
ee6eed3c22
math.unsigned: replace untested comments for uint256 public APIs (#24873) 2025-07-10 10:36:52 +03:00
Mike
03e72a4856
math.unsigned: fix rotate_left() for uint256, add test (#24872) 2025-07-10 08:45:34 +03:00
Mike
e850f6c678
math.unsigned: fix div_128() for uint128, add tests (#24869) 2025-07-09 23:33:50 +03:00
Mike
499283edc8
math.unsigned: fix lsh() for uint256, add tests (#24867) 2025-07-08 20:10:33 +03:00
Mike
09e1edbd17
math.unsigned: fix rsh() for uint256 too, add tests (#24865) 2025-07-08 17:22:45 +03:00
Delyan Angelov
bb7f9f2562
log: allow for -d log_default_level=debug, to change the default log level for programs and tests, that do not explicitly call log.set_level/1 themselves. 2025-07-08 17:08:43 +03:00
Alexander Medvednikov
f683ab69d6 net.http: handle Content-Length: 0 2025-07-08 13:54:19 +03:00
Alexander Medvednikov
ed82bbd2f3 doc: err is 2025-07-08 13:16:53 +03:00
Mike
47145ea644
math.unsigned: fix typos for uint128 (#24863) 2025-07-08 10:24:45 +03:00
Felipe Pena
00e0eae98b
cgen: fix codegen for generic interface with multi return generic type (fix #24838) (#24858) 2025-07-07 17:51:48 +03:00
Mike
e62ed47812
math.unsigned: fix quo_rem(), add tests (#24859) 2025-07-07 16:27:26 +03:00
Delyan Angelov
2c4845a16f
tests: add union_implementing_interface_test.v (#24857) 2025-07-07 00:54:21 +03:00
Delyan Angelov
4db6408e0b ci: mark tcp_test.v and unix_socket_test.v as flaky (they still fail sporadically on the CI, although very rarely now) 2025-07-06 21:32:40 +03:00
kbkpbot
fcbe2e6ce7
sync: add thread local storage (TLS) support (#24849) 2025-07-06 17:42:33 +03:00
Delyan Angelov
952f63ef43
examples: add examples/sokol/sounds/simple_keyboard_synth.v 2025-07-06 15:05:22 +03:00
Felipe Pena
f177237037
cgen: fix const indexexpr dep (fix #24850) (#24851) 2025-07-06 08:33:13 +03:00
Felipe Pena
57aae3fd20
cgen: fix json decode option alias (fix #24843) (#24853) 2025-07-06 08:22:07 +03:00
Felipe Pena
8f15d65168
cgen, x.json2: fix anon struct encode (fix #24836) (#24852) 2025-07-06 06:41:42 +03:00
Krchi
52ae3f2476
cgen: fix array data for option array/fixed array(?[]u8/?[3]u8), add tests (#24847) 2025-07-05 12:14:02 +03:00
kbkpbot
c216e59bfc
datatypes: add lockfree version of counter and ringbuffer (#24839) 2025-07-04 18:45:14 +03:00
Delyan Angelov
0fdca4b0dc
ci: add report-missing-dots-in-doc-comments job 2025-07-03 19:30:09 +03:00
Mike
3b791be3aa
math.unsigned: fix rsh() for Uint128, add tests (#24841) 2025-07-03 13:51:48 +03:00
Mike
2a5398aff6
math.unsigned: fix lsh() for Uint128, add tests (#24840) 2025-07-03 12:44:31 +03:00
Delyan Angelov
7e35d40661
v2: add formatting workarounds, to make v run cmd/v2/v2.v --skip-imports -d vlib/v2/tests/syntax.v_ run 2025-07-03 09:46:01 +03:00
Mike
c989f9bb78
math.unsigned: add uint256_new() function and tests (#24837) 2025-07-02 22:30:59 +03:00
kbkpbot
3eb04e346c
cgen,checker: add $if sizeof(T) == int_literal { support (#24831) 2025-07-02 22:29:16 +03:00
Delyan Angelov
35af6a8d12 docs: fix doc comments in arrays too 2025-07-02 17:06:21 +03:00
Delyan Angelov
74b6e3b5c7 docs: cleanup doc comments of public APIs in benchmark, bitfield, and build 2025-07-02 16:54:17 +03:00
Delyan Angelov
b305fa5743 docs: cleanup doc comments of public APIs in builtin (found by find_doc_comments_with_no_dots.v) 2025-07-02 16:33:24 +03:00
Delyan Angelov
a011888612 tools: skip _test.v and _test.c.v files in find_doc_comments_with_no_dots.v 2025-07-02 16:20:51 +03:00
Delyan Angelov
30ce22866d docs: put some more dots in the doc comments of public APIs, found by find_doc_comments_with_no_dots.v 2025-07-02 16:12:03 +03:00
Delyan Angelov
3271c728d5 docs: use cmd/tools/find_doc_comments_with_no_dots.v to put some missing dots in the doc comments of public symbols. 2025-07-02 15:45:47 +03:00
Delyan Angelov
e6bbcbd168 tools: improve summary output of find_doc_comments_with_no_dots.v 2025-07-02 15:44:44 +03:00
Delyan Angelov
7f53acfec8 tools: add find_doc_comments_with_no_dots.v 2025-07-02 15:38:08 +03:00
Delyan Angelov
46358b011f
cgen,markused: skip struct map { and related type declarations, when no V maps are used (#24826) 2025-07-01 18:40:47 +03:00
Delyan Angelov
2c063ea191
cgen,markused: skip struct none { in cgen, if none is not used by V code reachable from fn main() { (#24824) 2025-07-01 14:13:03 +03:00
Delyan Angelov
d05dc1f519
ci: migrate the remaining jobs from the deprecated windows-2019 image to windows-2022 (#24825) 2025-07-01 14:11:45 +03:00
Jengro
4a44fc5ae0
readme: use .\v in instruction for PowerShell (#24820)
Co-authored-by: Jengro Woo <Jengro777@outlook.com>
2025-07-01 09:45:18 +03:00
Felipe Pena
6dcedae784
cgen: fix if codegen when func parameter is option type (fix #24813) (#24816) 2025-06-30 22:04:15 +03:00
Laurent Cheylus
aadb0e9435
maths.bits: fix ambiguous expressions, remove special case in the checker (#24815) 2025-06-30 22:02:24 +03:00
Felipe Pena
65a5e968d7
cgen: fix codegen for multi return assignment with option type (fix #24812) (#24817) 2025-06-30 22:00:05 +03:00
Delyan Angelov
2c2ded2e0b
sync: use an atomic counter in test_waitgroup_go in waitgroup_test.v 2025-06-30 21:57:26 +03:00
Laurent Cheylus
9957327c37
crypto: fix ambiguous expressions in DES implementation (#24814) 2025-06-30 21:51:02 +03:00
Felipe Pena
42638cb171
cgen: fix codegen for interface method closure get (fix #24810) (#24818) 2025-06-30 21:49:38 +03:00
Laurent Cheylus
6cbffd53ba
picoev: fix documentation (#24811) 2025-06-29 12:59:14 +03:00
Felipe Pena
b909e2eb37
parser, cgen: fix static and volatile var deref (fix #24778) (fix #24779) (#24807) 2025-06-29 07:29:29 +03:00
Felipe Pena
bea73f7a3b
checker: fix sizeof(T) usage in generic struct (fix #24806) (#24808) 2025-06-29 07:28:15 +03:00
Krchi
f7b6a420d8
scanner: fix multi-level string interpolation in if/match branch (#24805) 2025-06-28 17:09:07 +03:00
kbkpbot
bd465b5254
sync: use SpinLock for channel (fix #24680) (#24802) 2025-06-28 14:55:06 +03:00