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

Commit Graph

  • 868908b80d checker: require unsafe for Struct(voidptr) casts Alexander Medvednikov 2023-01-06 09:28:01 +03:00
  • 0146509516 examples: fullstack vweb example (#16761) Hitalo Souza 2023-01-05 22:36:42 -03:00
  • 43d8bc30f9 checker: fix unset type of a pointer field with default value, when a struct contains an embed (fix #16882) (#16883) Delyan Angelov 2023-01-05 19:53:37 +02:00
  • c1a9f42b05 ci: add vlib/v/tests/orm_sub_array_struct_test.v to the skip list for the tests-sanitize-undefined-gcc job Delyan Angelov 2023-01-05 19:51:44 +02:00
  • da68b2d369 checker: remove c.pref.is_test exception for calling private methods in _other_ modules (#16872) Swastik Baranwal 2023-01-05 19:11:18 +05:30
  • 3598e7d08e orm: add tests for fkey: relationship attribute and retrival of joined rows (#16877) Hitalo Souza 2023-01-05 10:20:15 -03:00
  • 8f217c00e5 x.json2: refactor/fix json2.encode, add more tests (#16790) Hitalo Souza 2023-01-05 10:17:38 -03:00
  • e3aee748ac cgen: fix code generated for optional comptime var (#16854) Felipe Pena 2023-01-05 05:54:51 -03:00
  • 19c9633896 builder: show a hint about v ., on unknown errors, suggesting that the user tried to compile a single .v file from a multi file project (#16878) Delyan Angelov 2023-01-05 07:45:23 +02:00
  • 66438391d0 v.token,v.parser: use p.tok.kind.precedence(), instead of p.tok.precedence(), since token.Token struct values, are much larger, than just the token.Kind enum values Delyan Angelov 2023-01-04 17:50:51 +02:00
  • f9e8a91cd0 v: move cmd/v/help/ to vlib/v/help, to simplify the interaction between module lookup & v recompilation (#16867) Delyan Angelov 2023-01-04 14:01:05 +02:00
  • b8571c964d cgen: fix json encode struct with optional field (#16866) yuyi 2023-01-04 18:41:07 +08:00
  • 0a6fc6d280 checker: fix generic stack of sumtype push() (#16855) yuyi 2023-01-04 00:29:29 +08:00
  • 2378b71f22 cgen: fix comptime if expr with optional or result call (#16853) yuyi 2023-01-03 20:38:08 +08:00
  • 09766c44b6 checker: disallow struct{...val.$(field.name)} (#16852) Swastik Baranwal 2023-01-03 13:51:32 +05:30
  • 2e54a8cb0e x.json2: update tests (#16847) Hitalo Souza 2023-01-03 05:16:36 -03:00
  • bd2b216ac7 cgen,checker: fix method call with comptime var (#16844) Felipe Pena 2023-01-03 05:14:23 -03:00
  • 395ee2b464 readme: add back align=center to make github happy (#16850) JalonSolov 2023-01-03 03:12:08 -05:00
  • 24189e02b5 tools: fix typo in vcomplete.v (#16851) Ikko Ashimine 2023-01-03 17:11:06 +09:00
  • 3625a74ec5 os: add test for os.open_append (#16846) Delyan Angelov 2023-01-03 01:11:35 +02:00
  • d5b9f7d026 io: fix typos (fix #16839) (#16840) Keito Tobichi 2023-01-03 03:20:52 +09:00
  • b0d39814be cgen, checker: fix conditional evaluation and code generation for $if/$else $if/$else for known true conditions (#16823) Felipe Pena 2023-01-02 15:14:12 -03:00
  • 9bee702c62 readme: final update for the instructions for NixOS Delyan Angelov 2023-01-02 19:39:18 +02:00
  • d91cf511ca readme: update the instructions for NixOS with the correct ones Delyan Angelov 2023-01-02 19:35:10 +02:00
  • c21949456e readme: add instructions for installing the libraries needed for the graphics examples on NixOS Delyan Angelov 2023-01-02 19:30:01 +02:00
  • f71572a50f parser: fix array of functions direct call (#16838) weekly.2023.01 yuyi 2023-01-02 20:12:07 +08:00
  • 9d49b69b69 ast: fix inferring generic struct (fix #16830) (#16831) yuyi 2023-01-01 23:36:18 +08:00
  • 51bb630ea4 checker: fix generic fn with short generic struct init syntax (#16828) yuyi 2023-01-01 15:14:55 +08:00
  • aaf3e25c3f websocket: simplify and better handle handshake (#16829) JalonSolov 2023-01-01 02:04:09 -05:00
  • d3a196977f thirdparty: update stb_image.h to its latest version v2.27 (#16825) Delyan Angelov 2022-12-31 21:25:31 +02:00
  • 3364bf8600 cgen: add g.push_existing_comptime_values and g.pop_existing_comptime_values, use them inside Gen.comptime_for (#16821) Delyan Angelov 2022-12-31 18:29:19 +02:00
  • 1c151fbec9 cgen: fix struct optional field zero init (#16814) yuyi 2022-12-31 23:36:14 +08:00
  • 04cb6ae65f tests: improve Teamcity test runner (#16817) Makhnev Petr 2022-12-31 19:26:18 +04:00
  • 1e401d1433 bcrypt: fix issue #16769 security problem in compare_hash_and_password (#16815) mfont 2022-12-31 16:18:43 +01:00
  • 5daf39bc6a cgen: fix typeof with comptime var (#16816) Felipe Pena 2022-12-31 10:57:55 -03:00
  • 15c9153f1d cgen: fix fixed array literal range index (#16812) yuyi 2022-12-30 19:59:54 +08:00
  • c10bc09e83 checker, cgen: allow $for in alias type (#16810) Felipe Pena 2022-12-30 06:27:01 -03:00
  • f4cd3931fb cgen: fix dump fn name using generic var (#16805) Felipe Pena 2022-12-30 06:16:59 -03:00
  • 828cd4fe79 checker: add check for implicit fixed array decomp in function varargs (#16806) Swastik Baranwal 2022-12-30 04:36:41 +05:30
  • c7f1db2b8a cgen: cleanup uneeded C code, when using selectorexpr on $if (#16802) Felipe Pena 2022-12-29 15:30:42 -03:00
  • 6229f48830 checker,cgen: implement support for the new FieldData.is_alias field (part 2, follow up to a6bf20f) Delyan Angelov 2022-12-29 19:03:18 +02:00
  • 6a8b6c010c repl: minor cleanup in runner.v (#16804) yuyi 2022-12-29 23:55:57 +08:00
  • 36ab78d6da parser, cgen: fix anon fn optional call in if expr (#16803) yuyi 2022-12-29 23:53:17 +08:00
  • cd4ea16609 cgen: add more detailed cgen stage timing info on -show-timings Delyan Angelov 2022-12-29 17:33:40 +02:00
  • a6bf20f3be builtin: add .is_alias to FieldData too (part 1, unimplemented yet) Delyan Angelov 2022-12-29 12:43:55 +02:00
  • f4b110b1a4 vrepl: fix $tmpl('hello.txt') (fix #16789) (#16793) yuyi 2022-12-29 17:30:25 +08:00
  • ed06618498 cgen: fix generic func arg type when passing array compile-time field (#16798) Felipe Pena 2022-12-29 06:23:57 -03:00
  • 2ebd3f0cdb checker,cgen: make boolean field.is_<field> accessible at compile-time as well (#16796) Felipe Pena 2022-12-28 19:19:47 -03:00
  • ad9ca349dc cgen: fix generics array delete (#16794) Swastik Baranwal 2022-12-29 03:45:47 +05:30
  • 4718a818b8 vfmt: fix alignment of value formatting for "x := {.: 1, : 2}" Delyan Angelov 2022-12-28 18:06:32 +02:00
  • 1709d175bb tools/fast: make the header a link to /, to ease navigation Delyan Angelov 2022-12-28 13:51:26 +02:00
  • 101aa4aeb0 tools/fast: add navigation links to older stat pages Delyan Angelov 2022-12-28 13:35:30 +02:00
  • 0f37ff197b checker: fix fn call with generic []T arg (#16781) Felipe Pena 2022-12-28 06:05:11 -03:00
  • b171102b03 os: minor optimization in os.v (#16791) yuyi 2022-12-28 16:28:47 +08:00
  • b9996619d5 cgen: fix result/option breaks execution order in if statements (fix #16663) (#16778) yuyi 2022-12-28 16:26:39 +08:00
  • afdb09708e ci: comment out the -autofree compilation for gitly for now Delyan Angelov 2022-12-27 20:51:40 +02:00
  • 161595b041 examples: use math.vec in examples/sokol/particles (#16780) Larpon 2022-12-27 14:19:08 +01:00
  • c5c7b3a054 checker: fix comptime var param passing with comptime selector (#16777) Felipe Pena 2022-12-27 10:14:58 -03:00
  • a8f6f9ed60 checker: more precise error handling of large binary literals like 0b1000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000 (#16775) Delyan Angelov 2022-12-27 15:13:15 +02:00
  • 508bfbf892 time: do not panic for time.parse("2020-02-02 20.02.20")!, just return an error instead (fix #16779) Delyan Angelov 2022-12-27 12:58:43 +02:00
  • 6b3f8f519d cgen: fill in the new FieldData fields, add tests (#16774) weekly.2022.52 Delyan Angelov 2022-12-26 23:35:13 +02:00
  • 9b28a7aa96 checker,cgen: fix comptime value recognition on generic arguments (#16768) Felipe Pena 2022-12-26 13:44:18 -03:00
  • 3a1e7b71ea cgen: fix array filter with an inline closure (fix #16770) (#16772) yuyi 2022-12-26 22:14:28 +08:00
  • 3d545ee0cd builtin: add more fields to FieldData (will be implemented later in a PR, to ease bootstrapping) Delyan Angelov 2022-12-26 16:05:14 +02:00
  • 94a36c5ca4 tests: remove module main from tests, that do not need to be internal Delyan Angelov 2022-12-26 15:31:23 +02:00
  • 728b4cffc3 ci: reorder v_apps_and_modules_compile.yml so that quick checks are done first Delyan Angelov 2022-12-26 12:54:48 +02:00
  • 68883fc4d9 os: fix os.file_ext('/tmp/.gitignore') previously returning '.gitignore' => it now returns '' (#16771) yuyi 2022-12-26 18:53:38 +08:00
  • 64ed007f94 cgen: fix generic struct init with inconsistent generic optional types (#16766) yuyi 2022-12-25 18:06:13 +08:00
  • 21d6bd930e ast, cgen: fix printing nested generic struct (#16758) yuyi 2022-12-25 15:57:16 +08:00
  • 85b4af5440 make: add OpenBSD detection to GNUmakefile (#16760) Brian Callahan 2022-12-25 02:55:41 -05:00
  • 776fbdfb23 readme: cleanup the additional graphics libraries installation instructions Delyan Angelov 2022-12-24 11:59:30 +02:00
  • d55715884a readme: add instructions for installing the libraries needed for the graphics examples on Fedora Delyan Angelov 2022-12-24 11:55:01 +02:00
  • 6a179a2926 checker: add int signedness mismatch checking for function call arguments (#16750) weekly.2022.51 Felipe Pena 2022-12-24 01:28:35 -03:00
  • 0128d2dd1c ast, parser: fix wrong type name of nested generics (#16749) yuyi 2022-12-24 12:19:51 +08:00
  • e9cad6f09d ci: fix v-apps-compile job for AdventOfCode, by adding v install regex too (#16752) Felipe Pena 2022-12-24 01:14:48 -03:00
  • 9dbc2afc5b net.html: fix typo in README.MD (#16747) Charles WANG 2022-12-23 15:37:08 +08:00
  • b21e5b71ba cgen: fix call arg type changing on match expr (#16744) Felipe Pena 2022-12-22 20:58:52 -03:00
  • fc5826b7ca cgen: minimise sizeof(EmptyStruct) to 0 for gcc/clang and to 1 for tcc/msvc, by changing EMPTY_STRUCT_DECLARATION and EMPTY_STRUCT_INITIALIZATION (#16733) Delyan Angelov 2022-12-22 21:47:39 +02:00
  • e01dac885c builtin: fix m.len to 0, after calling map.clear() (#16720) yuyi 2022-12-23 03:36:33 +08:00
  • f9043c84a7 builtin: optimise the initialisation of the common 1 byte element arrays []u8 Delyan Angelov 2022-12-22 20:08:05 +02:00
  • 8f8a186158 builtin: support -d trace_vmemset, -d trace_vmemcmp, -d trace_vmemmove and -d trace_vmemcpy too Delyan Angelov 2022-12-22 20:05:08 +02:00
  • b67705f568 builtin: move the -d trace_*alloc lines at the start of their corresponding functions, implement -d trace_memdup too Delyan Angelov 2022-12-22 19:36:15 +02:00
  • 3da4f37b01 cgen: improve generated source compatibility with latest Alpine (lacking libexecinfo-dev and execinfo.h) and the prebuilt tcc (#16743) Delyan Angelov 2022-12-22 15:01:51 +02:00
  • e519bdf0eb checker: check generic method receiver type mismatch (#16739) yuyi 2022-12-22 19:37:46 +08:00
  • 82a3551313 checker, cgen: fix match expr with branch returning (#16741) yuyi 2022-12-22 18:55:44 +08:00
  • 3c5cfa22d1 parser: disallow the array init: attr, when the len: attr is not provided (#16735) Swastik Baranwal 2022-12-22 00:54:16 +05:30
  • 87f8069728 ci: fix warnings for compiling builder_test.v too Delyan Angelov 2022-12-21 21:14:21 +02:00
  • 46ced75184 ci: fix v test-self failures related to cmd/tools/vcreate_test.v Delyan Angelov 2022-12-21 21:13:06 +02:00
  • 68501677e3 ci: fix gg-regressions failure Delyan Angelov 2022-12-21 21:03:47 +02:00
  • 88e33a83de gg: fix draw_image on macos native; vcreate: vweb template Alexander Medvednikov 2022-12-21 19:33:19 +03:00
  • ccbb8ab0ca ast, parser: fix generic struct init with nested generic struct (#16736) yuyi 2022-12-22 00:32:54 +08:00
  • 1cde55478d cgen: fix cgen errors for overloaded operators using reference types for the receiver and operand (fix #16725) (fix #15859) (#16726) Delyan Angelov 2022-12-21 09:10:30 +02:00
  • d19c1ef087 vpm: fix the direct installation of github repositories via the --git flag (#16724) Swastik Baranwal 2022-12-20 21:08:08 +05:30
  • 2f9becc98d cgen: fix debug generated code with -g, while fixing #16690 (#16723) Felipe Pena 2022-12-20 11:41:42 -03:00
  • 3c920f2ee6 x.json: fix parsing of time fields, that have just a single date encoded inside the parsed string (fix #16722) Delyan Angelov 2022-12-20 16:34:04 +02:00
  • c84eb29b78 js: use write() on the freestanding backend (#16704) pancake 2022-12-20 12:16:06 +01:00
  • 11521a70e4 readme: add modules badge and fix twitter url/badge inconsistency with others (#16716) Makhnev Petr 2022-12-20 11:56:10 +04:00
  • eb8e8b8642 rand: add Blackman/Vigna xoroshiro128++ PRNG (#16712) John 2022-12-20 03:53:30 -04:00
  • 0fe7ae3a60 cgen: remove repeated code (#16718) Felipe Pena 2022-12-20 04:52:37 -03:00
  • 7e4dc24f1b math: add math.vec module with generic 2D, 3D and 4D vector operations (#16710) Larpon 2022-12-19 17:10:48 +01:00