16310 Commits

Author SHA1 Message Date
Alexander Medvednikov
5b1b2cc7c0 V 0.4.2 0.4.2 2023-09-30 15:08:26 +03:00
Alexander Medvednikov
5cc1db8318 0.4.2 changelog 2023-09-30 14:41:41 +03:00
Delyan Angelov
ced5f213ef
checker: allow for const source = $embed_file(@FILE).to_string() 2023-09-30 08:50:02 +03:00
yuyi
ae5b4bbd17
checker: check fixed array init with default expression (#19472) 2023-09-29 22:06:30 +03:00
Delyan Angelov
24278d82ba
os, v.builder: show more details, when a program ran by v run file.v, exits by a signal (fix #19412) (#19471) 2023-09-29 22:02:59 +03:00
Delyan Angelov
1476daf803
docs: fix note about submodule names 2023-09-29 14:02:17 +03:00
Delyan Angelov
137cb09426
gg: cleanup in init_pipeline 2023-09-29 13:06:15 +03:00
Delyan Angelov
6fc3a3d088
examples: add examples/gg/sample_count.v, showing the influence of the sample_count gg.Config parameter 2023-09-29 12:06:06 +03:00
Anton Zavodchikov
aa3832ceda
net.html: make public the CloseTagType enum (#19468) 2023-09-29 12:00:41 +03:00
yuyi
74997fd824
ast, cgen: fix as cast with call expr (fix #19453) (#19462) 2023-09-29 11:59:14 +03:00
Larpon
b5f71dffe4
datatypes: improve the doc strings for RingBuffer and its methods (#19464) 2023-09-28 19:07:26 +03:00
Turiiya
1a2ad27e79
vcreate: update templates, add lib (#19444) 2023-09-28 19:06:00 +03:00
Swastik Baranwal
9a03e18b81
fmt: keep anon struct decl fields in interfaces (#19461) 2023-09-28 18:59:45 +03:00
yuyi
4941a47018
cgen: fix array of fns index call with direct_array_access mode (#19460) 2023-09-28 14:32:43 +03:00
Keito Tobichi
86a2917fdd
examples: add another graph example for bread first search with backtracking (#19463) 2023-09-28 14:23:58 +03:00
Delyan Angelov
fbd4529fbb
ci: add ./v install markdown for the VPM compilation steps 2023-09-28 14:20:10 +03:00
Swastik Baranwal
8f69bd1311
cgen: fix type VType = &C.CType (#19452) 2023-09-27 21:17:17 +03:00
Turiiya
92a534a55b
github: remove unintended line break in issue voting note (#19455) 2023-09-27 21:13:13 +03:00
yuyi
ec30256c7f
builtin: cleanup obsolete function in string.v and array.v (#19451) 2023-09-27 19:49:33 +03:00
yuyi
981f76cd04
builtin, cgen: fix printing slice of fn call string (#19450) 2023-09-27 14:53:56 +03:00
Delyan Angelov
b3ee304381
tests: skip testing v -os windows -experimental -b native -o hw.exe examples/hello_world.v on !windows 2023-09-27 12:31:33 +03:00
Delyan Angelov
e115d4461c
checker: allow for each(a, |x| println(x)), i.e. using lambda expressions, when expecting fn (x int) 2023-09-27 11:49:12 +03:00
Delyan Angelov
b81a5325ef
arrays: add arrays.each, arrays.each_indexed, and tests for them 2023-09-27 11:26:05 +03:00
Delyan Angelov
3de43b82e0
v.ast: improve Stmt.str(), showing more details about ast.Block, ast.DeferStmt, ast.ForInStmt, ast.GlobalDecl 2023-09-27 11:11:41 +03:00
squidink7
12ee3fa86a
toml: add decoding for struct fields of type map[string]T (#19447) weekly.2023.39 2023-09-26 12:53:24 +03:00
Artem Yurchenko
bd9f42d14f
github: improve the voting message for issues (#19448) 2023-09-26 12:48:34 +03:00
Slashscreen
8b31eab88d
cgen: remove the special plan9 support code, treat it instead as a posix system in cheaders.v (#19445) 2023-09-26 07:20:48 +03:00
wygsh
245f8e39f1
cgen: fix promoting an alias typed value, to a sumtype of the alias's base type (fix #19407) (#19423) 2023-09-26 07:17:48 +03:00
Artem Yurchenko
a8a3d3a64d
CONTRIBUTING: use a direct link, to filter and order issues by likes (#19442) 2023-09-26 07:02:39 +03:00
Spydr
20bce37deb
native: parse dll files to resolve extern symbols (#19433)
* add simple parsing of dll files to resolve extern symbols
* use enums instead of string values in offsetof functions to reduce bug risks
* add `-d no_backtrace` to native test options
2023-09-25 12:58:17 +03:00
Nemoola
07bd94fa14
v.builder: fix compiling code, that imports modules from both src/modules and modules (#19437) 2023-09-25 12:48:43 +03:00
Adam Oates
e7aa6a1870
parser, checker: allow lambdas anywhere anonymous functions are expected (#19436) 2023-09-25 12:45:27 +03:00
yuyi
28234c76c6
cgen: fix interface with option field (#19434) 2023-09-24 19:54:22 +03:00
yuyi
b30426aafb
cgen: cleanup in comptime_if_conds() (#19432) 2023-09-24 19:52:41 +03:00
Ikko Eltociear Ashimine
7e08a50ea5
builtin: fix typo in string.v (#19431) 2023-09-24 15:11:47 +03:00
Alexander Medvednikov
a1f5552529 checker: warn -> error for uninitialized ref fields 2023-09-24 15:10:39 +03:00
yuyi
7bfb35dd1c
cgen: cleanup in array.v (#19429) 2023-09-24 05:48:48 +03:00
Delyan Angelov
a685088fbd
checker: support lambda expressions in array methods like a.map(|x|x*10) too (#19424) 2023-09-23 22:08:48 +03:00
yuyi
9954f89e3f
checker, cgen: fix fixed array of option with default value (#19422) 2023-09-23 22:03:22 +03:00
yuyi
1c9ab77499
cgen: cleanup verbose code in assign_stmt() (#19421) 2023-09-23 15:55:34 +03:00
yuyi
83d461441e
cgen: fix struct field option type with default value init (#19420) 2023-09-23 15:54:08 +03:00
encyclopaedia
04d28f2a74
arrays: add a partition function, that splits a given array, based on a criteria, passed as a callback fn (#19417) 2023-09-23 15:52:54 +03:00
yuyi
5905f63e95
parser: fix assigning with in another module sumtypes 2 (#19415) 2023-09-23 08:59:48 +03:00
Delyan Angelov
3fab3213b8
docs: update the $embed_file() section (#19416) 2023-09-22 21:37:16 +03:00
yuyi
9929e956f0
parser: fix assigning with in another module sumtypes (#19414) 2023-09-22 18:00:26 +03:00
Delyan Angelov
ed42341642 pref,builder: support -use-os-system-to-run to workaround segfaults using not fully updated xcode command line tools 2023-09-22 14:10:01 +03:00
Tobias Neitzel
3fb1230cc3
toml: fix toml encoding of complex types (#19408)
* Improve default toml encoder for complex types

The default toml encoder failed for more complex structs, as certain
edge cases were not covered. This commit attempts to fix this by adding
additional handling for these edge cases.

* Improve map encoding

Since maps currently only support keys that have a string
representation, we can utilize this during map encoding.

* Add test cases for toml encoding

Added test cases for toml encoding of complex nested structs and structs
that contain maps.

* Add additional test cases
2023-09-22 13:00:10 +03:00
Delyan Angelov
edc9ff4f12
examples: add more .obj files for 06_obj_viewer (#19406) 2023-09-22 09:59:52 +03:00
yuyi
b440f693aa
cgen: fix fixed array with index variable (#19405) 2023-09-22 02:31:30 +03:00
Swastik Baranwal
5ddbbfcfd8
checker: allow using ! and ~ on aliased bool and integral types (#19403) 2023-09-21 19:46:26 +03:00