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

217 Commits

Author SHA1 Message Date
playX
2b9f993574
gg: add text rendering, keyboard event handling for JS and other fixes (#12932) 2021-12-22 12:26:52 +02:00
Miccah
d07975335d
time: add Duration.str() (#12897)
* time: add str() method to Duration

* add Duration.str tests, move time.infinite to time.v, to be visible to the JS backend

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2021-12-19 19:32:42 +02:00
Larpon
69fa87ad24
toml: add date and time checks (#12427) 2021-11-11 07:27:41 +02:00
Delyan Angelov
49ebba535e
time: implement pub fn since(t Time) Duration 2021-10-24 21:36:28 +03:00
playX
864d6eae6b
js: codegen & vlib fixes, replace the Game of Life CLI example (#12272) 2021-10-22 22:03:19 +03:00
Delyan Angelov
ef0eaeee08
ci: fix broken js tests 2021-10-19 20:05:27 +03:00
Alexander Medvednikov
45534b512b time: move pure V function from time.c.v 2021-10-19 16:03:45 +03:00
playX
d3887c1568
time: fix sys_mono_now for the JS backend (#12187) 2021-10-15 09:22:15 +03:00
Delyan Angelov
23e679475c
time: sanity check parsed date/times 2021-10-09 11:05:49 +03:00
Larpon
5541ec8670
vlib: add toml module + tests (#11964) 2021-09-24 21:13:52 +03:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Daniel Däschle
b63ec8fbcf
checker: require params attribute to use struct as keyword arguments in function (#11135) 2021-09-14 00:05:30 +03:00
Delyan Angelov
f5a22f15d9 time: fix ./v -o vcross -os cross cmd/v on macos 2021-09-06 19:50:16 +03:00
JalonSolov
b3c641f7d5
time: use &C.time_t instead of &time_t in C fn declaration (#11232) 2021-08-18 17:05:43 +03:00
playX
0121c8b4fd
v.gen.js: fix method calls and other codegen parts, rand module compiles (#11205) 2021-08-18 11:33:37 +03:00
Alexander Medvednikov
eb1ac5b30d time: use i64 in unix() 2021-08-16 06:28:54 +03:00
wilesun
18be9e52be
log: avoid using string__plus memory leak (#11128) 2021-08-11 09:26:02 +03:00
playX
70124d2d23
js: time module: implement utc,now,local (#11138) 2021-08-11 09:22:53 +03:00
playX
8d6903a65a
time: move C backend specific code into .c.v files (#11125) 2021-08-10 14:34:53 +03:00
Delyan Angelov
efa8dcf4d2
time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050) 2021-08-04 13:12:02 +03:00
shadow
66bc8bc0cb
vlib: remove many deprecated functions (#10972) 2021-07-28 09:22:19 +03:00
Delyan Angelov
29f55bdf9b time: fix V compilation for solaris 2021-07-24 11:17:54 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
Delyan Angelov
55eeb701a9
time: fix time.parse_iso8601(2037-07-23)?.add_days(181).str() == "1901-12-13 17:31:44" 2021-07-06 18:54:33 +03:00
Uwe Krüger
72358833e0
time: use Duration(C.INT64_MAX) as infinite (#10539) 2021-06-22 12:17:44 +03:00
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