Commit graph

227 commits

Author SHA1 Message Date
Delyan Angelov
776e7ad0b1
sync,os,thirdparty: fix cross compilation from macos to windows (#21484) 2024-05-10 22:04:52 +03:00
Delyan Angelov
937a36ac1c
sync.stdatomic: add paths for compilation with musl on Gentoo (#21400) 2024-05-02 13:51:45 +03:00
Delyan Angelov
40da0f75d8
sync.stdatomic: add flag lines for gcc 14 too 2024-04-25 17:20:21 +03:00
Delyan Angelov
07e6f2ec7b
sync: add Gentoo paths for libatomic 2024-04-25 16:52:31 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Turiiya
c086bee5be
breaking,vlib: update handling of imports whose symbols are not directly used in imported file, remove pub const is_used = 1 workarounds (#21160) 2024-04-01 22:07:05 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Delyan Angelov
d2dcf6a307
sync: support more gcc version specific search locations on linux with tcc 2024-02-26 23:05:22 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Kim Shrier
341e79fc63
sync: fix FreeBSD implementation of sync functions (#20483) 2024-01-11 12:03:34 +02:00
Bakul Shah
426bcd6972
sync: add mutex.try*lock functions for FreeBSD too (#20482) 2024-01-11 11:09:57 +02:00
kbkpbot
d7fc66f054
sync: add .try_lock() to mutex/rwmutex, add tests (#20381) 2024-01-05 15:57:04 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03: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
Turiiya
db1cdba411
sync: fix compilation of bench many_writers_and_receivers_on_1_channel.v (#19956) 2023-11-21 11:48:29 +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
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Delyan Angelov
14618a1b18
sync: use -d debug_channels instead of just -g to turn on assertions in sync.channel_select (cleaner -cross code) 2023-10-26 05:34:20 +03:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
Delyan Angelov
6fb4a481f8
log: improve the most common use case (#19242) 2023-08-31 06:44:11 +03:00
Alexander Medvednikov
428fd7f57f all: do not allow uninitialized function pointers 2023-08-03 21:06:36 +03:00
kbkpbot
fe9bdd4168
sync: make sync.Direction public (#19047) 2023-08-03 09:22:48 +03:00
Delyan Angelov
367289a1f1
sync: fix compilation on windows 2023-07-31 11:18:12 +03:00
Michael Charlton
30fc9380a1
doc: use square brackets for generics in comments (#18943) 2023-07-22 13:22:30 +03:00
Herman
af38f8b3ba
channels: refactor the channel_select function (#18711) 2023-07-02 15:45:30 +03:00
kbkpbot
632c466aa0
sync: add Mutex.destroy and RwMutex.destroy methods (#18351) 2023-06-06 14:45:12 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
yuyi
6e4dc82f28
sync: fix error of empty struct channel (fix #17556) (#17597) 2023-03-11 12:02:51 +02:00
Ahmad Yasser
6b20c57246
docs,sync: separate example code blocks with a newline (#17165) 2023-01-30 21:25:33 +02:00
MatejMagat305
a99149334c
sync.pool: fix pointer cast warning (#16902) 2023-01-08 12:34:46 +02:00
Alexander Medvednikov
868908b80d checker: require unsafe for Struct(voidptr) casts 2023-01-06 09:28:11 +03:00
Delyan Angelov
bf0c8a0d96 sync: fix compilation of V on m1 with tcc 2022-12-02 23:17:46 +02:00
yuyi
ef5be22f81
all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
yuyi
993e21e85b
checker: check fntype mismatch of struct field init (fix #16372) (#16381) 2022-11-10 20:19:19 +02:00
Alexander Medvednikov
e81e0ac708 fmt: replace go with spawn 2022-11-05 10:46:40 +03:00
shove
6ec931c781
sync: fix C.pthread_mutex_t struct typedef is missing in darwin (fix: #15491) (#15845) 2022-09-23 09:48:05 +03:00
Delyan Angelov
7e69619add
builtin, compiler: replace isnil(x) calls with x == unsafe { nil } (a little faster without -prod) (#15759) 2022-09-15 14:59:37 +03:00
shove
8b962f8446
checker: fix nested struct reference type field initialized check. (fix: #15741) (#15752) 2022-09-15 07:59:31 +03:00
yuyi
5e8f9b11c9
checker: check casting voidptr to generic struct (fix #15618) (#15626) 2022-09-01 09:22:37 +03:00
stringnick
afaab7ab4d
stdatomic: add/sub return result of op (#15235) 2022-07-27 03:21:03 +03:00
Alexander Medvednikov
9099594a49 all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
Alexander Medvednikov
caa0c2f153 vfmt: voidptr(0) => unsafe { nil } (p.1) 2022-07-21 20:46:01 +03:00
Alexander Medvednikov
819b6f475a os: remove unnecessary unsafes 2022-07-06 07:07:48 +03:00
Alexander Medvednikov
163c7ba2bb checker: stricter []&Type{len:x} check 2022-07-05 23:51:29 +03:00