17665 Commits

Author SHA1 Message Date
Swastik Baranwal
932574e104
checker: add error for x as Y.field, suggesting using (x as Y).field instead for clarity (#20725) 2024-02-04 10:36:45 +02:00
Felipe Pena
d0066ed959
cgen: fix interface on multi return func (fix #20720) (#20721) 2024-02-04 10:33:50 +02:00
Felipe Pena
ec7e058a5b
checker: fix comptime ident checking on defer stmt (fix #20719) (#20723) 2024-02-04 10:32:13 +02:00
Felipe Pena
abd2b64700
tests: add test for cast as selector fix (see also #20717) (#20722) 2024-02-03 20:25:54 +02:00
Felipe Pena
f72f1fc893
cgen: fix method call checking against none (fix #20711) (#20717) 2024-02-03 13:16:16 +02:00
Felipe Pena
d977154b21
cgen: fix as cast as selector (fix #20710) (#20718) 2024-02-03 12:45:32 +02:00
Alexander Medvednikov
68275ec7bd x.vweb: error() and simpler redirect(); comptime: a clearer error 2024-02-03 04:23:38 +03:00
Delyan Angelov
96e4a09b66
pref: support file_notd_freestanding.v + file_d_freestanding.v, remove dependency to os, of $embed_file(), when compiling with -freestanding (#20712) 2024-02-02 23:35:19 +02:00
GGRei
07016fb3d5
vlib: add a new Dynamic Template Manager module in x.templating.dtm and an example vweb server that uses it (#20468) 2024-02-02 16:14:51 +02:00
Felipe Pena
5f732aa1b2
v.debug: fix code generated for stringfy ptr with non-pointer str() (#20706) 2024-02-02 15:52:38 +02:00
Felipe Pena
e9320add18
v.debug: callstack minor cleanup (#20704) 2024-02-02 13:20:45 +02:00
Pierre Curto
0a612bf6be
tests: add $tmpl test for #9838 (#20627) 2024-02-01 22:27:40 +02:00
Nicolas Sauzede
fb0efc0aa3
GNUmakefile: use standard default RM make variable to fix MSYS2 env on windows (#20701) 2024-02-01 16:34:59 +02:00
Pierre Curto
232560dcac
v.parser: allow double quotes in @include template directives (#20628) 2024-02-01 12:44:36 +02:00
Delyan Angelov
68bd9a9549
log: implement set_always_flush/1 for log.Log, log.ThreadSafeLog and log.Logger (#20698) 2024-02-01 07:51:52 +02:00
Felipe Pena
98e0293ec0
v: add callstack support on v.debug (#20680) 2024-02-01 07:10:23 +02:00
Ikko Eltociear Ashimine
673a2f4e66
v2: fix typo in checker.v (#20697) 2024-01-31 12:56:43 +02:00
syrmel
382d7658cd
os: add error_posix() and error_win32() for explicit platform error handling and default behavior (#20694) 2024-01-31 07:25:07 +02:00
Swastik Baranwal
74d4081f1b
checker: disallow none as match cond (#20688) 2024-01-31 06:45:00 +02:00
Swastik Baranwal
1dc5d36724
checker: disallow (x) := 10 (#20695) 2024-01-30 19:03:26 +02:00
GGRei
afa1a9abc2
jsgen: fix inconsistent output (u32) in JS backend (#20691) 2024-01-30 18:16:25 +02:00
Delyan Angelov
804a7bdda5
vfmt,parser: keep the original import name in ast.Import, and use it without modifications for paths unders ~/.vmodules 2024-01-29 19:53:25 +02:00
GGRei
2d68230681
os: fix File.read() in JS backends (fix #20501) (#20633) 2024-01-29 15:07:25 +02:00
Delyan Angelov
cae40ad673
examples: cleanup dumps in examples/pendulum-simulation/modules/sim/args/parser.v weekly.2024.05 2024-01-29 04:39:44 +02:00
Delyan Angelov
db61723206
examples: fix notices for pendulum-simulation, simplify --workers option handling, fix assertions for v test examples/pendulum-simulation 2024-01-29 04:37:46 +02:00
Delyan Angelov
77b8097f51
examples: cleanup the glsl includes in the sokol examples 2024-01-29 03:55:09 +02:00
Delyan Angelov
4f7476eaa3
examples: cleanup compiler notices for all sokol examples 2024-01-29 03:42:47 +02:00
Felipe Pena
d8b158be2b
checker: fix checking for option matching with non-option (#20673) 2024-01-29 03:32:39 +02:00
Delyan Angelov
a327d49e8a
v.gen.js: cleanup notices for compiling the JS backend 2024-01-28 19:34:45 +02:00
Delyan Angelov
aec2a15452
v.gen.js: make program_test.v not flaky anymore, so that it is more sensitive to early errors. Fix compilation error for u16.v . Make u32.out match the current reality (the bug will be filed separately) 2024-01-28 19:32:26 +02:00
GGRei
6ab13a870f
v.gen.js: fix u16 cast handling in the JS backend (#20620) 2024-01-28 19:23:36 +02:00
Pierre Curto
4085356bd4
v.gen.c: write the profile file out, even upon CTRL-C or kill (#20677) 2024-01-28 16:39:50 +02:00
kbkpbot
b376609ebb
bitfield: enhance operation with multiple flags (#20683) 2024-01-28 14:45:28 +02:00
Kim Shrier
7e5ffb71d6
vweb: fix typo in README.md (#20679) 2024-01-28 01:34:01 +02:00
Joe C
f79dd79242
coroutines: fix segfaults with GC (part 1) (#20549) 2024-01-27 23:27:38 +02:00
Seweryn
5f7e6ff13a
os: add proper process termination with p.signal_term() (#20671) 2024-01-27 23:25:36 +02:00
Kim Shrier
af2fbafecc
doc: fix minor embedded struct typo (#20678) 2024-01-27 23:24:08 +02:00
kbkpbot
88e413ca5b
crypto.aes: optimise performance (#20674) 2024-01-27 21:38:34 +02:00
Delyan Angelov
49aa602fe5
examples: cleanup examples/fizz_buzz.v 2024-01-27 19:19:20 +02:00
Pierre Curto
5a752c9a2d
v.fmt: drop newline in end comments for const (#20672) 2024-01-27 18:18:33 +02:00
Pierre Curto
75e906538f
v.checker: disallow assigning none to _ (#20646) 2024-01-27 12:24:48 +02:00
Pierre Curto
91d50e415c
vdoc: fix #8044 and -comments flag (#20592) 2024-01-27 07:10:50 +02:00
Casper Küthe
32b4a3c008
x.vweb: support HTTP 1.1 persistent connections (#20658) 2024-01-27 07:07:00 +02:00
kbkpbot
10aaeeb54e
x.crypto: add sm4 module (#20651) 2024-01-26 20:45:26 +02:00
Delyan Angelov
7f5f92ddd4
os: add File.set_buffer and related helpers + tests (#20661) 2024-01-26 20:44:23 +02:00
Delyan Angelov
2a68e2b7c9
builtin: implement unbuffer_stdout/0 (#20662) 2024-01-26 17:47:43 +02:00
syrmel
754c83a8ac
io: allow BufferedReader.read_line() to accept custom line delimiters (#20655) 2024-01-26 11:37:30 +02:00
GGRei
2c6a8c536c
net.http: add a temporary fix for the intermittent segfault with http.get_ text/1 and -prod -cc gcc 13.2.0 (fix #20506) (#20660) 2024-01-26 11:33:09 +02:00
Casper Küthe
8714233f79
vweb, x.vweb: update error checking for new error io.Eof (#20656) 2024-01-26 02:47:25 +02:00
Pierre Curto
a84bce37f1
docs: add a section about modules specifics (#20653) 2024-01-25 22:50:42 +02:00