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
Delyan Angelov
c075e44ec1
ci,examples: fix v examples/sokol/simple_shader_glsl/simple_shader.v
, ensure it compiles on the misc-tooling
job ( #19404 )
2023-09-21 19:44:58 +03:00
yuyi
baf5d8a102
checker: fix generic comparison for conditional assignment ( #19401 )
2023-09-21 14:34:51 +03:00
yuyi
4f7dbbfa52
cgen: fix fixed array of option type default ( #19397 )
2023-09-21 09:45:23 +03:00
Yamamoto Haruhi
7169df3e57
builder: fix compiling code, importing a local module in src/modules
( #19396 )
2023-09-20 19:22:00 +03:00
Delyan Angelov
f93d257d29
all: support short lambda expressions like a.sorted(|x,y| x > y), in all callsites that accept a fn callback ( #19390 )
2023-09-20 17:22:16 +03:00
yuyi
175a3b2684
parser: fix fixed array of option values (_ := [10]?int{}
) ( #19392 )
2023-09-20 15:34:42 +03:00
asvln
6d56639cc1
orm: quote table and field name in [references]
( #19387 )
2023-09-20 08:56:58 +03:00
Delyan Angelov
cb9584fefe
ci: v fmt -w vlib/v/doc/doc.v and vlib/v/pref/os.v
2023-09-20 08:55:32 +03:00
Slashscreen
33754f43fa
all: support -os plan9
, $if plan9 {
, and _plan9.c.v
(stage 1 for plan9) ( #19389 )
2023-09-20 07:27:30 +03:00
yuyi
fdabd27be8
cgen: fix channel of interface ( fix #19382 ) ( #19383 )
2023-09-19 14:02:26 +03:00
Swastik Baranwal
f9334c8340
checker: disallow assigning pointer values to option struct fields ( #19380 )
2023-09-19 13:59:57 +03:00
Delyan Angelov
350a8d3b35
ci: fix ./v -W examples/eventbus/eventbus.v
after 551a065 (todo: perhaps it should be reverted completely)
2023-09-19 07:24:55 +03:00
Alexander Medvednikov
77219de173
ci: bring back gitly
2023-09-18 23:44:22 +03:00
Alexander Medvednikov
551a065ce6
eventbus: V ui on_key_down fix
2023-09-18 23:42:32 +03:00
yuyi
ff452cc514
cgen: fix interface with multiple embedded fields ( #19377 )
2023-09-18 23:22:19 +03:00
Swastik Baranwal
be53b02511
checker: require else
branch in [flag]
enum match ( #19375 )
2023-09-18 16:07:30 +03:00
Casper Küthe
74d80a5120
orm: add support for V enum struct fields ( #19374 )
2023-09-18 16:06:26 +03:00
yuyi
e1a48d6c2e
fmt: simplify formatting struct field comments ( #19373 )
weekly.2023.38
2023-09-17 19:45:43 +03:00
yuyi
ec0d5dd258
checker, cgen: fix printing smartcast interface variable ( fix #18886 ) ( #19372 )
2023-09-17 19:44:13 +03:00
shove
e6ba68703e
scanner: fix unknown escape sequence in ident_char ( fix #19363 ) ( #19369 )
2023-09-17 14:29:57 +03:00
Kim Shrier
92b452d8f8
freebsd: fix compilation of b/vlib/v/gen/c/testdata/translated_module.vv with tcc ( #19370 )
2023-09-17 08:12:12 +03:00
Casper Küthe
2002db703a
orm: support different foreign key types, not just an integer id ( #19337 )
2023-09-17 07:58:56 +03:00
Delyan Angelov
bfb22c29c9
ci: wait more in the doom-regressions and gg-regressions jobs, to reduce the chance of false positives
2023-09-17 07:11:11 +03:00
Delyan Angelov
9f5f82b2b7
all: do not warn/error for import flag as _
2023-09-16 23:41:20 +03:00
Delyan Angelov
248aec3203
checker: fix ./v -d trace_checker -usecache -o x cmd/v
2023-09-16 22:52:54 +03:00
Delyan Angelov
bb95a27618
parser: do not panic for v -silent -check-syntax bug.v
, where bug.v is mut z_buffer := [][]
2023-09-16 18:41:39 +03:00
Delyan Angelov
6698e2867a
docs: add a code sample showing how to delete rows with the builtin ORM
2023-09-16 17:36:22 +03:00
Delyan Angelov
b88840e376
ci: bump the timeout-minutes for vinix-build to 10, to reduce false positives
2023-09-16 17:17:13 +03:00
Delyan Angelov
cf0856cea9
tools: add -E flag to v test-parser
, that will show the partial source that caused the parser to fail with -no-builtin -check-syntax file.v
2023-09-16 17:17:13 +03:00