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

8449 Commits

Author SHA1 Message Date
13b2aa701c toml: rename ast.Node -> ast.Value (#11974) 2021-09-25 20:31:02 +03:00
80c15607da json: assert encoded struct with a sumtype (#11970) 2021-09-25 20:29:52 +03:00
970768288d gg: expose sapp_desc.swap_interval via gg.Config (#11975) 2021-09-25 15:06:56 +03:00
956fdffd96 net.http: allow custom headers in post_multipart_form (#11971) 2021-09-25 10:09:49 +03:00
5541ec8670 vlib: add toml module + tests (#11964) 2021-09-24 21:13:52 +03:00
834cf40ab2 cgen, fmt, scanner: fix and use nested lambda in scanner (#11967) 2021-09-24 18:21:22 +03:00
400ab7876b ast: fix fixed array typedef generation issue (#11962) 2021-09-24 17:01:42 +03:00
c75271fcb7 cgen: json sumtype inlining (#11961) 2021-09-24 16:49:00 +03:00
430677a0c0 cgen: format generated C code of nested array call (#11955) 2021-09-23 19:56:12 +03:00
ad58fe8249 ci: mark cancel_test.v with vtest retry: 3 2021-09-23 14:55:10 +03:00
b354f9ae9a cgen: fix c error of if-expression when debug mode (#11950) 2021-09-23 14:52:32 +03:00
4a0d00fb30 io.util: simplify random number generation in util.v 2021-09-23 14:20:39 +03:00
afc3531945 ci: work around a failing g++ compilation (order of methods in an interface dispatching table matters for C++ compilers) 2021-09-23 14:08:50 +03:00
ece5fa183c fast.v: freebsd fixes 2021-09-23 13:48:41 +03:00
930b95f76c v.gen.c: fix uninitialised value usages regression after e5fb4e4 2021-09-23 12:24:03 +03:00
8837712f2b rand: fix leaks with -autofree 2021-09-23 12:24:03 +03:00
79e33d92f1 v.markused: remove hash.init() function (map fn usages are detected more precisely) 2021-09-23 12:24:02 +03:00
b52f79e137 log: add temporary get_level() (#11946) 2021-09-23 12:05:11 +03:00
4d0f835548 checker: fix detection of invalid insertions, fixes #3600 (#11945) 2021-09-23 11:59:43 +03:00
27f5c35bde autofree: test returning optionals 2021-09-23 09:18:01 +03:00
b8935551f1 cgen: fix nested array call (#11948) 2021-09-23 08:50:37 +03:00
7b60367512 autofree: free reference types with -experimental for now 2021-09-23 04:35:09 +03:00
52b53f17b2 scanner: clean up scanning of > (#11943) 2021-09-23 02:24:23 +03:00
bf2569a9a8 all: support mut volatile x := 123 declarations (#11940) 2021-09-22 13:06:30 +03:00
76e360ce86 cgen: format the generated C code for array map/filter/all/any methods (#11936) 2021-09-22 09:24:36 +03:00
e5fb4e4845 cgen: fix if expr with array call (fix #11557) (#11569) 2021-09-22 02:21:18 +03:00
b9720f5d9e cgen: fix struct init with multiple branches, fixes #11564 (#11570) 2021-09-22 00:46:07 +03:00
2f3925a0cf fmt: format vlib/v/token/token.v (#11568) 2021-09-21 23:29:53 +03:00
de4c0c237b cgen: fix if infix expr with array.all/any() (#11567) 2021-09-21 16:20:41 +03:00
108a01d65f fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
d6fa6a459c checker: fix generic sumtype method (#11565) 2021-09-21 16:19:43 +03:00
95136cbfc7 all: add unsigned shift operators (#11536) 2021-09-21 14:02:17 +03:00
e4bd2306da sokol: upgrade to latest version, add program icon support (#11559)
* updated sokol_gfx.h to the last version: 16d7b2e

* merged sokol_app and update enums.v

* added missing icons structs

* try to fixing Mac keyboard problems

* added v patch marker to sokol_app.h

* upgrade for sokol_gl.h, sokol_fontstash.h

* manage sgl_load_default_pipeline

* added load_default_pipeline() for sokol coherence

* vfmt sapp_structs.c.v

Co-authored-by: Delyan Angelov <delian66@gmail.com>
2021-09-21 09:55:06 +03:00
f6bdc6b87e tmpl: fix <div> inside <div> 2021-09-21 07:54:10 +03:00
b2ecca3966 all: remove size_t (#11478) 2021-09-21 02:12:38 +03:00
4aa99e4303 tmpl: add a <div> test 2021-09-21 02:11:33 +03:00
1430ebc5e3 scanner: cleanup scanning of > (#11558) 2021-09-21 00:57:05 +03:00
d51f8ed878 v.gen.c: use unmangled variant name for encoding sumtype values in json (#11554) 2021-09-20 21:19:16 +03:00
077c55d0c8 encoding.utf8: add pub fn is_letter(r rune) bool (#11547) 2021-09-20 21:16:50 +03:00
5cf0ee46b3 v.pref,v.builder: support overriding the C cross compiler by setting VCROSS_COMPILER_NAME 2021-09-20 19:57:43 +03:00
9c4507d115 cgen: fix illegal character encoding with rune consts above 127 (#11550) 2021-09-20 10:45:42 +03:00
1de4f1af2e ci: reduce chance of spurious go_wait_option_test.v failures by retrying it 3 times 2021-09-20 10:32:40 +03:00
f9f4867c25 tmpl: fix $tmpl comptime operation only working in return statement (#11541) 2021-09-19 23:22:26 +03:00
2534946ead json: support sumtypes (#11549) 2021-09-19 21:36:26 +03:00
7bd145d88a os,net: cleanup deprecated @VROOT usages 2021-09-19 16:24:24 +03:00
b343f19bec v.scanner: fix ambiguity of two-level generics and shift-right (#11540) 2021-09-19 16:22:28 +03:00
76f70d51f3 ci: fix another options_test.v failute, refactor for readability 2021-09-19 08:49:52 +03:00
b5d8c53a0c v.gen.c: fix the :X string interpolation format for isize/usize on 64bit systems 2021-09-19 05:09:03 +03:00
6799f3ac5c orm: verify column name in updates 2021-09-19 04:49:29 +03:00
e76be4ba37 checker: temporary error for optional struct fields (#11293) (#11534) 2021-09-18 23:22:24 +03:00