17325 Commits

Author SHA1 Message Date
Felipe Pena
bad436c9f1
parser: fn type declaration does not check already registered name (#20732) 2024-02-06 18:27:04 +02:00
GGRei
2f4858c5f7
dtm: redesign certain parts (#20735) 2024-02-06 18:16:18 +02:00
kbkpbot
7fd1b169f3
builtin: add a string.u8_array() method (#20736) 2024-02-06 17:53:02 +02:00
Felipe Pena
e6570ddcf9
cgen: fix return with option on orexpr (#20728) 2024-02-06 14:05:25 +02:00
max00217
a374d25420
clipboard: fix notice in clipboard_windows.c.v (#20733) weekly.2024.06 2024-02-05 17:14:27 +02:00
GGRei
e48e28de1e
cgen: fix premature variable release by autofree (#20731) 2024-02-05 17:13:14 +02:00
Casper Küthe
4b4646169b
x.vweb: add cors middleware (#20713) 2024-02-05 00:16:29 +02:00
Delyan Angelov
a80af0ff62
x.vweb: add the missing include for C.sendfile to sendfile_linux.c.v 2024-02-04 23:09:20 +02:00
Delyan Angelov
ff60293caf
v.builder: reduce the default noise from successfully rebuilding cached thirdparty object files 2024-02-04 22:06:56 +02:00
Delyan Angelov
8609ea1954
x.vweb: use $if debug_ev_callback ? { for the [vweb] error: write event on connection should be closed message 2024-02-04 16:39:07 +02:00
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