16553 Commits

Author SHA1 Message Date
Alexander Medvednikov
fc69b2fdb1
tutorials: minor vweb blog updates 2023-11-25 00:49:22 +03:00
shove
febd54b77c
checker: disallow directly indexing sumtype and interface, when using as parameters(fix #19811) (#19982) 2023-11-24 20:26:02 +02:00
Felipe Pena
90d3523a26
parser: fix infix expr handling with cast on left side of << operator (#19985) 2023-11-24 20:24:11 +02:00
Swastik Baranwal
67fabddcaf
datatypes: make Direction pub and fix and add tests for push_many (#19983) 2023-11-24 16:10:00 +02:00
Delyan Angelov
43709e9c58
tests,ci: add a retry loop for the tasks done by vlib/v/compiler_errors_test.v, to reduce false positives for alpine-docker-musl-gcc 2023-11-24 12:06:10 +02:00
Odai Alghamdi
e8ce02b50a
datatypes: add push_many for doubly and singly linked list + add insert_many for heap (#19975) 2023-11-24 09:40:08 +02:00
Kim Shrier
be544d73f3
net.openssl: correctly assign nil to reference values after the recent notice about it (#19981) 2023-11-24 09:38:05 +02:00
Turiiya
eeb8d27c6d
tools.vpm: cleanup, extract parsing into parse.v (#19979) 2023-11-24 09:36:55 +02:00
Swastik Baranwal
2884ec52de
checker: disallow casting strings to pointers outside unsafe (#19977) 2023-11-24 09:32:05 +02:00
shove
65089eee41
checker: add a qualification to array elements ref initialization checks (#19980) 2023-11-24 08:05:01 +02:00
Felipe Pena
043ebb855a
cgen: fix const array of struct initiatization on msvc (#19969) 2023-11-23 19:59:09 +02:00
Felipe Pena
9ca4c22043
cgen: fix auto str for interface struct member which implements str method (#19970) 2023-11-23 19:52:35 +02:00
shove
bb77707c19
checker: fix ref elements of an array must be initialized right away (fix #14958) (#19971) 2023-11-23 17:34:48 +02:00
Turiiya
29eda896a1
tools.vpm: fix installing of modules with conflicting names, extend tests (#19961) 2023-11-23 16:07:00 +02:00
Turiiya
fb9382833c
v.doc: fix handling of multiline doc contents (#19938) 2023-11-23 13:38:56 +02:00
Turiiya
c80515465e
docs: update deprecated blockquote highlight syntax (#19974) 2023-11-23 13:33:33 +02:00
shove
2a6c1d9074
all: assigning 0 to reference fields now requires unsafe blocks (fix #14911) (#19955) 2023-11-23 11:16:26 +02:00
Felipe Pena
9d7fe51b6e
sync: add a FreeBSD specific version of vlib/sync/sync_default.c.v (#19962) 2023-11-23 11:13:30 +02:00
☠ ✈︎
cd145b2467
tools: fix v up, by not deleting ./v when missing a .git folder (#19965) 2023-11-22 22:27:08 +02:00
shove
d577e54152
cgen: fix ref and deref when an interface is used as a function parameter (fix #19947) (#19966) 2023-11-22 15:34:43 +02:00
Turiiya
980912dc96
doc: update linebreak logic, handle "highlight-comments" (#19967) 2023-11-22 15:27:31 +02:00
shove
25e90165ea
checker: check element and its children for ref uninitialized fields (fix #19864) (#19944) 2023-11-22 15:13:36 +02:00
Joe C
7519f915ff
v2: initial move of tinyv code to main repo (#19963) 2023-11-22 07:29:03 +03:00
Alexander Medvednikov
01e6f6473b gg: set_window_title; macos img fix; gx: color fixes; strings: Builder.writeln_string 2023-11-22 03:10:34 +03:00
Felipe Pena
8cc82164d8
v: implement @[aligned] and @[aligned:8] attributes for structs and unions (#19915) 2023-11-22 01:26:45 +02:00
Turiiya
b60ef550bd
tools.vpm: add support for env variable VPM_FAIL_ON_PROMPT, to prevent getting stuck in test scenarios with conflicting module dir names (#19960) 2023-11-22 00:50:51 +02:00
Delyan Angelov
e3d306d1d2
parser: fix panic for struct field with new style @[attribute], with an enum default value after it 2023-11-21 22:45:47 +02:00
Turiiya
09ed7d74aa
vlib, tools: make minor improvements, cleanup (#19950) 2023-11-21 17:45:45 +02:00
Felipe Pena
e5fcf358b8
checker: fix anonymous enum evaluation value (part 2) (fix #19925) (#19958) 2023-11-21 17:30:52 +02:00
Kim Shrier
bbb712a42d
strconv: fix byte type to u8 type in the documented examples in format.md (#19952) 2023-11-21 14:19:24 +02:00
Turiiya
16b07a191a
szip: update CompressionLevel fields to use their named C values (#19957) 2023-11-21 14:15:57 +02:00
Turiiya
db1cdba411
sync: fix compilation of bench many_writers_and_receivers_on_1_channel.v (#19956) 2023-11-21 11:48:29 +02:00
Kim Shrier
be8e911d61
semver: replace use of .eq method with == (#19953) 2023-11-21 09:38:23 +02:00
Turiiya
f8ed96a2e0
tools.vpm: validate VCS during parsing (#19943) 2023-11-21 05:14:45 +03:00
yuyi
0966fd3b9f
cgen: fix variable name conflict, when using a C reserved name (#19942) 2023-11-20 17:58:14 +02:00
Turiiya
8c1da9ba94
net.openssl: use actual C values for the SSLError enum (#19945) 2023-11-20 17:57:35 +02:00
Turiiya
1beeb6d039
builtin: remove unused array.c.v file (#19948) 2023-11-20 17:56:54 +02:00
Felipe Pena
b66447cf11
ast: fix flagged enum value evaluation in find_enum_field_val (#19939) 2023-11-20 11:21:20 +02:00
shove
8957572e1d
checker, cgen: rename the field name inside_casting_to_str to inside_interface_deref (#19941) 2023-11-20 10:33:00 +02:00
JalonSolov
0da00cc457
v: prepare for making -W impure-v the default (#19940) 2023-11-20 09:17:59 +02:00
JalonSolov
6cc51f254f
sync,szip,term,time,x.ttf: prepare for making -W impure-v the default (#19929) 2023-11-19 18:33:07 +02:00
Turiiya
8267874d14
tools.vpm: improve version detection of installed modules (#19933) 2023-11-19 18:32:03 +02:00
shove
09c65a7213
ast, checker, cgen: fix interface embeded methods call(fix #16496) (#19936) 2023-11-19 18:30:56 +02:00
Turiiya
9e9a084cf9
tools.vpm: add output, when scanning modules in an install query (#19934) 2023-11-19 17:11:43 +02:00
Swastik Baranwal
7e280a4b61
semver: use operator overloading (#19935) 2023-11-19 16:50:12 +02:00
Delyan Angelov
4b347a8881
ci: make the report-missing-fn-doc step a bit more sensitive, and verbose in its diagnostic output for missing comments on deprecated methods/fns 2023-11-19 16:06:44 +02:00
Kim Shrier
cc220e60a5
vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
Felipe Pena
53e1e5e686
cgen: fix option sumtype auto deref (#19919) 2023-11-19 02:29:17 +03:00
Felipe Pena
976c5fba61
cgen: fix generic array initialization (fix #19903) (#19916) 2023-11-18 14:47:04 +02:00
Kim Shrier
6c73da3ffd
tests: rename byte to u8, and fix implicit clone notice in closure_generator_test.v (#19922) 2023-11-18 14:45:08 +02:00