18061 Commits

Author SHA1 Message Date
Delyan Angelov
2875086717
tools: make v where ignore .git/ folders (they contain binary files); let -dir . work recursively, so that -dir vlib works 2024-08-10 20:23:22 +03:00
yuyi
b8435ba6db
fmt: cleanup fields alignment (#22018) 2024-08-10 15:44:49 +03:00
Delyan Angelov
721b6a9142
veb: change example description, to avoid repetitive wording (ease debugging of issue#22017) 2024-08-10 08:53:46 +03:00
Felipe Pena
ed3acac302
all: allow multi return as fn argument (#21991) 2024-08-09 20:47:57 +03:00
Delyan Angelov
4f718d25fb
examples: change // to blank line in 2048.v too, after 793b66d 2024-08-09 14:57:56 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
Delyan Angelov
793b66d8d5
scanner: guard against scanner panic, discovered by fuzzing in PR#22016 2024-08-09 14:54:21 +03:00
Ivan Vatlin
c0bb9605c0
time: d,c,dd,ddd,dddd pattern support for parse_format() (#22003) 2024-08-09 13:27:15 +03:00
yuyi
6e2ae7c2ed
ast, parser, fmt: cleanup fmt of struct fields with empty line (#22014) 2024-08-09 06:40:02 +03:00
yuyi
5baad3a3a9
ast, parser, fmt: fix fmt of enum fields with empty line (#22015) 2024-08-09 06:38:58 +03:00
kylepritchard
be1bb60110
parser: update @include in templates, to work with relative paths & prevent recursive calls (#21943) 2024-08-08 22:41:09 +03:00
yuyi
eeea67067a
fmt: fix enum fields with one empty line (#22007) 2024-08-08 21:51:38 +03:00
Delyan Angelov
74e40c5d0c
cgen: reduce indentation level for generated defer statements 2024-08-07 22:01:14 +03:00
CoderMuffin
2d86c34eac
cgen: fix generation of closures from methods on aliases (#22004) 2024-08-07 21:45:20 +03:00
Felipe Pena
3833908511
cgen: fix array.map with closure var fn (#22002) 2024-08-07 21:31:29 +03:00
Coachonko
258aed44fe
hash: add more methods to the hash.Hash interface, to match the ones in Go (#22001) 2024-08-07 19:53:57 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
3247b98bb5
ast: fix const field str() (#21998) 2024-08-06 17:42:24 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) weekly.2024.32 2024-08-05 20:23:39 +03:00
dasidiot
576a0abcc7
net: add net.Dialer and net.Connection interfaces, abstracting the different types of connections, already supported by the V network stack (#21657) 2024-08-05 18:16:06 +03:00
Kim Shrier
49f5ebf717
libgc: update libgc to commit 6d372272 (#21822) 2024-08-04 21:16:08 +03:00
Martin Skou
44d2647e2d
parser: document that @@ can be used to represent a literal @ in $tmpl() templates (#21983) 2024-08-03 22:34:28 +03:00
Coachonko
1a8eff8d2b
hash: make public the hash.Hash interface, add tests to current implementers (#21984) 2024-08-03 19:52:39 +03:00
Delyan Angelov
e906033e4e
ci: use docker compose instead of docker-compose (see https://github.com/orgs/community/discussions/116610) (#21992) 2024-08-03 19:50:52 +03:00
larpon
10b031b2cc
examples: make rotating_textured_quad.v compile and run on Android (#21987) 2024-08-03 17:37:26 +03:00
Swastik Baranwal
06cf796b21
checker: add support for static methods in @FN and @METHOD (#21990) 2024-08-03 17:36:35 +03:00
Delyan Angelov
3ca5bc3bcd
term, term.termios: update fn C.ioctl declaration (#21982) 2024-08-02 18:03:13 +03:00
Delyan Angelov
71aa3a463d
sokol.audio: fix ./v -cc clang-18 -gc none simple_bytebeat.v (the audio depends on threads) 2024-08-02 10:38:54 +03:00
Delyan Angelov
d94473e1d4
tests, tools: add short command tests in v test-all, to ensure -d trace_http_request and -d trace_http_response do not regress (#21981) 2024-08-02 01:17:39 +03:00
Delyan Angelov
faea2d97bf
net.http: fix a typo, affecting -d trace_http_response 2024-08-02 00:01:14 +03:00
Coachonko
a4b8768146
crypto.cipher: make Stream.xor_key_stream implementers require a mutable receiver (#21974) 2024-08-01 16:04:09 +03:00
Swastik Baranwal
485983ebd2
checker: disallow static fn call when receiver type is unknown (#21970) 2024-08-01 15:33:25 +03:00
tcn
2d43f38bf3
x.json2, toml: add support for Any in decode_struct, encode_struct and to_any (#21972) 2024-08-01 15:26:09 +03:00
Delyan Angelov
28103d15d5
thirdparty: fix GC_suspend_handler_inner in gc.c after cca6755 2024-08-01 15:01:14 +03:00
Delyan Angelov
cca6755d28
thirdparty: patch thirdparty/libgc/gc.c to make -cc gcc-11 -cstrict pass in more cases 2024-08-01 11:11:27 +03:00
Delyan Angelov
0b3853683b
examples: add a simplified bytebeat player to show how to use sokol.audio, and that does not depend on gg 2024-08-01 11:08:57 +03:00
Delyan Angelov
aa07eafb5f
examples: cleanup melody.v even more 2024-08-01 09:49:57 +03:00
Delyan Angelov
ab8f1ba21b
examples: cleanup & fix the sound produced by melody.v, to be like the original https://www.youtube.com/watch?v=V4GfkFbDojc 2024-08-01 09:37:17 +03:00
Delyan Angelov
da5dc8bb22
examples: cleanup obsolete unsafe{} usages in examples/sokol/sounds 2024-08-01 09:10:02 +03:00
Delyan Angelov
fdd0dab1c3
stbi: change Image.data from voidptr to &u8, to reduce casts (#21977) 2024-08-01 09:02:38 +03:00
larpon
ef0457d6e3
sokol: update to match upstream at c0e0563 (#21971) 2024-08-01 01:44:50 +03:00
Delyan Angelov
d43f0e457c
gg: add an optional size: parameter to the .draw_pixels and .draw_pixel methods (defaults to 1.0) 2024-07-31 21:54:53 +03:00
Delyan Angelov
340535fe06
docs: add more C interop notes and examples (#21965) 2024-07-31 16:02:55 +03:00
Delyan Angelov
007f76f05e
ci: fix tmpl_test.v 2024-07-31 15:12:10 +03:00
Alexander Medvednikov
c4a434bd7f tmpl: fix an extra newline in @for; builtin: some i64 fixes 2024-07-31 13:30:30 +03:00
Coachonko
55f4412e5a
x.crypto.chacha20: make Cipher struct public (fix #21967) (#21968) 2024-07-31 10:20:31 +03:00
Delyan Angelov
2366582528
gg: deprecate gg.DrawImageConfig.rotate, in favor of gg.DrawImageConfig.rotation, improve the documentation comments (#21963) 2024-07-30 17:45:57 +03:00
Delyan Angelov
f676daceb5
vlib: fix C warnings/errors for v -show-c-output -cstrict -cc clang-18 run examples/gg/additive.v 2024-07-30 17:15:15 +03:00
Swastik Baranwal
4b0a35a0c1
checker: check if a parent generic struct has concrete types or not (#21962) 2024-07-30 16:56:53 +03:00
Delyan Angelov
4e6f6164ed
gg: change the type of gg.DrawImageConfig.rotate from int to f32 2024-07-30 16:16:04 +03:00