MatejMagat305
a99149334c
sync.pool: fix pointer cast warning ( #16902 )
2023-01-08 12:34:46 +02:00
Felipe Pena
a60f34e6dd
cgen: fix array_init generated code for reference var ( #16894 )
2023-01-07 12:04:04 +02:00
Swastik Baranwal
2aced13942
checker: disallow all operations beside assignment, on multi return values ( #16890 )
2023-01-07 11:53:20 +02:00
Felipe Pena
7fa7fec304
cgen: minor refactor - reduce repeated code ( #16886 )
2023-01-07 11:49:57 +02:00
Delyan Angelov
de2ed7497a
ci: update struct_init_with_interface_pointer_and_embed_test.v to match 2119a24
2023-01-06 15:01:33 +02:00
Delyan Angelov
725456cde0
ci: fix warnings in v -cc gcc -keepc -freestanding -o bel vlib/os/bare/bare_example_linux.v
2023-01-06 14:55:01 +02:00
Delyan Angelov
2119a240e8
checker: follow up to 43d8bc3
, separate setting the default type for fields with default expressions into its own independent loop
2023-01-06 14:47:57 +02:00
Felipe Pena
3b594d6cd8
checker, cgen: allow iterating over optional array fields ( #16858 )
2023-01-06 09:33:11 +03:00
Alexander Medvednikov
868908b80d
checker: require unsafe for Struct(voidptr) casts
2023-01-06 09:28:11 +03:00
Hitalo Souza
0146509516
examples: fullstack vweb example ( #16761 )
2023-01-06 04:36:42 +03:00
Delyan Angelov
43d8bc30f9
checker: fix unset type of a pointer field with default value, when a struct contains an embed ( fix #16882 ) ( #16883 )
2023-01-05 19:53:37 +02:00
Delyan Angelov
c1a9f42b05
ci: add vlib/v/tests/orm_sub_array_struct_test.v to the skip list for the tests-sanitize-undefined-gcc job
2023-01-05 19:51:44 +02:00
Swastik Baranwal
da68b2d369
checker: remove c.pref.is_test
exception for calling private methods in _other_ modules ( #16872 )
2023-01-05 15:41:18 +02:00
Hitalo Souza
3598e7d08e
orm: add tests for fkey:
relationship attribute and retrival of joined rows ( #16877 )
2023-01-05 15:20:15 +02:00
Hitalo Souza
8f217c00e5
x.json2: refactor/fix json2.encode, add more tests ( #16790 )
2023-01-05 15:17:38 +02:00
Felipe Pena
e3aee748ac
cgen: fix code generated for optional comptime var ( #16854 )
2023-01-05 10:54:51 +02:00
Delyan Angelov
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 )
2023-01-05 07:45:23 +02:00
Delyan Angelov
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
2023-01-04 17:50:51 +02:00
Delyan Angelov
f9e8a91cd0
v: move cmd/v/help/ to vlib/v/help, to simplify the interaction between module lookup & v recompilation ( #16867 )
2023-01-04 14:01:05 +02:00
yuyi
b8571c964d
cgen: fix json encode struct with optional field ( #16866 )
2023-01-04 12:41:07 +02:00
yuyi
0a6fc6d280
checker: fix generic stack of sumtype push() ( #16855 )
2023-01-03 18:29:29 +02:00
yuyi
2378b71f22
cgen: fix comptime if expr with optional or result call ( #16853 )
2023-01-03 14:38:08 +02:00
Swastik Baranwal
09766c44b6
checker: disallow struct{...val.$(field.name)}
( #16852 )
2023-01-03 10:21:32 +02:00
Hitalo Souza
2e54a8cb0e
x.json2: update tests ( #16847 )
2023-01-03 10:16:36 +02:00
Felipe Pena
bd2b216ac7
cgen,checker: fix method call with comptime var ( #16844 )
2023-01-03 10:14:23 +02:00
JalonSolov
395ee2b464
readme: add back align=center
to make github happy ( #16850 )
2023-01-03 10:12:08 +02:00
Ikko Ashimine
24189e02b5
tools: fix typo in vcomplete.v ( #16851 )
2023-01-03 10:11:06 +02:00
Delyan Angelov
3625a74ec5
os: add test for os.open_append ( #16846 )
...
* os: add test for os.open_append
* fix unclosed file in test_eof (it made os.open_append fail only on windows, since it got the previous file content, because the file was locked, and os.rm could not delete it)
2023-01-03 01:11:35 +02:00
Keito Tobichi
d5b9f7d026
io: fix typos ( fix #16839 ) ( #16840 )
2023-01-02 20:20:52 +02:00
Felipe Pena
b0d39814be
cgen, checker: fix conditional evaluation and code generation for $if/$else $if/$else for known true conditions ( #16823 )
2023-01-02 20:14:12 +02:00
Delyan Angelov
9bee702c62
readme: final update for the instructions for NixOS
2023-01-02 19:39:18 +02:00
Delyan Angelov
d91cf511ca
readme: update the instructions for NixOS with the correct ones
2023-01-02 19:35:10 +02:00
Delyan Angelov
c21949456e
readme: add instructions for installing the libraries needed for the graphics examples on NixOS
2023-01-02 19:30:01 +02:00
yuyi
f71572a50f
parser: fix array of functions direct call ( #16838 )
2023-01-02 14:12:07 +02:00
yuyi
9d49b69b69
ast: fix inferring generic struct ( fix #16830 ) ( #16831 )
2023-01-01 17:36:18 +02:00
yuyi
51bb630ea4
checker: fix generic fn with short generic struct init syntax ( #16828 )
2023-01-01 09:14:55 +02:00
JalonSolov
aaf3e25c3f
websocket: simplify and better handle handshake ( #16829 )
2023-01-01 09:04:09 +02:00
Delyan Angelov
d3a196977f
thirdparty: update stb_image.h to its latest version v2.27 ( #16825 )
2022-12-31 21:25:31 +02:00
Delyan Angelov
3364bf8600
cgen: add g.push_existing_comptime_values and g.pop_existing_comptime_values, use them inside Gen.comptime_for ( #16821 )
2022-12-31 18:29:19 +02:00
yuyi
1c151fbec9
cgen: fix struct optional field zero init ( #16814 )
2022-12-31 17:36:14 +02:00
Makhnev Petr
04cb6ae65f
tests: improve Teamcity test runner ( #16817 )
2022-12-31 17:26:18 +02:00
mfont
1e401d1433
bcrypt: fix issue #16769 security problem in compare_hash_and_password ( #16815 )
2022-12-31 17:18:43 +02:00
Felipe Pena
5daf39bc6a
cgen: fix typeof with comptime var ( #16816 )
2022-12-31 15:57:55 +02:00
yuyi
15c9153f1d
cgen: fix fixed array literal range index ( #16812 )
2022-12-30 13:59:54 +02:00
Felipe Pena
c10bc09e83
checker, cgen: allow $for in alias type ( #16810 )
2022-12-30 11:27:01 +02:00
Felipe Pena
f4cd3931fb
cgen: fix dump fn name using generic var ( #16805 )
2022-12-30 11:16:59 +02:00
Swastik Baranwal
828cd4fe79
checker: add check for implicit fixed array decomp in function varargs ( #16806 )
2022-12-30 01:06:41 +02:00
Felipe Pena
c7f1db2b8a
cgen: cleanup uneeded C code, when using selectorexpr on $if ( #16802 )
2022-12-29 20:30:42 +02:00
Delyan Angelov
6229f48830
checker,cgen: implement support for the new FieldData.is_alias field (part 2, follow up to a6bf20f
)
2022-12-29 19:14:13 +02:00
yuyi
6a8b6c010c
repl: minor cleanup in runner.v ( #16804 )
2022-12-29 17:55:57 +02:00