17862 Commits

Author SHA1 Message Date
larpon
a36c0d8315
ast, parser: support $d() in fixed size array struct fields (#21731) 2024-06-26 01:13:05 +03:00
yuyi
98a1ee2284
cgen: fix smartcasting a reference to a sumtype value (#21730) weekly.2024.26 2024-06-25 10:09:06 +03:00
Turiiya
5b9358279a
vlib: simplify byte character conditions by using methods like is_capital, is_lower, is_letter etc (#21725) 2024-06-25 09:55:08 +03:00
Swastik Baranwal
a536c03365
checker: allow \uxxxxx in raw strings (#21724) 2024-06-25 08:18:25 +03:00
Mike Ward
e1d23429c7
encoding.base32: fix warning of implicit clone of array, by using an explicit unsafe block (#21728) 2024-06-25 08:17:29 +03:00
Turiiya
c5c49d3685
builtin: fix assert 'JVM_PUBLIC_ACC'.camel_to_snake() == 'jvm_public_acc' (#21722) 2024-06-24 23:01:52 +03:00
yuyi
2b0938da75
checker, cgen: fix auto dereference mut variable in if expr (fix #21309) (#21720) 2024-06-24 16:48:16 +03:00
yuyi
4d2c2daca3
cgen: fix fn call with mut reference args (fix #21265) (#21719) 2024-06-24 11:59:46 +03:00
yuyi
f5c87a1cf2
checker: fix result call or_block with multi-statements (fix #21504) (#21717) 2024-06-24 11:38:15 +03:00
Delyan Angelov
d364e61b8c
docs: improve the v deploy.vsh section 2024-06-23 11:27:45 +03:00
Felipe Pena
cc14272444
cgen, checker: fix generic variable resolution on generic func return assignment (#21712) 2024-06-23 10:28:56 +03:00
Felipe Pena
53d7a55424
checker: fix $if x { condition, using const x = $d('ident', false) (fix #21709) (#21713) 2024-06-23 10:11:54 +03:00
Alexander Medvednikov
d7bc216713 string: fix leak in replace_once 2024-06-22 19:17:26 +03:00
Alexander Medvednikov
549e11bfa1 string: optimize is_ascii() 2024-06-22 18:25:52 +03:00
Felipe Pena
70b33fc303
cgen,x.json2: fix generic map decoding (#21704) 2024-06-22 13:17:14 +03:00
Swastik Baranwal
2bb815f0fd
cgen: support inc cond for c style for loop with alias types (#21708) 2024-06-22 13:15:43 +03:00
yuyi
4302f8698e
fmt: add fn_with_mut_ref_params_keep.vv (#21711) 2024-06-21 20:14:44 +03:00
Delyan Angelov
b008387074
arrays: extend test for arrays.sum with one testing sum over a struct with overloaded + operator, cleanup fn comment 2024-06-21 19:55:56 +03:00
yuyi
112fc95036
parser, checker: fix sorting compare fn with mut reference parameter (fix #21662) (#21706) 2024-06-21 17:07:44 +03:00
Delyan Angelov
be9d2b6d11
cgen: implement g.trace_last_lines/2 to help debugging cgen problems 2024-06-21 16:01:49 +03:00
larpon
537fa1bb6d
comptime, ast: support [$d('s', 4)]int{}, move resolving to method on ComptimeCall (#21701) 2024-06-20 12:33:23 +03:00
Yashank
5b7cc63279
docs: fix comment considered as a token (#21705) 2024-06-20 12:25:20 +03:00
larpon
58f4e126b4
v: update build.txt with new -d functionality (#21699) weekly.2024.25 2024-06-19 13:42:01 +03:00
Ikko Eltociear Ashimine
d7cc5c8877
checker: fix typo explictly -> explicitly in error message (#21698) 2024-06-19 10:21:46 +03:00
larpon
78b77b9f14
comptime: support -d ident=value and var := $d('ident', 0) (#21685) 2024-06-19 07:24:16 +03:00
Skylear
aaa23bb058
orm: update readme with more specifics (#21697) 2024-06-19 06:53:21 +03:00
Leo Developer
72a3fd6f02
veb.auth: use constant time comparision in compare_password_with_hash (#21693) 2024-06-18 23:21:20 +03:00
yuyi
0498ed1032
checker: fix match expr with auto promote number (#21696) 2024-06-18 23:05:22 +03:00
yuyi
5ebe7d1d9a
checker: minor cleanup in expr() (#21695) 2024-06-18 23:01:38 +03:00
yuyi
de5ad8b118
cgen: fix dumping array of reference (#21694) 2024-06-18 13:06:20 +03:00
Delyan Angelov
488fd4f076
.gitignore: ignore vprod, vprod_gcc, vprod_clang, vprod_msvc executables 2024-06-18 10:09:43 +03:00
Turiiya
895bb87a32
builtin: improve performance of string.camel_to_snake (#21691) 2024-06-18 09:16:10 +03:00
Delyan Angelov
fb32951abd
tools: make the summary output of v repeat more informative 2024-06-18 08:47:09 +03:00
Delyan Angelov
041f2b3d3a
tools: fix measurements for ./v repeat "./vold -o x project/" "./vnew -o x project/" 2024-06-18 07:45:42 +03:00
poggingfish
1a685c30aa
vweb, veb, x.vweb: add m3u8 MIME type application/vnd.apple.mpegurl for multimedia playlists (#21688) 2024-06-16 22:21:43 +03:00
Swastik Baranwal
bebe943cc2
all: support &&= and ||= for bool alias types as well (#21684) 2024-06-16 03:58:25 +03:00
kbkpbot
df1e4f1246
builtin: add string.camel_to_snake/0 and string.snake_to_camel/0 methods (#21679) 2024-06-15 21:02:44 +03:00
Felipe Pena
3ad77b2551
cgen: fix comptime generic arg resolution (allow several different struct fields in generic functions using comptime) (fix #18110) (#21682) 2024-06-15 20:14:06 +03:00
Felipe Pena
8f7741dcdd
cgen: fix spawn code generated when calling conditional function (fix #19352) (#21681) 2024-06-15 18:42:01 +03:00
Delyan Angelov
63353ba36a
cgen: generate pragmas for gcc-14, to make it more relaxed by default. Support -no-relaxed-gcc14 for turning them off. (#21680) 2024-06-15 18:28:31 +03:00
Swastik Baranwal
add1621181
all: implement &&= and ||= (#21678) 2024-06-14 23:46:25 +03:00
Swastik Baranwal
2de0b36a6e
parser: disallow duplicate operator overload (#21675) 2024-06-14 00:55:55 +03:00
Swastik Baranwal
44c8c0fb3d
checker: fix the return type of overloaded operators, defined on aliases of primitive types (fix #21654) (#21663) 2024-06-12 19:44:40 +03:00
kbkpbot
02f65627bc
builtin: fix string.find_between(), when not found end string return '' (#21670) 2024-06-12 14:25:19 +03:00
Yashank
1da3b3b840
veb: update import name in docs (#21668) 2024-06-12 13:04:50 +03:00
Kim Shrier
7d182a469e
crypto.sha3: remove unnecessary return at the end of the write function (#21669) 2024-06-12 10:29:13 +03:00
Larpon
47e93d1c39
term: add functions for detecting Sixel support + example (#21665) 2024-06-11 19:59:58 +03:00
Kim Shrier
dfdd752106
crypto: add a crypto.sha3 hash and extended output functions (#21664) 2024-06-11 15:39:16 +03:00
Turiiya
100b3b0fa3
v.pref: fix regression of command flags not working, when there is a subfolder, named after the command, in the current working folder (#21647) weekly.2024.24 2024-06-10 21:16:42 +03:00
Delyan Angelov
53ac41ff06
ci: move the test cases in unknown_options_test.v to pref_test.v, to minimise false positives (both compiled and ran examples/hello_world.v in parallel) 2024-06-10 14:06:41 +03:00