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

4433 Commits

Author SHA1 Message Date
289974dd15 rand: use time microseconds too in default rand initialization; generate proper uuid_v4 2020-07-24 14:33:58 +03:00
c429fa7e27 rand: add test for rand.uuid_v4() 2020-07-24 14:01:48 +03:00
bba0edf9a3 rand: add rand.uuid_v4() 2020-07-24 13:59:24 +03:00
bfca55b87a examples: fix v build-examples 2020-07-24 13:29:47 +03:00
8c4429c875 parser: fix passing the is_mut flag of anon fn arguments 2020-07-24 11:27:56 +03:00
d204c926a8 tests: fix compilation of if_smartcast_test.v 2020-07-24 10:30:22 +03:00
04ef2a2671 os: implement os.system for iOS and uncomment the $if ios blocks (#5947) 2020-07-24 10:17:32 +03:00
921b5cddd0 live: fix compilation 2020-07-24 08:45:28 +03:00
d31142ac3e vfmt: fix compilation after the more strict mutability check 2020-07-24 08:43:18 +03:00
d83e2ee330 websocket: fix compilation after the more strict mutability check 2020-07-24 08:41:14 +03:00
346cc5ca2c term: fix panic in term.header, when cols,rows from get_terminal_size are < 2 2020-07-24 08:34:39 +03:00
c2083203b3 v.util: fix util.emanager.set_support_color 2020-07-24 08:31:05 +03:00
ec443c65a8 tests: fix some tests 2020-07-24 01:55:55 +02:00
d2675b89c0 builtin: fix a mutable var on windows 2020-07-23 23:18:45 +02:00
632e27a4a9 all: fix a big mutability bug and update all mutable vars 2020-07-23 23:16:36 +02:00
32c1042ac6 parser: disable the duplicate import check for now 2020-07-23 22:20:00 +02:00
653d40bfe8 parser: do not duplicate table imports 2020-07-23 21:59:48 +02:00
b7bdb97f7d term: fix crash in header when divider.len < 2 (#5956) 2020-07-23 18:54:29 +02:00
b537d8e23e parser: comp for attrs array (#5903) 2020-07-23 17:19:37 +02:00
7a4c27bd08 log: add flush to log file (#5942) 2020-07-23 08:02:53 +03:00
36352085ae v: add support for iOS crosscompilation (#5943) 2020-07-23 07:58:44 +03:00
0f98445f7f cgen: properly handle more multi-return edge cases (#5933) 2020-07-23 00:39:19 +02:00
6586a9a657 fmt: give braced sub expressions a higher priority (#5941) 2020-07-23 00:32:34 +02:00
37c6f6ab1b vfmt: fix compilation with -prod 2020-07-22 21:43:20 +03:00
276c1de190 unsafe: tag with unsafe{} some more pointer manipulations 2020-07-22 21:42:51 +03:00
949ed90b51 utf8: fix a panic in utf8.len("pippo"), mark with unsafe{} direct pointer manipulations 2020-07-22 21:15:27 +03:00
4096432a1d cli: prevent need for unsafe block (#5937) 2020-07-22 20:53:49 +03:00
938e71b468 v: fix for import cli { Command } 2020-07-22 20:33:43 +03:00
ee349691f9 v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00
d46a89b90d parser/checker/fmt: optimize scope lookups by storing object with ident & add if expr smartcast support to vfmt (#5935) 2020-07-23 02:10:31 +10:00
ebbc7bd471 examples: fix crash when running examples/ws/client.v outside of valgrind 2020-07-22 18:42:57 +03:00
b0d76c59f7 websocket utf8: move utf8 functions from websocket to encoding.utf8, add utf8_test.v (4/4) (#5924) 2020-07-22 18:36:24 +03:00
635c99e2ed ws: obtain port when not specified (#5922) 2020-07-22 17:35:30 +03:00
0d8ebf5845 websocket: use log instead submodule logger (1/4) (#5921) 2020-07-22 17:31:22 +03:00
0f72328d1f cgen: minor generated C source format fix 2020-07-22 17:27:37 +03:00
f09e14a2b9 csv: cleanup reader_test.v 2020-07-22 17:26:26 +03:00
1476602f99 builder: pass define flags to msvc (#5931) 2020-07-22 17:24:12 +03:00
a370dd2867 cgen: further fixes to and array/map of fns (#5916) 2020-07-22 02:30:44 +02:00
c3a2e9b5c4 cgen: fix sum type assignment with pointers (#5868) 2020-07-22 02:28:49 +02:00
f4251dded0 checker: suggest using := when assigning to undefined variable (#5911) 2020-07-21 19:49:53 +03:00
8b930b4888 builder: measure msvc execution too 2020-07-21 19:45:50 +03:00
14fd7d93ca v.pref: fix v build file.v 2020-07-21 19:36:58 +03:00
6dd1494008 encoding.base64: use fixed static arrays for the ending_table and index consts 2020-07-21 17:56:19 +03:00
4cb9e651a6 vfmt: fix sizeof(C.Type) 2020-07-21 16:28:30 +03:00
e1eb9c4ff1 vfmt: fix x := *&int(ptr) 2020-07-21 15:58:17 +03:00
35df792c05 vfmt: fix #include "@VROOT/path/x.h" 2020-07-21 14:26:49 +03:00
8f23accc4e time: add .format_ss_milli and .format_ss_micro methods 2020-07-21 11:58:33 +03:00
0af415fa28 vlib: add unsafe{} wrappers to C. fn calls, to allow compiling with -prod again 2020-07-21 09:05:31 +03:00
6dbc143d67 websocket: move ws example to examples folder (#5875) 2020-07-21 00:55:58 +02:00
303b65c0b9 roadmap: io streams 2020-07-20 22:51:17 +02:00