Commit Graph

12068 Commits (a73e1462f07c59e34162de9bef3442d92758f1a5)

Author SHA1 Message Date
yuyi d6fa6a459c
checker: fix generic sumtype method (#11565) 2021-09-21 16:19:43 +03:00
ChAoS_UnItY 95136cbfc7
all: add unsigned shift operators (#11536) 2021-09-21 14:02:17 +03:00
penguindark 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
Alexander Medvednikov 49886b8c40 examples: add a missing vweb header 2021-09-21 08:13:42 +03:00
Alexander Medvednikov f6bdc6b87e tmpl: fix <div> inside <div> 2021-09-21 07:54:10 +03:00
Enzo b2ecca3966
all: remove `size_t` (#11478) 2021-09-21 02:12:38 +03:00
Alexander Medvednikov 4aa99e4303 tmpl: add a <div> test 2021-09-21 02:11:33 +03:00
Ruofan XU 1430ebc5e3
scanner: cleanup scanning of `>` (#11558) 2021-09-21 00:57:05 +03:00
Anton Zavodchikov d51f8ed878
v.gen.c: use unmangled variant name for encoding sumtype values in json (#11554) 2021-09-20 21:19:16 +03:00
ChAoS_UnItY 077c55d0c8
encoding.utf8: add `pub fn is_letter(r rune) bool` (#11547) 2021-09-20 21:16:50 +03:00
Delyan Angelov 5cf0ee46b3
v.pref,v.builder: support overriding the C cross compiler by setting `VCROSS_COMPILER_NAME` 2021-09-20 19:57:43 +03:00
El Koulali András 9c4507d115
cgen: fix illegal character encoding with rune consts above 127 (#11550) 2021-09-20 10:45:42 +03:00
Delyan Angelov 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
05st f9f4867c25
tmpl: fix $tmpl comptime operation only working in return statement (#11541) 2021-09-19 23:22:26 +03:00
Rémi 2534946ead
json: support sumtypes (#11549) 2021-09-19 21:36:26 +03:00
Delyan Angelov 7bd145d88a
os,net: cleanup deprecated @VROOT usages 2021-09-19 16:24:24 +03:00
Ruofan XU b343f19bec
v.scanner: fix ambiguity of two-level generics and shift-right (#11540) 2021-09-19 16:22:28 +03:00
Delyan Angelov 76f70d51f3
ci: fix another options_test.v failute, refactor for readability 2021-09-19 08:49:52 +03:00
Delyan Angelov b5d8c53a0c
v.gen.c: fix the :X string interpolation format for isize/usize on 64bit systems 2021-09-19 05:09:03 +03:00
Alexander Medvednikov 6799f3ac5c orm: verify column name in updates 2021-09-19 04:49:29 +03:00
Rémi e76be4ba37
checker: temporary error for optional struct fields (#11293) (#11534) 2021-09-18 23:22:24 +03:00
Delyan Angelov 0b4e03ad5c
ci: fix the failing new options_test.v on the `ubuntu` job 2021-09-18 21:10:41 +03:00
Delyan Angelov 6b2cc9c5cf
v.pref: add a simple options_test.v to check for -cflags regressions 2021-09-18 16:08:15 +03:00
yuyi 8501217a4e
cgen: add gen_free_for_type_array/map() (#11530) 2021-09-18 15:18:32 +03:00
Delyan Angelov f5efa93570
ci: disable tests-sanitize-address-msvc for now 2021-09-18 15:14:17 +03:00
Delyan Angelov 0a7fb34613
checker: simplify noreturn.v 2021-09-18 13:43:15 +03:00
czkz 396eede4db
math: fix typos (#11533) 2021-09-18 12:23:31 +03:00
Delyan Angelov 740af306c0
ci: use quotes for "/fsanitize=address" in `tests-sanitize-address-msvc` 2021-09-18 12:08:09 +03:00
Delyan Angelov df8a4a03a0
tests: support `// vtest retry: 4` for marking flaky tests 2021-09-18 11:48:32 +03:00
Delyan Angelov eec930b86a
os: turn some panics into `return error()` 2021-09-18 10:45:04 +03:00
Delyan Angelov 209b159554
ci: fix tests-sanitize-address-msvc job (pass proper `/fsanitize=address` option) 2021-09-18 10:05:35 +03:00
yuyi 39ad6da506
checker, cgen: generate .free() methods for custom structs automatically (#11529) 2021-09-18 09:38:42 +03:00
Delyan Angelov 2eeba4758a
v.builder: fix `-cc msvc -cflags /O2` and support CFLAGS and LDFLAGS env vars 2021-09-18 09:14:21 +03:00
Alexander Medvednikov 219a764a83 autofree: only free user reference types 2021-09-18 06:32:25 +03:00
Alexander Medvednikov 6d47dd22df autofree: free references 2021-09-18 04:19:16 +03:00
yuyi 44ec8a8cd4
v.fmt, v.gen.js: use 'if foo in [TypeA, TypeB]' in fmt.v and js.v (#11524) 2021-09-17 21:59:16 +03:00
Delyan Angelov bd65ceb463
v.markused: remove __print_assert_failure from all_fn_root_names 2021-09-17 21:47:22 +03:00
Ruofan XU 9180647f99
scanner, fmt: fix multi-level generics (#11517) 2021-09-17 21:44:31 +03:00
Alexander Ivanov 30e53c95c7
checker: handle `if _likely_(x is Interface) {` from #11485 (#11519) 2021-09-17 21:01:12 +03:00
yuyi fb75d528eb
builder: remove panics, when cleaning up tmp files after tests (#11525) 2021-09-17 20:56:33 +03:00
czkz 816c6c62b5
os: fix documentation typo in args.v (#11526) 2021-09-17 20:55:16 +03:00
Michele Zenoni 92bb292113
examples: add Rule 110 example (#11516) 2021-09-17 03:24:28 +03:00
Vincent Laisney 273154c1ae
math.big: add Newton and Karatsuba algorithms (#11487) 2021-09-16 19:31:07 +03:00
yuyi 467afad065
cgen: use `if foo in [TypeA, TypeB]` in cgen.v (#11518) 2021-09-16 19:26:53 +03:00
JalonSolov 1688148828
flag: switch panics to optionals (#11515) 2021-09-16 19:25:05 +03:00
Delyan Angelov 0a18690a4f
v.gen.c: fix assert `f().len == 1` calling f() twice (closes issue 11501) 2021-09-16 19:01:35 +03:00
playX c175b4fd48
v.gen.js: refactor code, fix alias codegen, `-stats` now again works with tests on the JS backend (#11512) 2021-09-16 14:00:15 +03:00
Miccah ead5e66afd
net.http: add post_multipart_form function (#11511) 2021-09-16 07:34:07 +03:00
Dialga f295469fac
net.urllib: make unescape() autofree compatible (#11510) 2021-09-16 07:09:20 +03:00
yuyi d5e00b0920
checker, cgen: fix generic arrays sum() (#11502) 2021-09-16 07:08:28 +03:00