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

Commit Graph

  • 3aba840af1 ci: show jq version in toml_ci.yml Delyan Angelov 2022-01-03 10:52:34 +02:00
  • d5b111ec99 net: fix typo in new_ip() (#13017) yuyi 2022-01-03 14:45:26 +08:00
  • 1ad4fbd841 regex: add a replace_n function (#13016) penguindark 2022-01-03 05:32:24 +01:00
  • 4d4398fa8a sokol: type alias all gfx structs (#13014) Larpon 2022-01-02 19:36:01 +01:00
  • 41e763f79c checker: add error for type StructAlias = Struct struct Struct { field StructAlias } Delyan Angelov 2022-01-02 15:47:58 +02:00
  • 64f1ea6fe9 checker: extract containers.v, struct.v, for.v from checker.v (#13012) yuyi 2022-01-02 21:52:19 +08:00
  • 41078bc438 v.eval: fix hardcoded math ops in infix_gen.v, add interpret_test.v Delyan Angelov 2022-01-02 10:33:21 +02:00
  • 1521d08e84 eval: ignore ast.Module (fixes v interpret file.v regression after 07cf6d9) Delyan Angelov 2022-01-02 09:39:18 +02:00
  • 9278d4ec19 docs: fix a typo Delyan Angelov 2022-01-02 09:18:24 +02:00
  • 0e1cfd4a28 checker: simplify type sizeof check and fix c2v globals Alexander Medvednikov 2022-01-01 19:55:51 +03:00
  • 697eca5ddf tools: ensure git is installed, when doing vpm operations that require it Delyan Angelov 2022-01-01 15:40:19 +02:00
  • 908296cdfb regex: improve errors for edge cases (#13008) penguindark 2022-01-01 08:21:27 +01:00
  • 7b4ba66720 js: use JS.String instead of string in builtin javascript functions (#13004) pancake 2022-01-01 08:17:08 +01:00
  • 7622ff3f54 checker: check using const var as function (#13006) yuyi 2022-01-01 15:15:43 +08:00
  • 6438512529 checker: add error for for mut var in string { (fix #12998) (#13000) yuyi 2021-12-31 15:54:06 +08:00
  • a0a1807e2b builtin: add charptr str() and change string format (#12973) yuyi 2021-12-31 04:34:24 +08:00
  • b10ff1e41b checker: infer generic interface type in i := Interface(Struct<u32>{}) Delyan Angelov 2021-12-30 21:19:24 +02:00
  • ae036b6146 checker: fix infinite recursion on generic interface cast Delyan Angelov 2021-12-30 19:28:42 +02:00
  • df8384b62e v.scanner: report the start of unfinished string literals too Delyan Angelov 2021-12-30 18:20:27 +02:00
  • 93c40e696d all: add support for type MyEnumAlias = MyEnum Delyan Angelov 2021-12-30 13:42:06 +02:00
  • bf9f684c59 ast: improve support for type aliases, in TypeSymbol.xyz_info methods Delyan Angelov 2021-12-30 13:16:56 +02:00
  • 7531f78f67 ast: remove const hack for global_table, use a proper global instead Delyan Angelov 2021-12-30 13:15:38 +02:00
  • d421f28de4 checker: minor cleanup in cast_expr() (#12995) yuyi 2021-12-30 03:48:23 +08:00
  • 4114dd0815 v.builder: fix v -no-retry-compilation -cc tcc -usecache examples/tetris/ Delyan Angelov 2021-12-29 21:45:01 +02:00
  • 99fdcd2e71 v.builder: fix v -cc tcc -no-retry-compilation build-module vlib/sync/stdatomic Delyan Angelov 2021-12-29 21:32:30 +02:00
  • ca5154747e cgen: fix v -usecache examples/news_fetcher.v on macos (.sort() compare_ functions duplication) Delyan Angelov 2021-12-29 20:15:51 +02:00
  • 537760edcd ci: fix failing macos job (do not test -usecache for now there) Delyan Angelov 2021-12-29 18:29:08 +02:00
  • cb34309f6f cgen: fix chained ./v -usecache -o v cmd/v (and all other V programs that use maps) Delyan Angelov 2021-12-29 17:57:04 +02:00
  • cc577e1bfb parser: check variable redefinition error (#12992) yuyi 2021-12-29 19:44:08 +08:00
  • 69c90ef50d hash.fnv1a: add generic fnv1a.sum64_struct/1 and fnv1a.sum32_struct/1 + tests Delyan Angelov 2021-12-29 12:03:24 +02:00
  • 7c78bf9466 hash.fnv1a: add fnv1a.sum64_bytes and fnv1a.sum32_bytes, add doc comments and tests Delyan Angelov 2021-12-29 11:27:26 +02:00
  • 9b8cf1ad37 markused: fix V compiler panics with -skip-unused, for code using generics Delyan Angelov 2021-12-29 09:48:07 +02:00
  • 5607cfbd32 datatypes: add a Queue.last() method (#12987) Hunam 2021-12-29 07:01:47 +01:00
  • 5e5529441c docs: document negative indexed slices, add example for a 'list comprehension' (#12986) penguindark 2021-12-28 21:29:11 +01:00
  • 43fee6b3d5 all: fix registration of methods with the same name on different generic structs Delyan Angelov 2021-12-28 19:42:31 +02:00
  • 730b2a9263 sync: move sync.atomic2 to sync.stdatomic, cleanup Delyan Angelov 2021-12-28 10:12:40 +02:00
  • c1711b8f05 checker: check string cast to number (fix #12982) (#12983) weekly.2021.52.1 yuyi 2021-12-28 13:55:39 +08:00
  • 6176ce9f03 all: c2v fixes Alexander Medvednikov 2021-12-28 07:37:03 +03:00
  • dadc965082 regex: implement negation groups, more flexibility for bsls, small fixes (#12981) penguindark 2021-12-27 21:18:48 +01:00
  • 14648fa41e parser: reduce max_expr_level to 310 (due to more limited stack size on windows) Delyan Angelov 2021-12-27 20:02:50 +02:00
  • 34e175a343 checker: minor cleanup of the fns classification (#12977) yuyi 2021-12-27 19:11:10 +08:00
  • a2eb90ee4e parser: prevent too deep recursions in p.check_undefined_variables Delyan Angelov 2021-12-27 12:30:17 +02:00
  • 35418b8413 cgen: fix compile error on locking interface value (#12883) weekly.2021.52 Toby Webb 2021-12-26 19:01:00 +01:00
  • c26e040d33 ci: bump retry count to 5 for tcp_test.v Delyan Angelov 2021-12-26 19:05:05 +02:00
  • 2e68af22d3 cgen: improve auto_str error messages (#12972) yuyi 2021-12-27 00:32:15 +08:00
  • 55d9c24063 ast: fix generic fn with multiple return (#12971) yuyi 2021-12-26 22:44:41 +08:00
  • 8a10dbcf27 vlib: rename adt to datatypes Delyan Angelov 2021-12-26 16:01:36 +02:00
  • 2210f89ea3 sokol: type alias all sapp structs (#12962) Larpon 2021-12-26 12:02:51 +01:00
  • 04be2465dc cgen: check call argument on methods (#12965) pancake 2021-12-26 10:53:56 +01:00
  • 3b5de71e60 builtin: add none str() (fix #12964) (#12967) yuyi 2021-12-26 17:41:51 +08:00
  • 03864e4ab8 checker: fix cast enum to alias (#12968) yuyi 2021-12-26 17:34:20 +08:00
  • 10f63b3cd7 cgen: remove "main" from inline sum type str (#12963) Daniel Däschle 2021-12-25 21:58:45 +01:00
  • 35282396ec all: inline sum types (#12912) Daniel Däschle 2021-12-25 16:26:40 +01:00
  • 485b392cb3 adt: implement a binary MinHeap data structure (#12956) Miccah 2021-12-25 04:03:50 -06:00
  • 8764a3a973 checker: check errors of cast to byte (#12961) yuyi 2021-12-25 17:34:15 +08:00
  • d0ad79cd8b checker: fix generic array builtin method call (#12957) yuyi 2021-12-24 20:42:23 +08:00
  • a83786d867 checker: minor cleanup in cast_expr() (#12954) yuyi 2021-12-24 17:38:27 +08:00
  • d69d2c600b adt: implement a doubly linked list (#12950) Miccah 2021-12-24 03:19:40 -06:00
  • c0dcd1a9a5 ast: fix reference of alias char type (#12951) yuyi 2021-12-24 17:11:20 +08:00
  • 92bd55ded6 tests: fix typo in common.v (#12952) Ikko Ashimine 2021-12-24 17:47:48 +09:00
  • 68452cff76 adt: add queue (#12941) Hunam 2021-12-23 17:57:15 +01:00
  • 54a6973548 adt: add linked list (#12937) Hunam 2021-12-23 17:23:04 +01:00
  • fa2de89db9 orm: do not order by default, ordering is slow; also fix a bug for tables without defined primary keys Delyan Angelov 2021-12-23 16:43:22 +02:00
  • d7deda5078 vlib: add an adt module (Abstract Data Types) (#12901) Hunam 2021-12-23 14:16:29 +01:00
  • d4f28c88b3 checker: minor cleanup in the checker.v (#12945) yuyi 2021-12-23 21:02:09 +08:00
  • 546c388b02 gg: renaming drawing functions (#12913) Benjamin Stigsen 2021-12-23 12:31:25 +01:00
  • ad1ef6a9e2 cgen: fix map get assign blank var with optional (#12943) yuyi 2021-12-23 19:04:36 +08:00
  • b88a40ad80 ci: cleanup and fix sdl_ci.yml Delyan Angelov 2021-12-23 13:01:38 +02:00
  • a2468e1e0c js,os: fix integer arithmetic; add Process.close() and os.is_readable() for VJS; Make tetris run on JS backend (#12940) playX 2021-12-23 12:36:42 +03:00
  • d3ccdfd75c cgen: fix channel of sumtype (#12938) yuyi 2021-12-23 17:26:15 +08:00
  • b4723c18fc cmd: update vast -t help text (#12939) lydiandy 2021-12-23 17:23:35 +08:00
  • db1175e455 parser: handle [noreturn] on methods too Delyan Angelov 2021-12-22 19:58:22 +02:00
  • 1028f0b59e fmt: fix error of generic struct_init using module (fix #12893) (#12935) yuyi 2021-12-23 01:11:09 +08:00
  • 86719c5de9 tools: update vast to latest V Delyan Angelov 2021-12-22 18:13:29 +02:00
  • e256f1b2aa checker,cgen: stabilise generic method handling (fix a source code ordering issue) Delyan Angelov 2021-12-22 16:16:10 +02:00
  • b3161b05a3 ci: add sdl workflow for testing vlang/sdl (#12934) Larpon 2021-12-22 16:52:47 +01:00
  • 278c08704c all: support slices with negative indexes #[start..end] (gated arrays) (#12914) penguindark 2021-12-22 14:34:02 +01:00
  • 2b9f993574 gg: add text rendering, keyboard event handling for JS and other fixes (#12932) playX 2021-12-22 13:26:52 +03:00
  • 6eb44f472a cgen: fix multiple return with sumtype (#12930) yuyi 2021-12-22 18:09:08 +08:00
  • 6a4fa6096e cgen: fix blank ident in for_c_stmt (#12931) yuyi 2021-12-22 15:34:26 +08:00
  • cb65f2ff44 js: generate es5 methods for valueOf() and toString() (#12928) pancake 2021-12-22 08:20:45 +01:00
  • 2693631643 parser: make codegen generate correct module name (#12929) zakuro 2021-12-22 08:55:57 +09:00
  • cfb814a0e3 gen: support returning large types from closures on amd64 (#12926) spaceface 2021-12-21 23:18:45 +01:00
  • 7b4d83660a examples: reduce progress update rate for path_tracing.v (less string interpolations/mallocs) Delyan Angelov 2021-12-21 23:43:13 +02:00
  • b68c217d53 js: remove usage of default arguments for -es5 flag (#12921) playX 2021-12-21 21:23:40 +03:00
  • 07cf6d9f96 parser/scanner: make codegen impl use own parser. closes #12857 (#12925) joe-conigliaro 2021-12-22 04:48:06 +11:00
  • fc83f0bfd0 cgen: clean up gen_assign_stmt() (#12915) yuyi 2021-12-22 01:23:55 +08:00
  • 5ee5f92cda ci: use github.sha instead of github.ref, so CI runs on master are not canceled early Delyan Angelov 2021-12-21 19:18:34 +02:00
  • de3665af69 cgen: fix interface method using struct embed (#12924) yuyi 2021-12-22 01:16:05 +08:00
  • 794bdfdca7 ci: use concurrency.cancel-in-progress Delyan Angelov 2021-12-21 18:55:02 +02:00
  • 88435eb769 examples: avoid using go game.run() in Tetris Delyan Angelov 2021-12-21 16:54:26 +02:00
  • ade14491d4 gg: add event handling for mouse down/up and mouse leave/out on VJS (#12917) playX 2021-12-21 13:31:29 +03:00
  • cc2fcb52d6 tests: fix the shown number of jobs for the test summary Delyan Angelov 2021-12-21 02:51:26 +02:00
  • ed2d1286da help: improve v help test weekly.2021.51 Delyan Angelov 2021-12-20 19:52:05 +02:00
  • 460f7c6637 cgen: fix fixed array of interfaces equality (#12908) yuyi 2021-12-21 01:09:22 +08:00
  • 9f7d71d338 ci: fix ci error of vls build (#12909) yuyi 2021-12-21 01:08:22 +08:00
  • 68ada041e6 tests: support VTEST_ONLY_FN=*test_sincos* ./v test . and ./v test -run-only test_sin . Delyan Angelov 2021-12-20 17:22:02 +02:00
  • 5f0160bf11 js,gg: more work on porting gg to JS backend (#12903) playX 2021-12-20 16:18:21 +03:00
  • f81654e3a7 builtin: add s.match_glob(wildcard_pattern) Delyan Angelov 2021-12-20 14:15:51 +02:00
  • 7c85c2ab1f checker: fix error of map selector assign (#12902) yuyi 2021-12-20 14:09:15 +08:00