Commit Graph

13201 Commits (5b97307c5a127d79ef9d69705c56ca4950da9b88)

Author SHA1 Message Date
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
yuyi 76c92715e6
checker: vfmt overload_return_type.vv (#14557) 2022-06-05 11:12:09 +02:00
Hunam 6beac6f4b7
net.http: `Response.text` -> `Response.body` (#14478) 2022-06-05 11:12:09 +02:00
yuyi 8698bb375f
scanner: fix string interpolation with inner curly braces (fix #12242) (#14553) 2022-06-05 11:12:09 +02:00
yuyi a396496b93
parser: fix cast or dump arguments ending with comma (#14552) 2022-06-05 11:12:09 +02:00
Delyan Angelov 0a3d41c5d7
docs: document explicitly, that maps support `if v := m[k] {` too 2022-06-05 11:12:09 +02:00
Delyan Angelov 8cecea9965
cgen: add support for `v -cmain SDL_main sdl_example.v` 2022-06-05 11:12:09 +02:00
yuyi e50d73983f
cgen: fix cross assign in closure (#14549) 2022-06-05 11:12:09 +02:00
yuyi 0a81074b1e
ast: fix call_expr.str() with propagate_option or propagate_result (#14550) 2022-06-05 11:12:09 +02:00
Delyan Angelov f02f2e4708
ci: temporary workaround for cross assignment in a closure leading to cgen error 2022-06-05 11:12:09 +02:00
yuyi e9da92c61d
parser, cgen: fix cross assign with parentheses (#14545) 2022-06-05 11:12:08 +02:00
yuyi 458f6f09e1
checker: fix declare assign literal with closure (#14544) 2022-06-05 11:12:08 +02:00
Delyan Angelov f4ccbcd2cf
toml: add `pub fn (d Doc) value_opt(key string) ?Any {` and some tests for toml.parse_dotted_key/1 2022-06-05 11:12:08 +02:00
yuyi 740a862dcd
parser: fix match expr case with struct init (#14538) 2022-06-05 11:12:08 +02:00
Larpon 31efb48fc5
tools: implement `v missdoc --diff oldv newv` (#14537) 2022-06-05 11:12:08 +02:00
spaceface 3d18c884d4
cgen: fix a race condition in the closure implementation (#14532) 2022-06-05 11:12:08 +02:00
Delyan Angelov 565561e0bd
checker: fix error position in `fn f() int { return 1,2 }` 2022-06-05 11:12:08 +02:00
Delyan Angelov 1fcc248d2e
ci: vfmt cmd/tools/vpm.v 2022-06-05 11:12:08 +02:00
Delyan Angelov 16bcfa7da3
tools: fix `v install https://github.com/nedpals/vex.git` (fix #14483) 2022-06-05 11:12:08 +02:00
Louis Schmieder 29fc96c040
orm: document & fix pg (#14533) 2022-06-05 11:12:08 +02:00
yuyi dca8739eeb
checker: cleanup checker.v (#14530) 2022-06-05 11:12:08 +02:00
Delyan Angelov c4783628e6
cgen: fix parallel cgen for json encoding of struct fields that have default values 2022-06-05 11:12:08 +02:00
Delyan Angelov 7541d84038
tests: make json_test.v less noisy, to see errors easier 2022-06-05 11:12:07 +02:00
Wertzui123 a7d7e34125
x.ttf: fix typo in README (#14528) 2022-06-05 11:12:07 +02:00
yuyi 82332344de
fmt: fix fn return types list ending with comma (#14529) 2022-06-05 11:12:07 +02:00
Delyan Angelov 140d494d4c
all: add support for struct field deprecation (#14527) 2022-06-05 11:12:07 +02:00
Larpon a61316ceea
ci: use missdoc as subcmd (#14524) 2022-06-05 11:12:07 +02:00