Joe Conigliaro
|
3b6e122d9d
|
all: comptime_call - update tmpl scope vars with caller scope vars after their properties got updated in checker
|
2022-03-01 02:13:29 +11:00 |
yuyi
|
0028e557f9
|
checker: cleanup smartcast in checker.v (#13618)
|
2022-02-28 17:06:37 +02:00 |
yuyi
|
9a2df0df0e
|
cgen: fix fn mut argument of interface type (#13616)
|
2022-02-28 13:31:04 +02:00 |
yuyi
|
013589e9fe
|
parser: minor cleanup in global_decl() (#13617)
|
2022-02-28 13:30:17 +02:00 |
Subhomoy Haldar
|
a0d9e6e1c2
|
rand: extend PRNG interface, add buffering support (#13608)
|
2022-02-28 13:17:54 +02:00 |
yuyi
|
efeb3e04da
|
ast: add table.is_sumtype_or_in_variant() (#13615)
|
2022-02-28 11:38:20 +03:00 |
yuyi
|
81c787ef91
|
checker: fix match expr with assign sumtype variable (#13614)
|
2022-02-28 11:37:59 +03:00 |
yuyi
|
bc16c61f6f
|
parser: check using 'mut' on fn_decl return type (#13610)
|
2022-02-27 14:23:43 +02:00 |
yuyi
|
0fb1eaef04
|
parser: check the redefinition of built-in IError (#13606)
|
2022-02-26 09:52:40 +02:00 |
yuyi
|
0d9792bdf2
|
ast: cleanup in find_method_with_generic_parent() (#13600)
|
2022-02-26 02:11:56 +03:00 |
Larpon
|
d80f5165dd
|
fmt: keep trailing comments after fn header decl (#13596)
|
2022-02-25 16:36:48 +03:00 |
yuyi
|
83ea97b1a3
|
parser: fix optional expr with array value (#13599)
|
2022-02-25 15:54:12 +03:00 |
Larpon
|
73f931b52e
|
fmt: improve single line const comment placement (#13595)
|
2022-02-25 14:46:12 +02:00 |
Bastian Buck
|
fa645516c3
|
crypto: implement Output Feedback (OFB) Mode for AES and DES (#13583)
|
2022-02-24 14:38:21 +02:00 |
Bastian Buck
|
0d07a64230
|
crypto: implement Counter (CTR) Mode for AES and DES (#13582)
|
2022-02-24 12:06:33 +02:00 |
yuyi
|
d30ad344e8
|
checker: check error for array of sumtype appendding (#13593)
|
2022-02-24 11:07:03 +02:00 |
yuyi
|
a28249c119
|
ast: fix for in iterator of generic struct (fix #13579) (#13585)
|
2022-02-24 10:48:52 +02:00 |
Subhomoy Haldar
|
114a341f5f
|
rand: simplify rand.PRNG, move to optional types for error handling (#13570)
|
2022-02-23 12:36:14 +02:00 |
Bastian Buck
|
5c0b7b0d05
|
crypto: implement Cipher Feedback (CFB) Mode for AES and DES (#13566)
|
2022-02-23 11:55:16 +03:00 |
yuyi
|
b5e7cef1b1
|
ast: define 'const invalid_type_idx = -1' (#13573)
|
2022-02-23 11:54:43 +03:00 |
yuyi
|
c3ec738126
|
checker: check struct field reference type mismatch (#13575)
|
2022-02-23 11:53:22 +03:00 |
Delyan Angelov
|
d2e8302d21
|
ci: show failing compilation output in draw_fns_api_test.v (make diagnostic easier)
|
2022-02-22 16:53:06 +02:00 |
yuyi
|
6486fffc5a
|
checker: cleanup `map = {}` processing (#13563)
|
2022-02-22 16:04:54 +02:00 |
Vincenzo Palazzo
|
6a876d4170
|
datatypes: small fix for the BST node constructor (#13569)
|
2022-02-22 15:41:30 +02:00 |
Larpon
|
1032cf5c04
|
checker: only cast as ast.Var if not unresolved, fixes #13561 (#13562)
|
2022-02-22 15:23:15 +02:00 |
Delyan Angelov
|
33d379d530
|
ci: vfmt vlib/net/socket.v
|
2022-02-22 15:21:20 +02:00 |
gcxfd
|
ee1de06678
|
net: extract a common Socket struct, reuse it by embedding in TcpSocket & UdpSocket (#13559)
|
2022-02-22 10:34:38 +02:00 |
Vincenzo Palazzo
|
7bd8503170
|
datatypes: add a binary search tree implementation (#13453)
|
2022-02-22 10:28:01 +02:00 |
Delyan Angelov
|
4a765bc33b
|
cgen: support `-d trace_gen_source_line_info`
|
2022-02-21 23:04:10 +02:00 |
Delyan Angelov
|
f2e5bb447e
|
os: remove dead code
|
2022-02-21 22:57:24 +02:00 |
yuyi
|
07e9ed1a1d
|
cgen: fix interface embedding method call (#13553)
|
2022-02-21 17:49:38 +02:00 |
playX
|
b842e89acc
|
all: initial implementation of compile-time types (#13549)
|
2022-02-21 17:42:54 +02:00 |
yuyi
|
83cdd8bedd
|
ast: add comments for struct 'StructInit' and 'StructInitField' (#13551)
|
2022-02-21 12:48:53 +02:00 |
simon place
|
8ba4a3dd01
|
math.complex: make mutable the Complex.re and Complex.im fields (#13540)
|
2022-02-21 12:39:45 +02:00 |
kahsa
|
809772db4e
|
gg: improve Context scale for Android (#13545)
|
2022-02-21 12:12:21 +02:00 |
yuyi
|
04654ed518
|
parser: check error for defer propagate (fix #13534) (#13536)
|
2022-02-20 12:29:08 +02:00 |
yuyi
|
75ebac006d
|
cgen: fix struct init with multi nested embed update expr (#13529)
|
2022-02-19 20:46:44 +02:00 |
gcxfd
|
dbae2d6af4
|
net: add UdpSocket.address() method (#13524)
|
2022-02-19 20:45:55 +02:00 |
yuyi
|
09f08e1fee
|
cgen: fix error for interface and embedded struct build (#13530)
|
2022-02-19 20:43:40 +02:00 |
eyun
|
67e33bf9bc
|
checker: make public the valid_comptime_if_os list (#13518)
|
2022-02-19 15:22:33 +02:00 |
yuyi
|
0236931c78
|
cgen: fix generics with reference generic arguments (#13525)
|
2022-02-19 15:19:50 +02:00 |
Dialga
|
bcc4de19fc
|
v.builder: fix cross compiling directory with spaces (#13522)
|
2022-02-19 10:08:41 +02:00 |
yuyi
|
0208e9672d
|
checker: check array sort_with_compare callback function parameters (#13511)
|
2022-02-19 10:06:36 +02:00 |
Delyan Angelov
|
d86b18844e
|
net.unix: use byte() instead of u16() cast for addr.sun_family
|
2022-02-18 13:47:12 +02:00 |
Delyan Angelov
|
3c38abc56e
|
rand: fix rand.uuid_v4()'s clock_seq_hi_and_reserved field
|
2022-02-18 12:43:38 +02:00 |
Delyan Angelov
|
c9867a9ae4
|
net: ensure that `net` and `net.unix` can be imported together in the same program
|
2022-02-18 11:47:56 +02:00 |
yuyi
|
14073ac0fe
|
checker: fix error for array of sumtype init (#13501)
|
2022-02-18 11:47:24 +02:00 |
Subhomoy Haldar
|
072480352c
|
math.big: add get_bit, set_bit, big_mod_pow (#13507)
|
2022-02-18 11:53:39 +03:00 |
Delyan Angelov
|
ef5ea0ef21
|
ci: fix vweb failures (restore the ability to *force* vweb to listen to *only* local interfaces)
|
2022-02-18 10:18:04 +02:00 |
Joe Conigliaro
|
f4051e0252
|
checker: make sure generic struct instantiation uses a known type. closes #13506
|
2022-02-18 17:54:52 +11:00 |
Anton Zavodchikov
|
da9331f8ff
|
vweb: support ipv6 (#13498)
|
2022-02-17 23:13:36 +03:00 |
Joe Conigliaro
|
d739abbb3f
|
cgen: move var decl out of loop in global_decl()
|
2022-02-18 00:42:54 +11:00 |
Joe Conigliaro
|
07b15a209a
|
cgen: fix for prev commit - get usecache working with clang (fix duplicate symbols)
|
2022-02-17 22:24:58 +11:00 |
Joe Conigliaro
|
6fc654821f
|
cgen: get usecache working with clang (fix duplicate symbols)
|
2022-02-17 22:17:07 +11:00 |
Delyan Angelov
|
245b70cabc
|
checker: bump iface_level_cutoff_limit to 100 (fix ci)
|
2022-02-17 11:46:04 +02:00 |
Delyan Angelov
|
230dc26858
|
checker: bump iface_level_cutoff_limit to 99 (fix ci)
|
2022-02-17 11:42:34 +02:00 |
yuyi
|
4f9039991f
|
parser: cleanup in check_undefined_variables() (#13496)
|
2022-02-17 10:16:52 +02:00 |
Delyan Angelov
|
901a4d8b84
|
checker: restrict too deep recursion, to prevent stackoverflows on windows
For v itself, the nesting levels do not exceed 15, so a limit of 40 seems reasonable.
|
2022-02-17 10:04:11 +02:00 |
yuyi
|
842fd7a27e
|
parser: check assign expr with undefined variables of struct_init (#13495)
|
2022-02-17 10:21:03 +03:00 |
Delyan Angelov
|
89b99ad4c3
|
scanner: remove the restriction for \x00 in strings (#13493)
|
2022-02-16 23:41:05 +02:00 |
blackshirt
|
54b10e99a1
|
ed25519: make public ed25519.internal.edwars25519.Element (#13488)
|
2022-02-16 22:56:14 +02:00 |
Tarcisio Gruppi
|
f68144774d
|
fmt: fix map missing a comma after enum keys, leading to non parsable code (#13481)
|
2022-02-16 21:08:29 +02:00 |
yuyi
|
f8b8950b96
|
checker: check mut interface arguments (#13479)
|
2022-02-16 11:53:41 +02:00 |
Alexander Medvednikov
|
5a14748e7c
|
cgen: c2v enum fix
|
2022-02-16 12:05:32 +03:00 |
Delyan Angelov
|
9c24d09dc3
|
strconv: bug fix for "${239.5:0.0f}" (#13483)
|
2022-02-16 11:33:29 +03:00 |
starryskye
|
6d2a88e31f
|
net.smtp: add STARTTLS and implicit SSL support (#13473)
|
2022-02-16 09:18:51 +02:00 |
vyrus001
|
d4fc8601e0
|
builder: fix clang failing to link on windows due to an -ftlo error (#13470)
|
2022-02-16 09:13:26 +02:00 |
blackshirt
|
3ac4155f0c
|
crypto: add an ed25519 digital signature module (#13476)
|
2022-02-15 21:28:14 +02:00 |
Delyan Angelov
|
ff34b79d39
|
crypto: implement `rand.bytes(needed_bytes int) ?[]byte`, use it consistently instead of the old rand.read(), which will change to be compatible with io and the pseudo random `rand` module
|
2022-02-15 18:39:33 +02:00 |
Larpon
|
80444c8ec4
|
strings: add find_between_pair (#13468)
|
2022-02-15 15:12:15 +02:00 |
Delyan Angelov
|
d25652fbcf
|
parser, ast: support -d for trace_rewrite_already_registered_symbol, trace_register_sym, trace_parse_stmt, trace_parse_comptime, trace_parse_text, trace_parse_file, trace_parse_vet_file
|
2022-02-15 13:20:40 +02:00 |
yuyi
|
fb3dd82400
|
cgen: fix interface embedding complex cases (#13472)
|
2022-02-15 12:41:40 +02:00 |
yuyi
|
f9fc136c24
|
all: rename InterfaceDecl.ifaces to InterfaceDecl.embeds (#13475)
|
2022-02-15 11:17:39 +02:00 |
crthpl
|
e23db2f9b7
|
cgen: fix autogen free method for struct with shared field (#13469)
|
2022-02-15 03:55:06 +02:00 |
yuyi
|
dc0b0c83c6
|
ast: fix error for interface embedding call (#13466)
|
2022-02-14 19:22:44 +02:00 |
Delyan Angelov
|
f8bf3db568
|
markused: always include slice_ni & substr_ni too (support s#[] and a#[] in -skip-unused)
|
2022-02-14 19:05:30 +02:00 |
yuyi
|
8119a297f7
|
ast: fix error for 'struct embed is interface' (#13465)
|
2022-02-14 13:43:36 +02:00 |
yuyi
|
b2f984280b
|
checker: strengthen the judgment of generic type parameters replacement, merge generic type init tests (#13460)
|
2022-02-14 02:38:47 +02:00 |
yuyi
|
2e0f8ee9e2
|
ast: fix error for struct embedding with interface (#13457)
|
2022-02-14 02:33:47 +02:00 |
Vincenzo Palazzo
|
bf11df40e2
|
readline: give the possibility to ignore the empty line in the history (#13452)
|
2022-02-14 00:12:25 +02:00 |
blackshirt
|
57e850e932
|
crypto.sha512, crypto.sha256 : Make public the `write()` and `sum()` methods (#13461)
|
2022-02-14 00:10:50 +02:00 |
Delyan Angelov
|
74048e2f17
|
net: simplify the TcpConn.read_line/0 method, accumulate partially read lines, use a string builder, instead of concatenation
|
2022-02-13 22:42:38 +02:00 |
Vincenzo Palazzo
|
6ea4f361a1
|
urllib: fixed regression in the set function (#13455)
|
2022-02-13 15:06:00 +02:00 |
Delyan Angelov
|
bad30bdd79
|
os: allow using XDG_CACHE_HOME for choosing the folder returned by `os.cache_dir()` on windows too
|
2022-02-13 11:18:51 +02:00 |
yuyi
|
5071a54b99
|
cgen: split up into for.v, match.v, struct.v (#13454)
|
2022-02-13 07:52:49 +03:00 |
yuyi
|
b5379255da
|
checker, cgen: fix error for struct embed with fn type (#13450)
|
2022-02-12 20:55:40 +02:00 |
Delyan Angelov
|
a74d28ae5f
|
sync,ci: bump vtest retry for channel_select_6_test.v
|
2022-02-12 19:22:27 +02:00 |
Delyan Angelov
|
799c95dc4e
|
tests: filter test_ fns with params from the list of automatically run test functions (fix #13443)
|
2022-02-12 17:30:20 +02:00 |
Delyan Angelov
|
11a0df5bee
|
tests: rename struct_with_reference_alias_field.v to struct_with_reference_alias_field_test.v
|
2022-02-12 15:29:22 +02:00 |
crthpl
|
0eee012ae9
|
cgen: fix `x in shared_map` (#13442)
|
2022-02-12 11:55:25 +02:00 |
Tim Basel
|
37c151efe5
|
docs, builtin, encoding.csv: update error implementations (#13440)
|
2022-02-12 11:54:10 +02:00 |
yuyi
|
ae0e90f5d8
|
cgen: fix struct init with embed field update (#13444)
|
2022-02-12 08:16:51 +03:00 |
yuyi
|
7178367de0
|
all: fix error for comptime for in field with generic fn (fix #13409) (#13439)
|
2022-02-11 22:00:13 +02:00 |
Tim Basel
|
9d0a5942ac
|
builtin: change IError `msg` and `code` to methods + fix vlib, add a deprecation notice for the old usages (#13041)
|
2022-02-11 15:52:33 +02:00 |
Vincenzo Palazzo
|
61024d4b75
|
repl: support aliased module imports too (#13423)
|
2022-02-11 15:03:14 +02:00 |
Juergen Donnerstag
|
654bc49d3c
|
os: implement win_read_string on os.Process (#13428)
|
2022-02-11 13:02:00 +02:00 |
yuyi
|
a21f4563b3
|
checker: check the arity and the kinds of the type parameters in generic struct inits (#13429)
|
2022-02-11 11:21:07 +02:00 |
Vincenzo Palazzo
|
7f29418c63
|
strconv: change atof64 to return an error, if the parsed value is not a valid number (#13424)
|
2022-02-10 13:27:32 +02:00 |
Delyan Angelov
|
9ed18efa53
|
checker: error on redefining any of the public builtin functions, not just ['print', 'println', 'eprint', 'eprintln', 'isnil', 'panic', 'exit'] (#13419)
|
2022-02-10 12:26:30 +02:00 |
yuyi
|
f2eb50008d
|
parser, checker: cleanup struct short syntax processing (#13416)
|
2022-02-09 18:31:16 +02:00 |