18438 Commits

Author SHA1 Message Date
Delyan Angelov
f98e9d5757
examples: remove the setting of font_path from drag_n_drop.v and quadtree_demo.v (make them portable to Android + setting the font does not matter, for their goal) 2024-09-22 20:58:17 +03:00
Delyan Angelov
cfa91d81d7
examples,os: add an os.asset module, use it to simplify code in examples/, by removing $if android { checks (#22281) 2024-09-22 16:04:05 +03:00
Einar Hjortdal
64d1770cf1
io: add a BufferedWriter and supporting methods (#22265) 2024-09-22 15:57:46 +03:00
Delyan Angelov
295807d7ef
net: use explicit int casts for net.error_eintr etc in the unix implementation too for consistency with the windows one 2024-09-22 15:28:20 +03:00
Delyan Angelov
2f59018a96
net: fix compilation on windows (use casts to int for net.error_eintr etc) 2024-09-22 15:22:26 +03:00
Felipe Pena
635a0c6658
cgen: fix codegen for alias to charptr passed as ptr (fix #9679) (#22271) 2024-09-22 08:29:56 +03:00
Carlos Esquerdo Bernat
3115796756
parser: fix .${var} used in a template, compiled by $tmpl() (fix #22231) (#22270) 2024-09-22 08:22:24 +03:00
larpon
59d5115483
examples: make gg/stars.v run on android (#22276) 2024-09-22 08:02:14 +03:00
larpon
d139e56ca7
examples: make gg/rectangles.v Android friendly (#22275) 2024-09-22 08:00:41 +03:00
Felipe Pena
1233858488
json: fix json encode/decode with embed support (#22277) 2024-09-22 07:54:22 +03:00
Jacob Davis
3ec4939506
net.websocket: use retrying on EINTR in Client.listen() (#22279) 2024-09-22 07:48:53 +03:00
larpon
1e1bc1046a
examples: add gc_is_enabled() check to 2048 to prevent crash in Android emulator (#22274) 2024-09-22 07:41:26 +03:00
Delyan Angelov
33073407c6
Revert "ci: fix failures in vab_ci.yml (#22267)"
This reverts commit 7af312c542b2849e40b7e382402a194aefad5a29.
2024-09-21 20:04:55 +03:00
Einar Hjortdal
5e624a5b23
crypto.rand: add support for convenient generation of a random big integer in the interval [0, n) (#22266) 2024-09-21 15:58:10 +03:00
Felipe Pena
8ae627ff79
cgen: fix C name mangling with inherited closure vars (fix #22262) (#22263) 2024-09-21 09:07:58 +03:00
Felipe Pena
651a116159
json: fix decoding of structs with embeds (#22264) 2024-09-21 09:01:11 +03:00
Delyan Angelov
7af312c542
ci: fix failures in vab_ci.yml (#22267) 2024-09-21 08:33:48 +03:00
Felipe Pena
c866e375e2
cgen: fix code for C ident when ptr is expected (#22259) 2024-09-20 11:24:03 +03:00
vlang-bot
9a0f4d8461 tools: make fast.v and fast_job.v more self sufficient 2024-09-19 13:51:27 +03:00
vlang-bot
24088a7ca4 tools: make fast_job.v more robust (setup a custom PATH) and informative on fast.v failures (compile it with -g) 2024-09-19 12:22:42 +03:00
yuyi
1f0a6337ce
ci: restore format v-analyzer job in v_apps_and_modules_compile_ci.yml (#22258) 2024-09-19 11:48:17 +03:00
yuyi
63957f248d
strconv: cleanup format_fl()/format_es() (#22257) 2024-09-19 04:49:39 +03:00
Alexander Medvednikov
7514783d83 checker: a much better and detailed unmatched fn arg error 2024-09-19 04:49:14 +03:00
Meng Zhuo
263ba23256
cgen: fix wrong type of vint_t and const riscv64 (#22251) 2024-09-18 19:23:22 +03:00
Laurent Cheylus
65504aeb8a
thirdparty: fix compilation of programs using miniz.h on OpenBSD (#22254) 2024-09-18 19:22:32 +03:00
Laurent Cheylus
5f6015fd16
docs: improve format in the conditional compilation section (#22248) 2024-09-18 17:07:33 +03:00
Laurent Cheylus
ea4bac0340
v.builder: enable LTO for clang on OpenBSD (#22247) 2024-09-18 16:54:34 +03:00
yuyi
fca336c895
strconv: fix format_fl()/format_es() (fix #13210) (#22244) 2024-09-18 16:54:09 +03:00
Felipe Pena
13fdc724a7
docs: comptime method params (#22252) 2024-09-18 16:53:16 +03:00
Meng Zhuo
c5837e4f89
builtin: drop C in int.v (#22245) 2024-09-18 16:52:19 +03:00
Laurent Cheylus
94a412dcc8
docs: add FreeBSD in cross compilation section (#22249) 2024-09-18 16:51:38 +03:00
Alexander Medvednikov
c0f7244654 veb: make implicit context work with custom user types 2024-09-18 06:30:47 +03:00
Alexander Medvednikov
c11b1f8bd1 examples: fix type in veb_example.v 2024-09-17 23:00:11 +03:00
Felipe Pena
1187e1367c
all: add comptime support for traversing the method parameters with $for arg in method.params { (#22229) 2024-09-17 20:13:07 +03:00
yuyi
15bf8222b9
flag: fix parse_bool_value() with different order short args (fix #22176) (#22242) 2024-09-17 20:07:23 +03:00
Felipe Pena
97c9f5f9e4
json: allow passing an anon struct as a decode type (#22228) 2024-09-17 15:33:17 +03:00
Delyan Angelov
0c8ce3bcb9
tests: run v fmt -w over *.vv, when the semantics are the same; unify style; discover fmt bugs, to be filed separately (#22241) 2024-09-17 15:21:10 +03:00
Swastik Baranwal
5f495e23a4
checker: check for duplicate interface names in the implements parts of struct declarations (#22230) 2024-09-17 10:02:01 +03:00
yuyi
acf6b344f7
fmt: fix formating a file in an oscillating manner (fix #22223, fix #22026) (#22232) 2024-09-17 09:47:38 +03:00
Alexander Medvednikov
c004d0c899 examples: migrate vweb examples to veb 2024-09-17 09:15:07 +03:00
Delyan Angelov
f53b5d737f
thirdparty: update libatomic_ops to commit cc9bc49 from https://github.com/ivmai/libatomic_ops/ (#22235) 2024-09-16 21:20:42 +03:00
Laurent Cheylus
c3b55a68a5
builtin: fix compilation with tcc on OpenBSD using libgc (#22234) 2024-09-16 17:02:30 +03:00
Delyan Angelov
65e2834347 v.pkgconfig: fix parser, when includedir= lines, had trailing spaces (fix -d use_openssl for openssl 3.3.2 installed through brew on macos) 2024-09-16 16:47:49 +03:00
Swastik Baranwal
0fb95a8ff8
checker: suggest using the @[_allow_multiple_values] attribute, when declaring enums that have duplicate values (#22224) 2024-09-16 08:16:39 +03:00
yuyi
b1ffa4ecf1
ast, parser, checker: check struct implements non interface type (fix #22200) (#22218) 2024-09-16 08:06:41 +03:00
yuyi
ca5f47a966
builtin: cleanup string trim()/trim_left()/trim_right() (#22225) 2024-09-15 20:05:42 +03:00
Laurent Cheylus
9b88dc8deb
GNUmakefile: do not try to check how tcc is working, when thirdparty/tcc/tcc.exe is not present (#22226) 2024-09-15 20:05:01 +03:00
Delyan Angelov
deb7ddd9d0
ci: disable macos for now in wasm_backend_ci.yml, until github runners for it, can resolve again the get.wasmer.io domain (#22227) 2024-09-15 20:03:32 +03:00
Kim Shrier
83a015b940
crypto.scrypt: add missing comment of source for test vector (#22222) weekly.2024.37 2024-09-15 15:20:30 +03:00
Delyan Angelov
c2788f9793 thirdparty: fix compilation of thirdparty/mbedtls with tcc on macos m1 2024-09-15 15:00:27 +03:00