1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

192 Commits

Author SHA1 Message Date
Uwe Krüger
3f5aa5e634
sync: make Semaphore.*wait() robust against interrupts by signals (#10491) 2021-06-18 12:44:18 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
Enzo
df2b688337
checker: cleanup type alias pascal case check (#10217) 2021-05-27 22:40:32 +03:00
Delyan Angelov
f1174daabd
time: remove err_invalid_8601 = error() const, use a const string instead 2021-05-18 12:32:09 +03:00
Delyan Angelov
7c664de8aa time: fix macos job (building V with -cflags --Werror) 2021-04-05 22:32:33 +03:00
Delyan Angelov
291a88bc62
ci: fix some of v test-cleancode 4 2021-04-05 21:39:32 +03:00
Delyan Angelov
cc8948efcf time: fix compilation on macos 2021-04-05 15:31:29 +03:00
Delyan Angelov
82de973ee6
time: run vfmt 2021-04-05 10:25:02 +03:00
Delyan Angelov
c58b4cb1da
ci: fix v -cc clang-11 -cflags -Werror cmd/v 2021-04-05 10:23:58 +03:00
Delyan Angelov
4cde74f120
checker: make the compiler stricter when checking pointers 2021-04-05 10:02:47 +03:00
Alexander Medvednikov
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
AAAA
043f6420f7
time: extend date str formats (#9543) 2021-04-01 13:04:59 +03:00
Ekopalypse
1b7fd2cf00
time: fix time offset (#9449) 2021-03-27 17:34:34 +02:00
Alexander Medvednikov
bb5958991c checker: warn about automatic (de)referencing; freetype: compilation flag fixes 2021-03-26 11:42:51 +03:00
Alexander Medvednikov
1590783f02 Revert "time: use .c.v for files that use C. functions (#9447)"
This reverts commit 5d8b9b0151.
2021-03-25 07:35:34 +03:00
zakuro
5d8b9b0151
time: use .c.v for files that use C. functions (#9447) 2021-03-24 20:15:17 +02:00
Lukas Neubert
1b572f75e8
fmt: minor array wrap improvement (#9420) 2021-03-22 23:06:12 +01:00
Delyan Angelov
517c1841c1
time: fix .sleep() with -gc boehm 2021-03-20 16:24:46 +02:00
joe-conigliaro
2d73411396
checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
Enzo
3e5a0dfc94
time: minor cleanup of operators (#9097) 2021-03-03 23:56:14 +01:00
Alexander Medvednikov
e6b4f9ff09 time: fix sleep() on windows 2021-02-27 20:53:27 +03:00
Alexander Medvednikov
3a2d696fac time: time.wait() => time.sleep() 2021-02-27 20:41:06 +03:00
zakuro
ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) (#8853) 2021-02-21 17:05:03 +02:00
Swastik Baranwal
ad162cd6fc
checker: stricter unknown type checks, show better suggestions (#8816) 2021-02-19 11:23:13 +02:00
Nick Treleaven
ea803113c3
checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
Swastik Baranwal
7ec116d588
all: only allow defining == and < and auto generate !=, >, >= and <= (#8520) 2021-02-03 15:18:38 +01:00
zakuro
e30e794884
checker: add check for using a private const in another module (#8501) 2021-02-03 10:17:13 +02:00
Lukas Neubert
d660f2cc6f
fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
yuyi
1be7cc14d3
checker: check duplicate of a const name (#8396) 2021-01-28 18:34:55 +01:00
Lukas Neubert
75d85403a6
fmt: better ternary concat wrapping (#8379) 2021-01-28 11:23:48 +01:00
Delyan Angelov
dbaccd4272
vfmt: shorten main.const_name to just const_name 2021-01-25 20:57:33 +02:00
Delyan Angelov
728344ff65
ci: fix v test-cleancode 2021-01-25 12:55:01 +02:00
Alexander Medvednikov
8bcb6c10cc checker: remove duplicate const error; fmt: force full path to consts 2021-01-24 10:01:13 +01:00
Lukas Neubert
8b61891348
fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
Daniel Däschle
dbf84520f1
all: update assoc syntax (#8274) 2021-01-22 23:24:48 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Delyan Angelov
2677fcdf0c
time: add some tolerance for windows's minimum 1ms sleep resolution 2021-01-17 19:16:08 +02:00
Delyan Angelov
349eb95a28
time: comment .local() in time_windows.c.v too 2021-01-13 21:27:30 +02:00
crthpl
70ad49e186
time: complete doc (#8070) 2021-01-13 16:30:54 +02:00
zakuro
33694665f0
fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
yuyi
a1c67232d0
checker: fix duplicate variable name (fix #265) (#7982) 2021-01-10 21:41:29 +01:00
Swastik Baranwal
8f4238e76a
time: use operator overloading for >= and <= (#8009) 2021-01-10 21:05:05 +01:00
Swastik Baranwal
7c290a7fe8
time: use operator overloading (#7882) 2021-01-05 12:43:34 +02:00
yuyi
52521554ce
time: fix parse_iso8601 on windows (#7853) 2021-01-04 18:26:21 +02:00
Alexander Medvednikov
13f16b4a82 time: rename to_local_time() to local(); time.offset() 2020-12-26 02:10:47 +01:00
Delyan Angelov
270ba07e83 clipboard: add a clipboard.x11 submodule, use it by default; add a clipboard.dummy for solaris 2020-12-25 19:34:21 +02:00
Lukas Neubert
8cd74df2f3
vfmt: keep UnsafeExpr linebreacks as set by developer (#7558) 2020-12-25 16:52:16 +02:00
spaceface
214290d55b
fmt: add a space around single-line unsafe expressions (#7505) 2020-12-23 19:13:42 +01:00
Lukas Neubert
304aafdc50
fmt: add a space after + operator/method overload (#7453) 2020-12-21 21:20:00 +02:00
zakuro
c639dd03d0
time: move - operator to operator.v (#7433) 2020-12-21 09:28:00 +01:00