Commit graph

19436 commits

Author SHA1 Message Date
Noa Santo
e467747fe4
docs: add the remaining missing doc comment, for the public wasm methods (#23863) 2025-03-05 14:23:35 +02:00
Noa Santo
ae22bcfad9
dlmalloc: add missing public method doc comments (#23866) 2025-03-05 14:22:17 +02:00
Noa Santo
16681fbd6b
docs: add missing documentation for clipboard methods (#23862) 2025-03-05 14:17:32 +02:00
Felipe Pena
7faf1bf1d9
cgen: fix casting primitive type to alias, where option alias is expected (fix #23859) (#23860) 2025-03-05 14:13:52 +02:00
Noa Santo
a74f3171db
time: add documentation for remaining time-related functions and ISO 8601 parsing (#23867) 2025-03-05 14:11:19 +02:00
Delyan Angelov
2dc5f68894
examples: add a small breakout game, supporting keyboard and touch controls (#23861) 2025-03-05 13:58:29 +02:00
larpon
9e36d2c87a
sokol, audio: link against aaudio on Android (#23869) 2025-03-05 11:50:16 +02:00
kbkpbot
698018cd3f
vrepl: fix slow response for empty line input (after just pressing 'enter/return') (fix #23856) (#23858) 2025-03-05 00:01:36 +02:00
Delyan Angelov
cec123a0df
math,examples: add examples/sokol/sounds/simple_sin_tone_using_audio_push.v, cleanup math 2025-03-04 12:19:27 +02:00
Felipe Pena
a59ebea523
checker: add missing check for generic fntype type names (fix #23453) (#23850) 2025-03-03 21:54:02 +02:00
Delyan Angelov
3e4f9d7fa1
examples: cleanup and shorten mini_calculator_recursive_descent.v to 98 lines (#23847) 2025-03-03 19:34:43 +02:00
Felipe Pena
2641a55a63
cgen: fix codegen for match on return (fix #23661) (#23851) 2025-03-03 18:52:45 +02:00
kbkpbot
f4b51d064e
os: fix get_raw_line() on windows (fix #23843) (#23846) 2025-03-03 06:55:35 +02:00
Delyan Angelov
1b136e213a
ci: fix vweb_run_at.run.out and vweb_run_at.skip_unused.run.out, ensure stable ordering of stdout/stderr for v run file.v, in case of compiling a program with warnings/notices. 2025-03-02 18:32:23 +02:00
Alexander Medvednikov
8f844ea313 veb: deprecate vweb (part 3) 2025-03-02 18:31:00 +03:00
Alexander Medvednikov
8683e634ee veb: deprecate vweb (part 2); move all vweb examples to veb 2025-03-02 14:37:20 +03:00
Felipe Pena
17fc31b746
cgen: fix nested option fixed array (fix #23708) (#23845) 2025-03-02 10:18:56 +02:00
Felipe Pena
8201b8a45f
vfmt: fix formatting for an option array of anon structs (fix #23841) (#23844) 2025-03-02 10:16:02 +02:00
kbkpbot
57a45bc353
time: add .week_of_year() method for time.Time instances (#23838) 2025-03-02 10:04:59 +02:00
Felipe Pena
05a6e557cf
json: fix json.decode autofree codegen (fix #23834) (#23839) 2025-03-02 09:52:26 +02:00
Casper Küthe
c37309f6b9
veb: fix "error parsing request: io.Eof" when expecting a request body, but the data is not ready yet (fix #22464) (#23842) 2025-03-02 09:50:50 +02:00
Delyan Angelov
4c8f8c6666
net.openssl: use proper library search path for local installations of OpenSSL 3, use SSL_get1_peer_certificate instead of the deprecated SSL_get_peer_certificate . 2025-03-02 09:39:21 +02:00
Delyan Angelov
a0e7da7481
.gitignore: ignore the project settings file for gf2 (a very nice GUI gdb frontend) 2025-03-02 09:33:39 +02:00
Delyan Angelov
dea01ffe03
examples: fix poll_coindesk_bitcoin_vs_usd_rate.v, use the new v2 API endpoint 2025-03-02 09:19:25 +02:00
Felipe Pena
95f00937bb
checker: fix MatchExpr type inferring, when none is used (fix #23831) (#23833) 2025-03-01 23:29:25 +02:00
Xyndra
f7e062c91a
log: remove the notice about the stdout -> stderr migration (#23837) 2025-03-01 23:27:22 +02:00
Delyan Angelov
cb3b980379
tools: make v install avoid using --filter=blob:none --shallow-submodules --also-filter-submodules on windows (#23840) 2025-03-01 19:23:54 +02:00
Felipe Pena
2cd1f6e924
checker: add missing check for IfExpr and MatchExpr with no valid type (#23832) 2025-03-01 14:08:24 +03:00
Alexander Medvednikov
f83af8a1a2 veb: deprecate vweb (part 1); update the blog tutorial 2025-03-01 03:34:16 +03:00
Felipe Pena
8dbde185ef
checker: add option type inference on if expr (implement most of #23827, except the error for v := if c { none } else { none }) (#23829) 2025-02-28 22:36:28 +02:00
Felipe Pena
80477e3acf
cgen: fix array fixed assignment for @[keep_args_alive] (partial fix for #23804) (#23805) 2025-02-28 22:15:06 +02:00
Felipe Pena
1601de1b78
v: fix anon struct option support (fix #23789) (fix #23824) (#23830) 2025-02-28 22:02:42 +02:00
Delyan Angelov
5f5e48ea53
cgen: fix regression, preventing the use of -gc none -d no_main -no-builtin -no-preludes to compile C style V programs 2025-02-28 06:26:52 +02:00
Delyan Angelov
c17c0e16c4
builtin: declare fn C._vinit/2 and fn C._vcleanup/0 (continuation from #23812) (#23820) 2025-02-28 05:23:48 +02:00
kilavvy
8aef3c72b4
all: fix typos in documentation files (#23822) 2025-02-28 02:42:55 +03:00
Delyan Angelov
ff93ccb29d
ci,os: fix bootstrapping with -os cross -o vc/v.c (avoid the generic calls in the new write_u8 and read_u8) 2025-02-27 13:59:28 +02:00
Delyan Angelov
9f5a1b8b4a
os: add File.write_u8/1 and File.read_u8/0 helper methods 2025-02-27 13:40:40 +02:00
kbkpbot
675fe14cbb
strconv: fix strconv.atof64() inconsistency with the other .ato functions; make it return an error by default, when it detects an extra non number character after a number (#23815) 2025-02-27 08:31:59 +02:00
Delyan Angelov
62cbc8befe
ci: move test in pe_test.v to native_test.v (both used -b native, competing the creation of the backend executable => CI failures on the gcc-windows job) 2025-02-27 07:23:44 +02:00
Pasha Radchenko
5c4f7ca871
tests: add missing license info for reserved_keywords_as_struct_field_test.v (#23817) 2025-02-27 02:16:28 +02:00
kbkpbot
370ba448dd
os: fix buffer overflow in os.get_raw_line under Windows (#23816) 2025-02-27 01:09:34 +02:00
Delyan Angelov
a1f7213de0
sokol: allow for v -os wasm32_emscripten -o examples/tetris/tetris.html examples/tetris/ (avoid using -sMODULARIZE) (#23814) 2025-02-26 11:51:33 +02:00
Delyan Angelov
94f0f6d93b
cgen,checker: allow for pub type C.HINSTANCE = voidptr, being used in @[export: "wWinMain"] fn mymain(x C.HINSTANCE, xprev C.HINSTANCE, lpcmdline &C.WCHAR, cmdshow int) int { in module no_main programs (#23812) 2025-02-26 11:05:11 +02:00
Kim Shrier
c826923b16
cli: fix minor typo (#23811) 2025-02-26 09:04:39 +02:00
Delyan Angelov
9b8a1607ed
math.big: add vlib/math/big/big_division_test.v (follow-up to 270941a) 2025-02-26 05:25:51 +02:00
Delyan Angelov
270941a6bd
math.big: bump newton_division_limit to 1_000_000 (workaround issue #23806) 2025-02-26 04:54:01 +02:00
Eliyaan (Nopana)
c9bec82033
native: fix unsigned and signed int comparison (#23808) 2025-02-26 03:52:37 +02:00
Hitalo Souza
c349381aa5
x.json2.decoder2: improve string tests (#23809) 2025-02-26 03:49:04 +02:00
larpon
4f98fe982c
math.vec: add rotate_around_* (cw/ccw) functions to vec.Vec2[T] (#23807) 2025-02-26 03:46:18 +02:00
Felipe Pena
537605a058
checker: fix map when casting to interface (fix #23790) (#23799) 2025-02-25 16:42:23 +02:00