17093 Commits

Author SHA1 Message Date
kbkpbot
a9ebab06da
net: fix non-blocking read/write (#20438) 2024-02-08 20:18:29 +02:00
syrmel
410bd9db71
os: refactor to use os.stat and os.lstat instead of unsafe C calls (#20759) 2024-02-08 19:27:49 +02:00
Felipe Pena
3c0257af1b
cgen: fix unwrap on or-expr, when calling f() ?Type (fix #20756) (#20758) 2024-02-08 19:26:10 +02:00
GGRei
9782b3c51f
dtm: optimize parser/gen of the template manager (#20751) 2024-02-08 19:23:11 +02:00
syrmel
b7b47fe130
os: make os.SystemError struct public so the os.error_* functions can be used by other modules (#20754) 2024-02-08 13:20:50 +02:00
Felipe Pena
8fe141d476
cgen: fix comptime smartcast as receiver on method call (#20749) 2024-02-08 09:40:52 +02:00
kbkpbot
92976449f7
cgen: remove ull suffix, which looks like the cause for the first scanner error in PR#20726 (#20750) 2024-02-07 19:04:49 +02:00
Casper Küthe
3bd99309dd
x.vweb: add new sessions module (#20642) 2024-02-07 19:00:48 +02:00
gym603
ab3fc7895a
tests: make coutput_test.v skip '*_msvc_windows.vv' when used with gcc (#20748) 2024-02-07 18:26:10 +02:00
Alexander Medvednikov
fb8a34f0f0 builder: support musl-gcc on macos 2024-02-07 18:32:47 +03:00
Delyan Angelov
dc2aee8943
ci: update macos runners to macos-14, to make use of the much faster m1 instances (#20747) 2024-02-07 16:49:42 +02:00
Felipe Pena
de1c431ce3
cgen: fix auto str for map with ptr str (#20741) 2024-02-07 14:07:38 +02:00
gym603
349741da84
tests: make 'vlib/v/builder/builder_test.v' pass on older Windows versions < 10. (#20737) 2024-02-07 10:55:15 +02:00
syrmel
205f2ddd30
os: add os.stat() and helpers (#20739) 2024-02-07 07:12:03 +02:00
Casper Küthe
ee55e9b461
x.vweb: add serve_static example in README (#20740) 2024-02-07 06:35:21 +02:00
MedLabs
9f32af78eb
x.vweb: fix cors example (#20738) 2024-02-06 21:18:05 +02:00
GGRei
b3e9725a93
dtm: add a README.md (#20716) 2024-02-06 21:17:15 +02:00
Delyan Angelov
b46c58a3a5
tools: cleanup vwatch.v 2024-02-06 19:03:11 +02:00
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