Commit graph

18563 commits

Author SHA1 Message Date
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 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
yuyi
372a4021fc
checker: check arguments mismatch of array.sorted_with_compare() (fix #22327) (#22328) 2024-09-27 18:51:30 +03:00
Felipe Pena
2afce42fc7
cgen: fix codegen for interface method call which returns a fixed array (fix #22326) (#22331) 2024-09-27 17:32:53 +03:00
Delyan Angelov
6ba87b948a
math.big: fix a + b and a - b, when the signs are different, add more test cases (#22330) 2024-09-27 17:13:39 +03:00
yuyi
2db53a4bf0
cgen: cleanup in gen_array_insert()/gen_array_prepend() (#22325) 2024-09-27 11:48:52 +03:00
yuyi
c7bdc0a781
cgen: fix aliases of array insert(...)/prepend(...) (fix #22323) (#22324) 2024-09-27 07:41:13 +03:00
Delyan Angelov
765b88f9f2
tests: skip ecdsa_test.v on windows and on tests-sanitize-memory-clang (since it needs OpenSSL) 2024-09-27 07:32:13 +03:00
Felipe Pena
1cac0c3ce1
cgen, checker: fix array fixed return type for interface methods (#22320) 2024-09-27 02:26:04 +03:00
Swastik Baranwal
861bbe68f2
checker: disallow infix exper on left side of assign (#22322) 2024-09-27 02:25:17 +03:00
Alexander Medvednikov
c9a79ea026 bench: crypto/ecdsa.v 2024-09-26 22:36:23 +03:00
Alexander Medvednikov
f7cc9d5daa crypto: ecdsa module (on top of openssl) 2024-09-26 22:30:07 +03:00
Alexander Medvednikov
9c0a7e7955 json: support null sum types in decode() 2024-09-26 19:39:38 +03:00