Commit graph

242 commits

Author SHA1 Message Date
Delyan Angelov
3f44780be4
sync: cleanup tcc flag declarations on musl based distros like Alpine as well (#23783) 2025-02-22 14:24:55 +02:00
Delyan Angelov
7d60ce0061
sync: use #flag $when_first_existing() to cleanup vlib/sync/stdatomic/1.declarations.c.v (followup to #23780) (#23781) 2025-02-21 22:21:11 +02:00
Delyan Angelov
c5b26c441c
sync: support x86_64-alt-linux gcc paths too when tcc is used (needed for ALT Linux) 2025-02-20 17:16:24 +02:00
Delyan Angelov
3bc862dbb0
log,sync: fix macos CI failure when log.ThreadSafeLog is used explicitly in v download (#23613) 2025-01-30 11:41:23 +02:00
Delyan Angelov
791d0d30ea
v: use -check-unused-fn-args to cleanup the compiler code itself 2024-11-18 12:10:03 +02:00
Felipe Pena
af875ede92
v: do a minor optimizations on cmd/v (#22880) 2024-11-17 13:17:19 +02:00
yuyi
da3112e545
all: replace fn name '@xxx' with 'xxx' (#22506) 2024-10-12 22:17:02 +03:00
Delyan Angelov
469a532caa
sync.stdatomic: add OpenSUSE paths for libatomic 2024-09-14 21:31:57 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
Ikko Eltociear Ashimine
e1847cac9c
sync: fix typo on atomic_test.v (#22168) 2024-09-06 19:50:15 +03:00
yuyi
4bce71e12f
fmt: fix enum/struct_decl/struct_init fields with empty newlines (#22051) 2024-08-15 17:28:52 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
79ee4ae046
fmt: fix alignment of enumeration types (#21999) 2024-08-07 15:46:50 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
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