18424 Commits

Author SHA1 Message Date
Delyan Angelov
209c30f3a6
v.builder: fix building with -cc msvc and non ASCII characters in paths on windows 11 (#22410) 2024-10-05 02:20:15 +03:00
kbkpbot
dc6a9583d7
v.builder, builtin: use ANSI encoding for the .rsp file under Windows; add builtin string_to_ansi_not_null_terminated + tests (#22409) 2024-10-04 20:29:13 +03:00
Delyan Angelov
5a8ba962a8
v.builder: pass /nologo instead of /NOLOGO, when the user passed -cc msvc on windows 2024-10-04 15:58:29 +03:00
Delyan Angelov
0390c070ec
v.builder: write an UTF8 BOM header for the .rsp file, when using '-cc msvc' (#22408) 2024-10-04 14:00:47 +03:00
yuyi
286c44266d
checker: cleanup in match_expr() (#22407) 2024-10-04 10:11:17 +03:00
Felipe Pena
cafb69dee2
x.json2: add support to array of array (fix #22362) (#22365) 2024-10-04 10:05:05 +03:00
yuyi
884b842930
checker: check fn return void fn call (no value) (fix #22389) (#22404) 2024-10-04 10:01:22 +03:00
Felipe Pena
5b1581daee
cgen: fix global decl type default generation for fixed array (fix #22402) (#22403) 2024-10-03 19:59:57 +03:00
Felipe Pena
1a11056419
checker: fix validation of lambda params and returns in generic function calls (#22387) 2024-10-03 19:56:41 +03:00
yuyi
f24d239199
cgen: improve enum with comptime const value (related #22388) (#22401) 2024-10-03 16:10:19 +03:00
yuyi
985136721e
cgen: fix struct fixed array field init with default value (fix #22392) (#22399) 2024-10-03 11:31:36 +03:00
kbkpbot
e2425842b2
encoding.iconv: fix iconv type cstrict, add support for LOCAL encoding (#22398) 2024-10-03 11:27:42 +03:00
Swastik Baranwal
7b8e059a3c
checker: disallow invalid T cast (fix #22346) (#22354) 2024-10-03 01:52:42 +03:00
Delyan Angelov
dafca9353c
tests: use value and the .len field, for the left/right values, shown in failing assertions (#22393) 2024-10-03 00:36:05 +03:00
Jose Mendoza
2b546c4fa7
scanner: remove redundancy from the messages suggesting to use quotes instead of backticks for characters (#22390) 2024-10-02 21:49:52 +03:00
yuyi
c01186c729
cgen: fix enum with comptime const value (fix #22386) (#22388) 2024-10-02 19:49:25 +03:00
Felipe Pena
cf2ccbc22d
cgen: fix auto str for array and map for C struct (fix #22379) (#22381) 2024-10-02 19:39:18 +03:00
kbkpbot
747794998b
encoding: add an encoding.iconv module with tests (#22332) 2024-10-02 19:37:48 +03:00
Carlos Esquerdo Bernat
d1606b22b7
net: allow for a ::ffff:127.0.0.1 result in tcp_simple_client_server_test.v (#22385) 2024-10-02 17:31:01 +03:00
Jose Mendoza
8d1ba46875
scanner: improve unknown comptime var error (#22371) 2024-10-02 17:15:10 +03:00
yuyi
5e00270ef2
builtin: cleanup push_many()/push_many_noscan() (#22383) 2024-10-01 20:16:13 +03:00
Felipe Pena
30952cf2bb
cgen: fix codegen for const of fixed array (fix #22357) (#22364) 2024-10-01 19:04:00 +03:00
yuyi
856fb8b257
cgen: cleanup in method_call() (#22382) 2024-10-01 18:39:22 +03:00
Felipe Pena
3faf06bf95
checker: fix missing check for alias to generic type (fix #22359) (#22360) 2024-10-01 16:31:31 +03:00
Stanislav Ershov
3b9651d8c9
v.builder: fix build using msvc with multiple C sources (for example programs using #flag file.c) (#22377) 2024-10-01 16:30:22 +03:00
yuyi
d2c5b1907e
cgen: refactor to streamline gen_map_method_call() (#22356) 2024-10-01 14:19:41 +03:00
Carlos Esquerdo Bernat
e598db12d3
net: add more SocketOptions enum values, make public fn new_tcp_socket (#22378) 2024-10-01 11:42:30 +03:00
Felipe Pena
d1fdcfbab4
cgen: fix comptime variant string interpolation (fix #22366) (#22368) 2024-10-01 11:25:56 +03:00
Jose Mendoza
fc72044b42
checker: improve fn argument mismatch error (#22370) 2024-10-01 10:45:03 +03:00
Hitalo Souza
81b9fd8b14
x.json2.decoder2: clean up (#22373) 2024-10-01 10:15:51 +03:00
Felipe Pena
1b812f6bdf
cgen: fix global struct init on tcc (fix #22300) (#22350) 2024-10-01 05:03:51 +03:00
Felipe Pena
ce95787215
cgen: fix array to alias push operation (fix #22374) (#22375) 2024-10-01 05:02:32 +03:00
Felipe Pena
aa3ab3ff20
cgen: fix const with c string literal (fix #22358) (#22361) 2024-09-30 14:54:39 +03:00
Felipe Pena
04aba8f767
net: fix split_address (fix #14909) (#22349) 2024-09-30 08:25:39 +03:00
yuyi
6eec0b33c6
cgen: refactor to streamline gen_array_method_call() (#22353) 2024-09-30 08:23:30 +03:00
Turiiya
be26233670
vdoc: fix scrolling on keyboard select in search results with overflow (#22352) 2024-09-29 19:17:26 +03:00
Felipe Pena
10c7a75c2d
checker: fix missing reserved name check on global declaration (fix #22345) (#22347) 2024-09-29 08:49:38 +03:00
Felipe Pena
80e09e2f91
checker: fix compiler panic, when calling an unknown function in C.printf(c'%f\n', sin(2)) (fix #22343) (#22348) 2024-09-29 08:02:38 +03:00
yuyi
161d29a922
cgen: minor cleanup in method_call() (#22351) 2024-09-29 07:59:45 +03:00
Felipe Pena
6f97ced860
orm: allow comptime field.name as field name (fix #22329) (#22344) 2024-09-29 07:53:47 +03:00
Alexander Medvednikov
2ab152390e V 0.4.8 0.4.8 2024-09-28 18:50:00 +03:00
Alexander Medvednikov
747508c35b changelog: minor 0.4.8 fixes 2024-09-28 18:13:56 +03:00
Alexander Medvednikov
106cc3ec35 changelog: V 0.4.8 changelog 2024-09-28 17:56:27 +03:00
Felipe Pena
24238c107d
encoding.csv: fix reading when there is no line ending at the end of the file (fix #22337) (#22342) 2024-09-28 17:49:40 +03:00
Felipe Pena
64eb4c4913
cgen: fix struct init field with alias to array fixed (fix #22339) (#22341) 2024-09-28 17:40:16 +03:00
Felipe Pena
f30078a21a
cgen: fix codegen for address of range (fix #18528) (#22336) 2024-09-28 17:11:59 +03:00
Felipe Pena
a6af3d514b
cgen: fix interface method call after smartcast (fix #17056) (#22335) 2024-09-28 16:20:44 +03:00
Delyan Angelov
2e0fa12261
cgen: add asm to c_reserved, fixes compilation of struct Abc { @asm int } (#22340) 2024-09-28 13:44:01 +03:00
yuyi
4a01b2cca8
checker: cleanup the checking of array method calls (#22338) 2024-09-28 13:39:08 +03:00
Felipe Pena
350846e11b
checker: add an error for returning an any value in pure V code (prevents invalid cgen) (fix #12623) (#22334) 2024-09-28 12:03:22 +03:00