15949 Commits

Author SHA1 Message Date
Alexander Medvednikov
ae4fe20b5e tools: changelog_helper.v for speeding up changelog generation; more 0.4.1 changelogs 2023-09-03 19:44:44 +03:00
Turiiya
61b219953a
encoding.html: optimize escape performance (#19264) 2023-09-03 19:01:19 +03:00
Alexander Medvednikov
ed6626dc84 changelog: 0.4.1 (part 1) 2023-09-03 14:08:04 +03:00
Delyan Angelov
7492add2d3
cgen: cleanup code, use PastTmpVar more (#19261) 2023-09-02 15:34:54 +03:00
Swastik Baranwal
9f77630f41
checker: disallow casting string to enum, suggest using Enum.from_string() instead (#19260) 2023-09-02 14:22:04 +03:00
Delyan Angelov
6a7ac6a23c
tools: add support for v should-compile-all -c examples/, which will delete all the produced executables at the end 2023-09-02 14:02:39 +03:00
yuyi
a8d2a990c7
cgen: cleanup in struct_init_field() (#19259) 2023-09-02 08:10:55 +03:00
yuyi
5848610453
parser, checker, cgen: fix anon struct with default expr (#19257) 2023-09-01 20:43:19 +03:00
Delyan Angelov
13fd5493d3
arrays: add new generic arrays.uniq, arrays.uniq_only, arrays.uniq_only_repeated, arrays.uniq_all_repeated, arrays.distinct 2023-09-01 16:51:51 +03:00
Turiiya
0450a933b9
os: update TOCTOU example in readme, to improve readability of the module docs on mobile (#19255) 2023-09-01 16:09:04 +03:00
Adam Oates
448f60422a
docs: fix notice for the doc samples, turn a[1..4] to unsafe { a[1..4] } (fix #19249) (#19254) 2023-09-01 10:08:47 +03:00
Delyan Angelov
fca8092523
builtin: fix the wording of panic messages, about sorting not working with -freestanding
Thanks @MPetr for spotting it.
2023-09-01 10:04:29 +03:00
Delyan Angelov
58b6ba81d1
builtin: implement array.sorted() and array.sorted_with_compare() methods, that do not modify their receivers (#19251) 2023-09-01 09:12:00 +03:00
yuyi
d9a382fb32
cgen: cleanup in array_init() and fixed_array_init() (#19252) 2023-09-01 08:19:32 +03:00
Larpon
93d54651b5
vgret: add install commands for ubuntu and arch to doc string (#19247) 2023-09-01 02:04:58 +03:00
yuyi
19ff25d456
cgen: fix mixed fixed array and array initializing (#19246) 2023-08-31 18:15:29 +03:00
Delyan Angelov
652bb9a3b3
tools: add favicon to the html produced by fast.v 2023-08-31 18:06:25 +03:00
yuyi
e414b54f68
parser: check struct embed with wrong position (#19245) 2023-08-31 12:15:35 +03:00
Delyan Angelov
6fb4a481f8
log: improve the most common use case (#19242) 2023-08-31 06:44:11 +03:00
Delyan Angelov
55575fd7bd
checker: optimise out needless string interpolations from the most common case in Checker.expr_or_block_err 2023-08-31 00:34:13 +03:00
Delyan Angelov
803001edaa
builtin: add support for -d bultin_writeln_should_write_at_once and -d bultin_write_buf_to_fd_should_use_c_write (#19243) 2023-08-30 23:44:33 +03:00
James Kirkwood
7927583de9
net.mbedtls: have shutdown close accepted connections too (#19164) 2023-08-30 21:52:42 +03:00
Delyan Angelov
d503435dd4
builtin: always show the assert message, if it was defined in the source, in non test programs too (fix #19240) 2023-08-30 21:05:23 +03:00
Turiiya
f755118e7c
vlib: update doc comments (#19231) 2023-08-30 08:50:00 +03:00
Xavier Mitault
78c34326f1
flag: remove warning in the example in the readme (#19238) 2023-08-30 08:47:29 +03:00
Alexander Medvednikov
c6412597ab builder: add -fwrapv to fix UB overflow 2023-08-29 23:39:46 +03:00
Turiiya
80db36496b
time: check if a day is a valid day of its month (#19232) 2023-08-29 22:45:21 +03:00
yuyi
6af17a86e2
flag: cleanup in flag.v (#19237) 2023-08-29 18:08:14 +03:00
David 'Epper' Marshall
17a1835a5c
docs: fix link to packaging_v_for_distributions.md (#19227) 2023-08-29 11:28:49 +03:00
yuyi
34842b1bf8
v.token: add inline next_to() and cleanup related calls (#19226) 2023-08-28 16:06:16 +03:00
Daniel Daudysh
9d4233dde5
docs: add note about OS threads (#19225) weekly.2023.35 2023-08-28 08:51:51 +03:00
Xavier Mitault
007519e130
cli: add attribute doc for Flag.global (#19224) 2023-08-27 14:34:25 +03:00
Turiiya
981ff192e4
os: update doc comment for input_opt return (#19223) 2023-08-27 13:40:21 +03:00
yuyi
adf10f88cf
cgen: fix array sort with fn call parameter (fix #19220) (#19221) 2023-08-26 18:50:06 +03:00
Delyan Angelov
c85232ef1f
tools: make performance_compare.v more robust and easier to use, by allowing v run cmd/tools/performance_compare.v too 2023-08-26 10:40:16 +03:00
Delyan Angelov
806f071a11
tools: improve oldv windows support, make it use -municode for windows builds, after 53ffee1 2020-05-18 2023-08-26 09:51:50 +03:00
Delyan Angelov
636aae243c tools: improve windows support in oldv (it now can run in cmd.exe, not just in a Git Bash shell) 2023-08-26 09:07:14 +03:00
yuyi
570a12da8d
cgen: fix generic struct with option fn field (#19218) 2023-08-25 22:50:53 +03:00
Delyan Angelov
7add6e7d51
tools: make repeated runs of oldv SAME_COMMIT -c "./v file.v", not use the network at all 2023-08-25 20:39:01 +03:00
yuyi
7028a9df83
checker: cleanup in check_expr_opt_call() (#19216) 2023-08-25 20:15:52 +03:00
yuyi
d417bba432
checker: check error for or_expr inside infix expression (#19213) 2023-08-25 20:00:58 +03:00
Swastik Baranwal
11337e7621
checker: disallow thread as var name (#19174) 2023-08-25 19:56:39 +03:00
pancake
45e6e7d763
http: add support for stream connections, and custom .on_redirect, .on_progress, .on_finish callbacks to http.fetch() (#19184) 2023-08-23 20:42:05 +03:00
Turiiya
d60c8171ee
vpm: implement multithreading (#19208) 2023-08-23 11:05:16 +03:00
Felipe Pena
5cafdea7d0
cgen: allow using a const as enum value (#19193) 2023-08-23 09:53:14 +03:00
Delyan Angelov
c9e46d34aa
math.big: fix notice for compilation with latest v 2023-08-23 08:10:55 +03:00
Brama Udi
8a1077a689
vweb: add a user_agent utility method to the vweb context (#19204) 2023-08-22 21:40:07 +03:00
Ikko Eltociear Ashimine
ffea6eb52d
vweb: fix typo in README.md (#19206)
usefull -> useful
2023-08-22 21:34:24 +03:00
Delyan Angelov
c0950873a4
docs: add a note about using VAUTOFIX=1 v check-md file.md 2023-08-22 21:30:14 +03:00
Delyan Angelov
30dbda6e65
help: make find vlib/v/help/ -name *.txt |xargs v check-md pass as well 2023-08-22 21:27:28 +03:00