20129 Commits

Author SHA1 Message Date
Pepper Gray
ce8f62146b
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
Pepper Gray
decea1b188
v.pref: fix vsh_envbang_test.v to always use the local V executable (#22563) 2024-10-18 10:57:26 +03:00
Pepper Gray
35079f115d
encoding.utf8: replace uchar with rune, deprecate get_uchar, is_uchar_punct, is_uchar_global_punct (#22560) 2024-10-18 10:39:26 +03:00
alexey semenyuk
f814386c2a
docs: change link in docs for the builtin framework, from vlib/vweb to vlib/veb (#22566) 2024-10-18 09:27:09 +03:00
Hitalo Souza
6583d3c726
x.json2.decoder2: improve decode array (#22556) 2024-10-18 09:12:09 +03:00
Felipe Pena
8054808861
cgen: fix map_set codegen for sumtype array variant with autofree (fix #12008) (#22553) 2024-10-17 21:52:19 +03:00
Felipe Pena
ae04167c32
v: allow checking of method comptime signature with is operator (fix #8843) (#22549) 2024-10-17 21:48:44 +03:00
Felipe Pena
5e253e7923
time: fix C.clock_gettime return type (fix #8843) (#22551) 2024-10-17 20:57:59 +03:00
yuyi
c8423dd300
regex, vfmt: optimize receiver with reference (#22552) 2024-10-17 20:56:23 +03:00
Hitalo Souza
7c1cde0396
x.json2.decoder2: decode bool and numbers (#22550) 2024-10-17 20:53:04 +03:00
Delyan Angelov
7da79fd221
os: improve robustness of create_folder_when_it_does_not_exist/1 (fix CI false positives for vab-compiles-v-examples) (#22548) 2024-10-17 15:51:04 +03:00
Hitalo Souza
8556353b43
x.json2.decoder2: improve decoder, add checker (part 1) (#22545) 2024-10-17 13:37:46 +03:00
Felipe Pena
e4ffc7f224
v: add support for T.unaliased_typ (#22546) 2024-10-17 11:50:10 +03:00
yuyi
e97036a25b
v: remove the automatic passing of structs with more than 8 fields by reference (related #17159) (#22547) 2024-10-17 11:04:23 +03:00
Delyan Angelov
5f413f48f8
parser: generate all flagged enum functions, no matter what the backend is; tag them with @[flag_enum_fn], and let the backends filter them out, if they do not support them (#22543) 2024-10-16 23:09:22 +03:00
Delyan Angelov
3326392ce2
docs: fix html rendering of the list of columns, in the description of the #profiling section 2024-10-16 15:18:56 +03:00
Delyan Angelov
a64dfc776b
builtin: remove unsafe{} blocks from data_to_hex_string/2 2024-10-16 14:19:18 +03:00
Delyan Angelov
c5e8ad19df
builtin: implement a s.hex() method, allowing shortening s.bytes().hex() chains, and reducing the intermediate allocations; add tests for it (#22540) 2024-10-16 14:18:10 +03:00
yuyi
a2e478be81
checker: improve if expr with compound conditions (#22541) 2024-10-16 12:48:05 +03:00
yuyi
ffa79219f6
checker: fix if expr with compound conditions (#22539) 2024-10-16 11:00:23 +03:00
Alexandre Jousset
a5adbe8f1f
docs: add progressive "Task Lists" sections to CONTRIBUTING.md (#22537) weekly.2024.42 2024-10-16 08:45:00 +03:00
Delyan Angelov
df9cf27c7f
docs: add an Other online resources section (#22538) 2024-10-16 08:44:11 +03:00
Felipe Pena
3e697fe95d
cgen: fix comptime for method with $method as inherited var (fix #12657) (#22536) 2024-10-16 07:02:02 +03:00
Felipe Pena
131078128b
v: allow for C.va_arg(Type, va) (fix #20636) (#22530) 2024-10-16 06:59:33 +03:00
Jose Mendoza
fde951652c
checker: clarify error message about using empty map literal to initialize structs (fix #22498) (#22534) 2024-10-15 23:06:45 +03:00
Delyan Angelov
e4d80596a0
docs: add link to https://docs.vlang.io/introduction.html in doc/docs.md 2024-10-15 22:57:53 +03:00
Jose Mendoza
7b212b2e73
checker: disallow C/JS functions and structs to be declared as generic (#22533) 2024-10-15 22:07:06 +03:00
Delyan Angelov
947da2b811
ci: add .github/workflows/compare_pr_to_master.v 2024-10-15 20:51:19 +03:00
Felipe Pena
b7c6054319
v: allow for function scoped declaration of structs, with the same name in different fns (fix #22482) (#22520) 2024-10-15 19:20:23 +03:00
yuyi
e6d4fac5dc
cgen: fix sumtype aggregate with struct embeded (fix #22481) (#22532) 2024-10-15 18:29:02 +03:00
larpon
78bdeca9b1
thirdparty: update stb_image_resize2.h from 2.06 to 2.11 (#22529) 2024-10-15 15:05:57 +03:00
Delyan Angelov
04bd58596f
stbi: fix stbi.Image's nr_channels property, after a forced conversion on load (#22528) 2024-10-15 13:27:34 +03:00
yuyi
1fb9fec7fa
examples: change var name '@type' to 'type' in net_resolve.v (#22526) 2024-10-15 13:00:09 +03:00
Delyan Angelov
49513afd51
rand: tag with @[direct_array_access] some frequently used functions, that are already debugged (#22523) 2024-10-15 10:38:35 +03:00
Swastik Baranwal
4c55de5e65
checker: check for unwrapped results in map keys and vals (fix #22521) (#22525) 2024-10-15 08:29:09 +03:00
yuyi
7220f75b07
parser: allow for variable name using keyword 'type' (#22512) 2024-10-14 22:37:12 +03:00
Delyan Angelov
5c65e58fe2
cgen: fix err message for if _ := m[key] { 2024-10-14 15:06:16 +03:00
Delyan Angelov
e48e3c748d
parser: apply @[direct_array_access] to is_ident_name 2024-10-14 15:05:31 +03:00
Delyan Angelov
5786099cb0
token: apply @[direct_array_access] to TrieNode.add_word 2024-10-14 15:04:06 +03:00
Delyan Angelov
9a88446ee0
os: improve doc comments for os functions, that accept/return a size/offset in bytes (#22519) 2024-10-14 14:08:04 +03:00
Delyan Angelov
9fac8a4463
v.util: relax the vup tool recompilation; try an older vup tool, if it is still present; add more failure diagnostic messages (#22518) 2024-10-14 07:28:49 +03:00
Felipe Pena
df4c6ac739
fmt: keep C. prefix for concrete type used in a generic fn call (#22517) 2024-10-13 20:14:23 +03:00
JalonSolov
55ae30cba4
tools: grammar changes in oldv usage (#22515) 2024-10-13 18:30:22 +03:00
Delyan Angelov
b1142548b9
ast,parser,cgen: add a new ast.FnDecl field is_c_extern, set it during parsing, to be available in markused and checker too 2024-10-13 16:47:58 +03:00
Felipe Pena
c4aaa2ef4d
checker: fix generic lambda with late concrete type inference (fix #22497) (#22509) 2024-10-13 13:25:15 +03:00
alexey semenyuk
bb99f8b57c
examples: fix veb example's file_transform port typo (#22511) 2024-10-13 13:23:08 +03:00
Felipe Pena
6064c6f210
parser: allow static method call on match branch (#22507) 2024-10-13 13:21:28 +03:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
Felipe Pena
45fd7ebcde
checker: implement option unwrapping on else branch (#22504) 2024-10-12 16:19:46 +03:00
yuyi
e1e44e32c7
parser: implement fn name using keyword (#22501) 2024-10-12 15:56:45 +03:00