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

145 Commits

Author SHA1 Message Date
a74cbf55c7 checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
74d70b8719 all: more cached moduels fixes 2020-07-18 13:49:03 +02:00
7ab6899538 builtin: fix compilation (part 1) 2020-07-18 11:17:29 +02:00
38e5569503 all: cached modules fixes 2020-07-18 11:15:44 +02:00
105a0e015e checker: warn if unsafe method called outside unsafe block (#5863) 2020-07-17 19:14:12 +02:00
f5e6a83a05 builtin: unsafe vlib pointer indexing (#5836) 2020-07-15 21:56:50 +02:00
df45488e09 cgen: fix warnings (#5820) 2020-07-14 00:16:31 +02:00
59df2db4e0 ci: disable C++ test for now 2020-07-11 15:36:08 +02:00
ab3c1f2a08 prealloc: skip frees for now 2020-07-11 13:22:18 +02:00
649821be4c all: use v_realloc 2020-07-11 12:37:54 +02:00
0b49e4db1c v/checker.v: disallow pointer arithmetic for InfixExpr outside unsafe {} (#5640) 2020-07-03 18:10:10 +02:00
1848eb0973 cgen,map: fix leaks in keys() and for x in y 2020-06-27 17:00:27 +02:00
58763ff299 map: remove unused get2() and get3() 2020-06-27 13:58:07 +02:00
3bb6b6c8b2 map: comments and renaming 2020-06-24 23:31:19 +02:00
67d9d94fb3 map: fix m[a]++ etc 2020-06-24 20:41:26 +02:00
7f225f2eaa map: rename size to len 2020-06-21 16:51:02 +02:00
076089d3c5 checker: apply stricter type checks to function args and return types 2020-06-01 21:15:59 +02:00
013fdb8a4b checker: restrict numeric promotions to cases where no data is lost 2020-05-27 05:42:48 +02:00
64173c792f builtin: map: fix memory leak 2020-05-26 17:59:52 +02:00
8ea0c812a2 builtin: map.clone() 2020-05-26 01:52:06 +02:00
7f4cf08516 parser: check (mut f Foo) syntax 2020-05-17 13:51:18 +02:00
85763d0539 map: faster get and exists 2020-05-09 12:42:01 +02:00
f638caef39 compiler: v -autofree can now compile itself 2020-05-06 19:03:51 +03:00
f27fd63f8c builtin: map: one voidptr for all values 2020-05-04 14:56:19 +02:00
f6d74c8a37 checker: error on ternary if type mismatch 2020-04-30 09:32:29 +02:00
18faaefe82 map: get: remove malloc and memcpy 2020-04-27 13:27:33 +02:00
620fc962d7 builtin: use single line imports, to make analysis easier 2020-04-26 08:06:39 +03:00
b288ecb795 cgen: add map string generation 2020-04-22 04:00:38 +02:00
e247690fe1 map: fast_string_eq and improved comments
* improved comments and fast_string_eq
* make it pass CI
* enumerate traits
* Add parameter back
* remove space
* remove parameter
* Allow bootstrap compilation in one step with old vc (add new_map/2 shim).
2020-04-12 15:10:06 +03:00
bf20b01586 map: fix map_test.v error 2020-04-09 03:57:08 +02:00
7406abe3b6 map: use strcmp and update wyhash 2020-04-08 00:02:15 +02:00
a30d292385 map: fix leaksfree fix (#4254) 2020-04-05 23:31:53 +02:00
307daacf67 depgraph/map: fix memory bug 2020-04-05 22:09:52 +02:00
440f1cf4c6 map: remove old get methods 2020-04-04 14:22:39 +02:00
01aa2b86f5 array, map: cast voidptr to byteptr 2020-04-02 15:31:44 +02:00
718819eb7a map/scope/checker: update just var type & ret zero in map.get3 2020-03-29 00:00:28 +11:00
2e29e09b1b cgen: fix map_get: use zero value if the key was not found 2020-03-23 20:02:09 +01:00
bf97afb9ed map: small cleanup 2020-03-21 13:55:07 +01:00
66639924a4 map: make compilable with V2 2020-03-19 07:05:20 +01:00
bd0548548a map: new memory layout and map.get2() 2020-03-19 06:52:34 +01:00
a011b8951a cgen: if/match expressions and other fixes 2020-03-18 08:41:49 +01:00
d456cc479c builtin: revert map to version before 35dd785 until bug is fixed 2020-03-16 23:01:31 +11:00
b43ac2783d map: make compilable with the new compiler 2020-03-12 20:26:29 +01:00
35dd7855a0 map: new memory layout and optimizations 2020-03-12 19:36:05 +01:00
b750f1d1bb compiler: prerequisite changes for upcoming map update 2020-03-12 22:19:13 +11:00
75db3e4416 cgen: fix ptr indexing 2020-03-11 05:25:15 +01:00
f27f832ede cgen: definitions + other fixes; calloc fix 2020-03-04 17:08:28 +01:00
becd87141c fix linux warnings in generated C code 2020-03-01 13:26:09 +01:00
e56bf42270 v2: xor, for x = ... 2020-02-20 21:28:08 +01:00
7705281459 map: use hashmap instead of b-tree 2020-02-20 20:05:06 +01:00