Commit Graph

13194 Commits (80879586df7309b41e4a86215dbe114abf6bdbe8)

Author SHA1 Message Date
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
Larpon f13369dad3
tools: add v missdoc --verify mode (#14525) 2022-06-05 11:12:07 +02:00
Larpon b9c283b2b8
embed_file: rename debug_embed_file_in_prod -> force_embed_file (#14523) 2022-06-05 11:12:07 +02:00
yuyi b97a04abd9
fmt: fix fmt of Ok<[]Token>{[]} (#14522) 2022-06-05 11:12:07 +02:00
Jef Roosens 3bc50721e2
ci: bumped alpine version & added mandoc to builder image
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-06-02 17:06:52 +02:00
kahsa 585cb9ec2b
net.html: use `-d debug_html` instead of `-g`, prevent undesired output, while debugging user programs (#14521)
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-05-25 12:55:03 +02:00
Delyan Angelov f9515f7515
cgen: split keys and values in generated new_map_init calls into separate lines 2022-05-25 12:55:03 +02:00
yuyi fcabcfc048
checker: check fn call with argument mismatch (#14519) 2022-05-25 12:55:03 +02:00