17826 Commits

Author SHA1 Message Date
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
Delyan Angelov
65503edb4e
ci: make vmodules_overrides_test.v failures more informative 2024-06-10 12:33:07 +03:00
Alexander Medvednikov
ec055dc774 oauth: make Context fields public 2024-06-10 12:11:40 +03:00
Alexander Medvednikov
b5b57a2e07 orm: ilike for case insensitive text search 2024-06-10 11:54:25 +03:00
Felipe Pena
ef918082b4
cgen: fix or expr with non option fn call return (fix #21660) (#21661) 2024-06-10 10:44:59 +03:00
Delyan Angelov
1af7b7c3de
checker: support nested labeled for statements (#21658) 2024-06-09 17:52:56 +03:00
Turiiya
dfc0c91295
checker: turn warnings for private fields into errors (#21296) 2024-06-09 10:19:52 +03:00
Juan de Bruin
da4afef0d7
builtin: implement a JS version of string.split_any (#21612) 2024-06-08 07:10:57 +03:00
Mehmet Ali Şipi
ff865ea110
os.font: return the "segoeui.ttf" font, if its file exists on Windows (#21655) 2024-06-08 07:07:24 +03:00
Alexander Medvednikov
0b2edd0dd1 gc: fix tcc on macos 2024-06-08 01:34:02 +03:00
Alexander Medvednikov
0d52a7d91e openssl: more verbose error; libgc: make compile on arm macs 2024-06-07 11:48:27 +03:00
Turiiya
e2848e1348
tools: don't write vpm logfiles in CI runs (#21649) 2024-06-07 11:05:05 +03:00
Delyan Angelov
0e543fb364
docs: update the array/slice/reallocation examples and comments 2024-06-07 10:54:30 +03:00
Turiiya
7c8b4b8970
v.utils: allow to set the names of the compared items, when diffing strings (#21650) 2024-06-07 10:22:22 +03:00
Juan de Bruin
096226bf05
examples: check array length before access (#21641) weekly.2024.23 2024-06-04 18:38:06 +03:00
Felipe Pena
1e86e06eb6
orm: fix subquery without where expr (#21598) 2024-06-04 13:22:06 +03:00
Turiiya
a2ce55d922
builtin: update last_index_u8, deprecate index_u8_last string methods, make consistent with last_index (#21604) 2024-06-04 13:21:47 +03:00
Maxwell Geng
2250d60559
cgen: support a -d no_bool option, for cgen compatibility with the C23 language standard (since bool is a builtin type and a keyword in it) (#21637) 2024-06-04 11:18:37 +03:00
Delyan Angelov
cc92dbc8a5
examples: show how to create and pass a V string to a V function, and then get back a V string in Python 2024-06-03 19:26:30 +03:00
Alexander Medvednikov
193a99d1e7 all: @[freed] attribute for assign statements 2024-06-03 17:19:59 +03:00
Felipe Pena
6d2c3a9caa
checker: fix missing option and result wrong type return type definition (#21626) 2024-06-02 17:14:51 +03:00
Alexander Medvednikov
1096173bd3 builtin: vfmt builtin.c.v 2024-06-02 10:43:48 +03:00
Alexander Medvednikov
4884396ee6 vdoc: fix multiline js string generation in search_index.js 2024-06-02 10:35:50 +03:00
Delyan Angelov
8504beaaab
net.http: implement http.download_file_with_progress/2, saving each chunk, as it is received, without growing the memory usage (#21633) 2024-06-02 10:26:37 +03:00
Felipe Pena
2e567ff9e5
checker: fix missing concrete type checking on a generic type specifier (#21614) 2024-06-02 02:10:48 +03:00
Juan de Bruin
7cff1f7972
jsgen: add README.md (#21630) 2024-06-02 01:48:51 +03:00
Juan de Bruin
12de7cff04
ast: add comment showing what blank_ident represents (#21631) 2024-06-02 01:44:12 +03:00
Felipe Pena
03e89b7851
checker: add error for field map (i.e. a plain untyped map), used inside a struct (#21625) 2024-06-02 01:34:41 +03:00
Felipe Pena
ca55da63c3
cgen: fix missing call to a function returning option, when called inside a print (fix #21616) (#21623) 2024-06-02 01:31:12 +03:00
Juan de Bruin
bb3505fdf8
jsgen: cleanup dead code, add TODOs, reduce nesting, use smartcasting (#21629) 2024-06-02 01:20:59 +03:00
Felipe Pena
d750528f06
parser: allow multiple flag values in enum.from() for flag enums (fix #21569) (#21615) 2024-06-02 00:44:28 +03:00
penguindark
ab45d80fa5
regex: implement \xAF and \X1234 BSLS escape codes (fix #21607) (#21632) 2024-06-02 00:39:59 +03:00
Swastik Baranwal
8c249366c4
checker: disallow sum type with Result variants (#21620) 2024-06-01 13:49:19 +03:00
Delyan Angelov
2d12b03435
net.html: quick workaround for a cgen problem for const x = int(0x80000000) 2024-06-01 11:29:09 +03:00
Felipe Pena
19c08f5e8c
cgen: fix generated code for handling fn call with result/option return on match conditional (#21608) 2024-05-31 22:49:17 +03:00
Delyan Angelov
5ac8249af7
tools: increase max_samples in cmd/tools/fast/fast.v to decrease the variations of the results on https://fast.vlang.io/ 2024-05-31 09:15:11 +03:00
Turiiya
5657e28ca5
parser: register selective import aliases as used (#21613) 2024-05-31 08:34:53 +03:00