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

Commit Graph

  • 7302d8c4a8 examples: improve the examples/call_v_from_python with Python showing the result of the calculation done on the V side Delyan Angelov 2022-10-16 22:48:00 +03:00
  • 409a4f33a1 tools: add report_v_module_folders_without_tests.v . Use it to discover other modules without _test.v files. Add simple ones, to ensure CI can find more breakage on future wide changes to vlib/ Delyan Angelov 2022-10-16 22:40:17 +03:00
  • 17800b4bca ci: fix net.openssl, ensure that it is at least compiled, to avoid future regressions on sweeping vlib changes Delyan Angelov 2022-10-16 20:59:04 +03:00
  • 603319e30b .gitignore: ignore vold/vnew (ensure that artefacts used for benchmarking before/after changes are not commited) Delyan Angelov 2022-10-16 20:44:07 +03:00
  • 95d2c58148 checker: produce more informative error messages on ~,!,-,<- operator type mismatches Delyan Angelov 2022-10-16 20:27:40 +03:00
  • 3d2e251bf2 transformer: fix precalculations of simple expressions involving floating literals, with -prod (fix VSL tests with -prod) Delyan Angelov 2022-10-16 20:23:41 +03:00
  • d857e97d8c strconv: enable VTL compilation with -prod (remove deprecation for strconv.v_sprintf temporarily) Delyan Angelov 2022-10-16 17:43:52 +03:00
  • 78e9362d74 ci: workaround for a VLS failing test, that stops symbol registration after the first fn()! { Delyan Angelov 2022-10-16 13:02:27 +03:00
  • c02974622f tests: add checks_for_operator_overrides_should_happen_on_the_concrete_types_when_using_generics_test.v Delyan Angelov 2022-10-16 12:57:34 +03:00
  • 710c2b22da parser: fix infinite loop for type Handler = fn (test string) string without newline at the end Delyan Angelov 2022-10-16 10:42:53 +03:00
  • f6844e9766 all: change optional to result of io (#16075) yuyi 2022-10-16 14:28:57 +08:00
  • 6e46933c55 cgen: fix or {} handling, when waiting for a single go thread, of a function returning !Type (fix #16065) (#16073) weekly.2022.41 shove 2022-10-15 00:54:13 +08:00
  • 49c12e4d1c cgen: fix ./tracev examples/hello_world.v Delyan Angelov 2022-10-14 19:27:12 +03:00
  • 6bf2ad1ff0 cgen: fix missing * of optional non-ref structs (fix: #16070) (#16071) shove 2022-10-14 15:34:42 +08:00
  • 39d2aa71df checker: check generic closure fn declaration (#16069) yuyi 2022-10-14 15:24:10 +08:00
  • 3e4cfc7343 os: add os.to_slash and os.from_slash functions (#16055) zztkm 2022-10-14 16:22:36 +09:00
  • 09e23e3ed6 rand: add rand.element and prng.element functions with unit test (#16068) Subhomoy Haldar 2022-10-14 04:54:02 +01:00
  • f7f0e0b5dc v doc: remove int_literal and float_literal from syntax highlighting, since they are internal types (#16066) Swastik Baranwal 2022-10-13 23:19:34 +05:30
  • aabda5a525 checker: allow get_ref() or { unsafe{nil} }, as well as fn get_ref() ?&Type { return unsafe { nil } } (fix: #16062) (#16063) shove 2022-10-14 00:49:10 +08:00
  • 51a9e89c4a ast: disallow threads << go fn()?{} and threads << go fn()!{} (fix #16061) (#16064) shove 2022-10-14 00:37:27 +08:00
  • f0108323d1 cgen: fix generic closure fn direct call (#16057) yuyi 2022-10-13 23:06:34 +08:00
  • e3e8bb2f88 cgen: remove spaces in the generated name for ?&C.struct (fix #16058) (#16059) shove 2022-10-13 23:05:16 +08:00
  • bfbfe78366 cgen: fix assigning optional of multi_return with heap (#16049) yuyi 2022-10-13 18:07:52 +08:00
  • 213a094680 ast: fix missing 'optional' and 'result' in type name and cname of map (#16047) shove 2022-10-13 15:38:02 +08:00
  • 3e33f4a11d checker: disallow nil assignment on non pointer struct fields (#16056) Swastik Baranwal 2022-10-13 13:06:59 +05:30
  • fb3d093e01 builtin: remove opt_ok2() (part 2) (#16054) yuyi 2022-10-13 15:35:41 +08:00
  • 4fbb29a2c0 checker: disallow x := fncallexpr() or { X{} } , when the fn result type is ?&X (fix #16050) (#16051) shove 2022-10-13 03:49:30 +08:00
  • 6bdd11e53b checker: check error for fn call with extra parenthesis (#16052) yuyi 2022-10-13 03:43:59 +08:00
  • 211cb2af7b cgen: remove opt_ok2() part 1 (#16048) yuyi 2022-10-12 22:20:41 +08:00
  • c590c8250e cgen: fix fn with optional of multi_return (#16046) yuyi 2022-10-12 14:44:15 +08:00
  • 7f2d731d19 cgen: fix dump(c_struct), where c_struct has fields of type &&char Delyan Angelov 2022-10-12 09:00:03 +03:00
  • 9569c0504c cgen: fix map with optional or result on return (#16044) shove 2022-10-12 12:54:29 +08:00
  • 12d3664a09 builtin: add a declaration for C.putchar (#16037) Rasheed 2022-10-11 10:53:12 -07:00
  • 4c0ea67137 cgen: fix map with optional or result (fix #15972) (#16036) shove 2022-10-11 21:33:19 +08:00
  • 05fc7d3a72 checker: disallow function cast outside unsafe (#16030) Swastik Baranwal 2022-10-11 18:16:35 +05:30
  • 5047058595 stbi: fix memory leak from stbi.load/1 with GC (#16028) Wertzui123 2022-10-11 14:19:36 +02:00
  • 34f233c93f cgen: fix generic struct init with generic cast (#16035) yuyi 2022-10-11 20:00:02 +08:00
  • dab1c8a71d all: clean up optional and result handling (#16034) yuyi 2022-10-11 14:23:57 +08:00
  • 34d115d883 cgen: fix wrong when string attributes with quotes (fix #15194) (#16020) shove 2022-10-11 12:48:26 +08:00
  • eebc82d83a fmt: fix wrong processing of quotes, when formatting string literals (fix #16017) (#16018) shove 2022-10-11 02:19:34 +08:00
  • 8f3f717736 checker: check type mismatch of return match expr (#16019) yuyi 2022-10-11 00:41:55 +08:00
  • 89eb8358cf checker: fix fn returning ![]string called in main (#16023) yuyi 2022-10-11 00:41:24 +08:00
  • 0f229874a2 net.mbedtls: add explicit closing of the tcp connection in the shutdown method (#16027) Thomas Peißl 2022-10-10 18:30:58 +02:00
  • 82593338fa ci: fix v -usecache -o x cmd/v on macos Delyan Angelov 2022-10-10 16:01:04 +03:00
  • 14923123ad ci: skip const_fixed_array_containing_references_to_itself_test.v on windows-msvc Delyan Angelov 2022-10-10 13:30:35 +03:00
  • d4e89de8fb ci: fix v -cstrict -cc gcc vlib/v/gen/native/macho_test.v Delyan Angelov 2022-10-10 13:28:18 +03:00
  • 2a4604b5f9 Revert "examples: fix viewer example (use the new stbi.load_from_memory_with_channels) (#16004)" Delyan Angelov 2022-10-10 11:37:26 +03:00
  • fa20d797a5 Revert "examples: increase the window size of drag_n_drop.v a little (test CI)" Delyan Angelov 2022-10-10 10:38:08 +03:00
  • 3c25f506ed Revert "stbi: fix loading image from memory (#15981); breaks UI's rectangle example on macos, probably others too" Delyan Angelov 2022-10-10 10:37:39 +03:00
  • 8fc166d5a3 examples: increase the window size of drag_n_drop.v a little (test CI) Delyan Angelov 2022-10-10 04:04:27 +03:00
  • a7b2b3c70e ci: fix ci.yml (add the second missing required run: line to a task) Delyan Angelov 2022-10-10 03:48:20 +03:00
  • ade8fdff69 vfmt: fix v -W ./cmd/tools/vfmt.v, (and v -W build-examples) Delyan Angelov 2022-10-10 03:44:11 +03:00
  • a4e8b9cabe ci: fix ci.yml (add missing required run: line to a task) Delyan Angelov 2022-10-10 03:43:00 +03:00
  • 345d4d60e5 readme: add hyperlink to the vlang.io site, to the logo image (#16014) Aftab Alam 2022-10-10 05:23:33 +05:30
  • 32ab08287c checker: add a notice about skipping the generic route methods of vweb apps (#16013) yuyi 2022-10-10 07:50:10 +08:00
  • 553315b80c gx: add documentation for Color methods (#16010) Niraj Kulkarni 2022-10-10 05:17:55 +05:30
  • 8666ef43fd cgen: fix dependency order error between sumtype and fixed array type (fix #16003) (#16009) shove 2022-10-09 17:16:50 +08:00
  • 95f57e9206 builtin: deprecate array.reduce in favour of arrays.fold (#16001) ChAoS_UnItY 2022-10-09 15:29:50 +08:00
  • fe6197fe2d fmt: remove comma inside map_init using multi_line (#16007) yuyi 2022-10-09 13:39:30 +08:00
  • e2398cafd2 cgen: fix str() fails when the structure 'charptr' type field is nil (fix #15970) (#16002) shove 2022-10-09 13:33:45 +08:00
  • bce420c34d examples: fix viewer example (use the new stbi.load_from_memory_with_channels) (#16004) penguindark 2022-10-09 07:30:02 +02:00
  • 54197121bc sokol.sapp: remove update_cursor from EventType, since it is no longer defined in Sokol, fixes examples/gg/drag_n_drop.v Delyan Angelov 2022-10-08 22:01:22 +03:00
  • cd96a43030 fmt: fix unreasonable wrap after if in if very_long && condition { (fix #15635) (#15995) shove 2022-10-09 00:31:00 +08:00
  • ce1ba2ad02 checker: check fn returning fn type mismatch (fix #15988) (#15997) yuyi 2022-10-09 00:28:41 +08:00
  • 49aac93d87 checker: disallow literals on the left side of assignments (#15999) Swastik Baranwal 2022-10-08 21:57:30 +05:30
  • 91e641a422 parser: fix map init with multi enum keys (fix #15965) (#15991) yuyi 2022-10-08 23:56:02 +08:00
  • 754c387d1b cgen,checker: support simple voidptr casts in consts, without delaying the initialisation to _vinit (#15996) Delyan Angelov 2022-10-08 13:14:26 +03:00
  • 272b3cf8c3 checker: check undefined operation of the generic infix expr (#15987) yuyi 2022-10-08 17:09:32 +08:00
  • 4eeb45b94e vpm: stop and output an error message after parsing the v.mod file failed (#15994) yuyi 2022-10-08 16:33:49 +08:00
  • 267cd5569a vpm: replace println with eprintln, for printing error output (#15992) Swastik Baranwal 2022-10-08 14:02:31 +05:30
  • 07d5612347 stbi: fix loading image from memory (#15981) locriacyber 2022-10-07 14:20:35 +00:00
  • 03f82d5f68 cgen: fix generic for_in using iteration (#15979) yuyi 2022-10-06 23:20:38 +08:00
  • 73e28ec523 checker: fix infering fn type using reference argument (#15978) yuyi 2022-10-06 22:25:02 +08:00
  • 88d69d7d54 cgen,pref,preludes: implement v -assert continues file_test.v (#15976) Delyan Angelov 2022-10-06 17:20:32 +03:00
  • 58bf2838c0 builder: exclude LDFLAGS in .o builds (#15977) Larpon 2022-10-06 16:18:48 +02:00
  • 87a364ff24 cgen: remove condition no longer needed after #15944 Joe Conigliaro 2022-10-06 17:15:15 +11:00
  • 3eff20c5fd checker,cgen: small optimizations for previous commit Joe Conigliaro 2022-10-06 17:03:48 +11:00
  • 18f0040388 checker/gen/parser: varg with pointer type fix: #15943 (#15944) Joe C 2022-10-06 15:58:07 +11:00
  • f0871b87a4 term: fix errors in input_windows.c.v (#15966) yuyi 2022-10-05 18:24:22 +08:00
  • 6ccdf89546 cgen: fix vweb using generic method (fix #15888) (#15963) yuyi 2022-10-05 18:23:47 +08:00
  • 46138a2841 cbuilder: more clear fn name Alexander Medvednikov 2022-10-05 08:51:52 +03:00
  • acbfe88dd9 arrays, maps: cleanup comments and parameter names in function signatures (#15960) ChAoS_UnItY 2022-10-04 15:07:36 +08:00
  • 40cbd68272 sqlite: add a sqlite.is_error() helper (#15964) kahsa 2022-10-04 16:03:59 +09:00
  • 267e26ba1d net: add unsafe block to int -> enum cast (#15961) weekly.2022.40 Swastik Baranwal 2022-10-04 00:26:06 +05:30
  • 6ac9552d39 native: support simple library calls (#15958) Spydr 2022-10-03 16:49:22 +02:00
  • 9fc64de94b openssl: add unsafe blocks to int -> enum blocks (#15957) Swastik Baranwal 2022-10-03 19:02:37 +05:30
  • dc2ba1c33f ast, parser, fmt: fixed and optimized comments for 'for, for_c, for_in stmts' (fix: #15922) (#15950) shove 2022-10-03 15:45:11 +08:00
  • ffaca82ff8 arrays, maps: add indexed variant of collection function and minor cleanup (#15948) ChAoS_UnItY 2022-10-03 15:42:36 +08:00
  • 5b59171a00 checker, native: Check arguments of native builtin functions (#15952) Spydr 2022-10-03 09:41:59 +02:00
  • c655847dfb native: fix notices when building cmd/tools/builders/native_builder.v Delyan Angelov 2022-10-02 22:48:06 +03:00
  • b584e1df98 checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) Swastik Baranwal 2022-10-03 01:09:11 +05:30
  • 7993f0bf39 native: support for compile-time conditionals (#15949) Spydr 2022-10-02 21:31:59 +02:00
  • b83d0281e4 checker: make the "reference field must be initialised" warning more informative, fix clipboard (used by ui) Delyan Angelov 2022-10-02 16:24:15 +03:00
  • b158da398b parser: fix checking for duplicate main functions (#15946) yuyi 2022-10-02 17:14:25 +08:00
  • ed2960a20e sokol.sapp: fix compilation of gg apps with -prod (add typedef tags to Sokol's C struct declarations) Delyan Angelov 2022-10-02 12:10:03 +03:00
  • 35368b5721 checker: small cleanup in Checker.check_ref_fields_initialized Delyan Angelov 2022-10-02 12:09:07 +03:00
  • eec126e26c vfmt: run v fmt -w vlib/v/gen/native/tests/ Delyan Angelov 2022-10-01 16:05:59 +03:00
  • 20f5eef2dc maps: add a maps module, with generic filter, flatten, invert, to_map, to_array, from_array functions (#15945) ChAoS_UnItY 2022-10-02 15:59:13 +08:00
  • 8a38bc2324 fmt: keep volatile qualifier in global declarations (#15947) Swastik Baranwal 2022-10-02 13:20:16 +05:30
  • a7ad64033e native: support assigning to struct fields (#15938) lemon 2022-10-01 20:42:26 +09:00