19797 Commits

Author SHA1 Message Date
Delyan Angelov
86740bb0a7
examples, v.builder: fix v -cstrict -cc gcc-11 examples/sokol/particles and the same but with clang-18 too 2025-03-06 18:51:28 +02:00
Delyan Angelov
cac026aec1
v.builder: show the last line of the C compiler output, in case of errors, in addition to the truncated first lines (the last line is useful, since it usually has an error counter) 2025-03-06 17:59:07 +02:00
Delyan Angelov
f8b70b7230
parser: allow for @[has_globals] to be used for all V programs, turn the @[wasm_import_namespace] error into a notice 2025-03-06 13:20:50 +02:00
Delyan Angelov
0eb41e5e5a
GNUmakefile: fix the detection for a working tcc executable, broken in 869677a 2025-03-06 11:36:11 +02:00
Delyan Angelov
97891517e2
ci: add a limit of 20 minutes to the test-on-freebsd-14-2-x86 CI job 2025-03-06 09:01:00 +02:00
Felipe Pena
52cd6276b3
checker: add checking for comptime assign without comptime if checking (fix #23796) (#23848) 2025-03-05 21:28:14 +02:00
Felipe Pena
b60966cd10
cgen: fix interface method list ordering to make test buildable with g++ (fix #23701) (#23870) 2025-03-05 19:16:25 +02:00
Delyan Angelov
e9a4312491
examples: cleanup snek.v, by using math.vec, the builtin array support, instead of datatypes, and by removing casts that are no longer needed 2025-03-05 18:50:55 +02:00
Felipe Pena
1ba80211c2
v: implement assignable anon struct (fix #23855) (#23857) 2025-03-05 14:44:17 +02:00
Noa Santo
95f53a3308
datatypes.fsm: add missing doc comments for public methods (#23865) 2025-03-05 14:38:55 +02:00
Noa Santo
3aed78e76a
crypto: add missing doc comments for public methods (#23864) 2025-03-05 14:36:15 +02:00
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) weekly.2025.10 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