Commit Graph

13227 Commits (ad923f9a20e12d900eb6cd401cb3fdadc930ec52)

Author SHA1 Message Date
Wertzui123 ad923f9a20
thirdparty/sokol: apply speaker/headset bug fix from latest upstream sokol_audio.h (#14676) 2022-06-05 11:12:13 +02:00
Delyan Angelov bed93ad891
examples: simplify the shebang in the v_script.vsh example 2022-06-05 11:12:13 +02:00
Delyan Angelov cf7ae39e62
cgen: fix `for (int i = 0; i < 10; i++, a++) {` (multiple expressions in the inc part) 2022-06-05 11:12:13 +02:00
Delyan Angelov 726d0acfb6
ci: on windows-msvc, skip const_fixed_array_containing_references_to_itself_test.v 2022-06-05 11:12:13 +02:00
Delyan Angelov 5e5b931765
ci: fix macos clang failures with const_fixed_array_containing_references_to_itself_test.v 2022-06-05 11:12:13 +02:00
Delyan Angelov 55386627b2
checker: allow for references to fixed array consts inside their initialisation `const a = [ ... &a[0] ...]!` 2022-06-05 11:12:13 +02:00
Alexander Medvednikov 8bb2ccfdbc
vweb: use http.Cookie 2022-06-05 11:12:13 +02:00
yuyi bff84aab59
ast: cleanup is_lit() (#14672) 2022-06-05 11:12:13 +02:00
Delyan Angelov 54e851f8de
cgen,ci: fix cast_bool_to_int_test.v on windows-tcc 2022-06-05 11:12:13 +02:00
Delyan Angelov 3e1ff72247
cgen: do not initialise externally declared globals (with -cstrict with [c_extern]). 2022-06-05 11:12:13 +02:00
Delyan Angelov b387554840
cgen: simplify int(bool_var) casts; support [c_extern] tag for global declarations 2022-06-05 11:12:13 +02:00
yuyi 3d6d120d4c
cgen: fix autofree_variable() (fix #14576) (#14602) 2022-06-05 11:12:13 +02:00
yuyi 9699afc1fd
cgen: fix if expr with optional method call (#14600) 2022-06-05 11:12:12 +02:00
ChAoS_UnItY 4288c40bee
compress: Add gzip module & refactor compress & compress.zlib module (#14599) 2022-06-05 11:12:12 +02:00
yuyi e755008c29
vrepl: fix error for exitasdfasdf in repl (fix #14593) (#14598) 2022-06-05 11:12:12 +02:00
Delyan Angelov 28af327062
ci: vfmt vlib/v/checker/check_types.v 2022-06-05 11:12:12 +02:00
Delyan Angelov f8ad43be34
checker: speed up check_expected_call_arg, by only calling Table.type_to_str on errors 2022-06-05 11:12:12 +02:00
Hunam 28fb66118b
vlib: add `net.http.mime` (#14516) 2022-06-05 11:12:12 +02:00
Delyan Angelov f674787fac
ast.table: cache the returned values of Table.type_to_str_using_aliases/2
This results in 9% speedup of the checker stage for V itself.
2022-06-05 11:12:12 +02:00
Delyan Angelov ddb8c0ffaa
ci: vfmt vlib/v/parser/parser.v 2022-06-05 11:12:12 +02:00
Delyan Angelov 7ca1d2a93c
tools: add cmd/tools/measure/scanner_speed.v and cmd/tools/measure/parser_speed.v 2022-06-05 11:12:12 +02:00
Delyan Angelov d20eae2d34
strings: update docs for .str() and for .free() 2022-06-05 11:12:12 +02:00
yuyi 47300ae03f
ast: fix IfExpr.str() (#14595) 2022-06-05 11:12:12 +02:00
Alexander Medvednikov 34d30b0ee5
checker, cgen: c2v variadic fixes 2022-06-05 11:12:12 +02:00
yuyi ada04cfb6a
parser: fix optional with multiple statements (#14592) 2022-06-05 11:12:11 +02:00
Claudio Cesar de Sá 9dedc4b664
examples: some new graphs algorithms and improving 2 others (#14556) 2022-06-05 11:12:11 +02:00
Ben 5b97307c5a
os: fix file_ext function (#14566) 2022-06-05 11:12:11 +02:00
Wertzui123 df4dae6d40
help: add Windows to the list of supported native backends in `v help build-native` (#14589) 2022-06-05 11:12:11 +02:00
ChAoS_UnItY f174bb6d78
cgen: fix type not being unaliased (fix #14568) (#14591) 2022-06-05 11:12:11 +02:00
yuyi 48d6e702f2
checker: minor cleanup in if_expr() (#14584) 2022-06-05 11:12:11 +02:00
Hunam b70c60dcb8
ci: re-enable Go2V test suite (#14588) 2022-06-05 11:12:11 +02:00
yuyi 9459fb549f
cgen: fix fixed array of aliases struct (#14583) 2022-06-05 11:12:11 +02:00
Delyan Angelov 8cd891c9b6
v: add support for `v crun examples/hello_world.v`, use crun mode for .vsh files by default. (#14554) 2022-06-05 11:12:11 +02:00
Delyan Angelov 80879586df
examples: document how to produce the shared library, needed for a standalone run of examples/dynamic_library_loading/use.v 2022-06-05 11:12:11 +02:00
yuyi ee547994bb
parser: fix comptime if script mode (fix #6419) (#14578) 2022-06-05 11:12:11 +02:00
Delyan Angelov f268cf7858
cgen: do not #include signal.h, on -os wasm32 and -d no_segfault_handler 2022-06-05 11:12:10 +02:00
Delyan Angelov 9871434daa
ci: skip embed_file_test.v for now 2022-06-05 11:12:10 +02:00
yuyi d4b90827d0
checker, cgen: fix array index optional with if expr (#14575) 2022-06-05 11:12:10 +02:00
Delyan Angelov 215d7875e6
v: always embed file data of \$embed_file(file) constructs, even without -prod, unless `-d embed_only_metadata` is given. 2022-06-05 11:12:10 +02:00
Alexander Medvednikov 0e384bb60d
cgen: fix goto label 2022-06-05 11:12:10 +02:00
Alexander Medvednikov 0bdc213dc6
cgen: c2v infix fix 2022-06-05 11:12:10 +02:00
Larpon 2ab6ef7f0a
toml: update readme with value_opt() usage (#14569) 2022-06-05 11:12:10 +02:00
yuyi d2b097fbf8
scanner: minor cleanup in scanner.v (#14565) 2022-06-05 11:12:10 +02:00
playX 9e038d1a64
builtin.js: fix string.int method (#14564) 2022-06-05 11:12:10 +02:00
Delyan Angelov eb688d7fa1
v.util, v.builder: fix util.module_is_builtin on macos with -usecache 2022-06-05 11:12:10 +02:00
Ben 2308eec024
os: add existing_path function (#14536) 2022-06-05 11:12:10 +02:00
Delyan Angelov 0338ae98c2
strconv: make f64_to_str_lnd1 public (fix building vlang/coreutils printf) 2022-06-05 11:12:10 +02:00
Delyan Angelov 936622039f
crypto.md5: improve performance of md5.blockblock_generic 2022-06-05 11:12:10 +02:00
Delyan Angelov 77ce385a1a
builtin: use C.fwrite (buffered) for _write_buf_to_fd (#14558) 2022-06-05 11:12:09 +02:00
Delyan Angelov b7232df73c
builtin: fix sporadic linking failures on `v -cc gcc -gc boehm examples/hello_world.v` 2022-06-05 11:12:09 +02:00