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

297 Commits

Author SHA1 Message Date
Miccah
d81b6e7805
encoding.base64: change base64 function signatures to use []byte (#8970) 2021-02-26 08:22:12 +02:00
Nick Treleaven
c03798e390
checker: disallow implicit conversion from fixed array to fooptr (#8823) 2021-02-26 00:28:47 +01:00
StunxFS
2e381f427a
net.html: use or {} in .writeln() method calls (fix #8942) (#8953) 2021-02-25 13:24:30 +01:00
Delyan Angelov
fb028abc71
net.unix: make unix_test.v more robust 2021-02-22 17:48:31 +02:00
Delyan Angelov
b01a302a4e
net.http: fix compilation of trivial examples with v -cflags -Werror 2021-02-22 17:11:02 +02:00
Swastik Baranwal
b2cdd2cac0
net.http: use .filter in sanitize/2 (#8899) 2021-02-22 14:58:48 +02:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write (#8892) 2021-02-22 13:18:11 +02:00
Delyan Angelov
b1209aac1b
ci: fix building of vlib/x/websocket/websocket_test.v 2021-02-21 17:03:25 +02:00
Delyan Angelov
bf6e9ff95a
Revert "parser: make duplicated functions an error (#8792)"
This reverts commit 21bf8fe14e.
2021-02-18 09:02:56 +02:00
zakuro
21bf8fe14e
parser: make duplicated functions an error (#8792) 2021-02-17 20:50:10 +01:00
Nick Treleaven
4ccf991f61
checker: warn when casting a fixed array (use &arr[0] instead) (#8787) 2021-02-17 20:45:11 +01:00
Nick Treleaven
0f8edd918a
checker: disallow unsafe map copy (#8720) 2021-02-17 05:19:25 +01:00
Nick Treleaven
01aa09d515
checker: do not allow copying any map lvalue (#8662) 2021-02-16 12:46:12 +01:00
Nick Treleaven
4a0367a63c
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free (#8766) 2021-02-15 17:15:52 +02:00
Nick Treleaven
ea803113c3
checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
Uwe Krüger
374739b804
all: rename [ref_only] -> [heap] (#8718) 2021-02-13 16:52:01 +02:00
bettafish04
0b777c68c3
net: fix unix sockets (#8697) 2021-02-12 20:10:06 +02:00
Delyan Angelov
58393bd3f9
ci: fix unix_test.v on unix != macos 2021-02-12 01:12:42 +02:00
Delyan Angelov
89521584a2 ci: fix unix sockets test on macos 2021-02-11 22:34:38 +02:00
bettafish04
9b4f2edbfa
net: move unix socket code to net.unix and skip net/unix/unix_test.v … (#8681) 2021-02-11 18:51:12 +02:00
Delyan Angelov
ea401b1192
ci: #include <afunix.h> in vlib/net/net_windows.c.v 2021-02-11 12:45:25 +02:00
bettafish04
d4f6488afd
net: add better unix socket support (#8651) 2021-02-11 01:24:15 +01:00
bettafish04
1a2ae0aead
net: add basic unix socket support (#8642) 2021-02-08 23:48:23 +01:00
zakuro
e30e794884
checker: add check for using a private const in another module (#8501) 2021-02-03 10:17:13 +02:00
yuyi
91af2418de
ftp: minor optimization in dir() (#8518) 2021-02-02 18:51:55 +01:00
Delyan Angelov
d57a9c419d
examples: add net_udp_server_and_client.v 2021-02-02 10:36:56 +02:00
yuyi
5ec6f7a781
ftp: fix error in dir() (#8504) 2021-02-02 08:22:52 +01:00
Swastik Baranwal
e03ece2a4b
checker: check the fn decl for anon fns too (#7529) 2021-01-29 23:11:05 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
Delyan Angelov
e0ed224a8d
Revert "net: prevent udp_test.v from running on windows without -d network"
This reverts commit 3526bc3d19.
2021-01-25 19:08:45 +02:00
Delyan Angelov
3526bc3d19
net: prevent udp_test.v from running on windows without -d network 2021-01-25 19:02:19 +02:00
Alexander Medvednikov
d991712b3c gg: native rendering mode on macOS 2021-01-23 10:25:43 +01:00
Daniel Däschle
dbf84520f1
all: update assoc syntax (#8274) 2021-01-22 23:24:48 +01:00
Delyan Angelov
d92f5c55ba
net: use mut and refs as receivers consistently (#8205) 2021-01-20 11:11:01 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Delyan Angelov
ef18fb837c
net.urllib: workaround an autofree bug for if cond && opt() { 2021-01-12 16:29:04 +02:00
Daniel Däschle
3289dff7ff
checker: require explicit return none (#8060) 2021-01-12 11:43:55 +01:00
Tomas Hellström
cc17f145c5
websocket: make compile with autofree (#8023) 2021-01-11 09:03:10 +01:00
Delyan Angelov
a0b8191a94
net: cleanup unused time imports in tests 2021-01-10 18:59:06 +02:00
Swastik Baranwal
9291fb5e0c
checker: disallow comparison between enum and int (#7886) 2021-01-08 17:41:52 +01:00
yuyi
ad79d55a5c
ftp: fix an error (#7930) 2021-01-07 20:21:47 +01:00
yuyi
f751271e4e
ftp: fix error of ftp.connect() (fix parts of #7914) (#7915) 2021-01-06 19:53:25 +02:00
Alexander Medvednikov
5a70eba8e1 all: byte.str() => byte.ascii_str() 2021-01-05 19:14:37 +01:00
Nick Treleaven
3203a124b2
checker: warn when casting between reference types outside of unsafe (#7892) 2021-01-05 17:02:04 +02:00
Delyan Angelov
81fd49642a
net: restore back the blocking TcpConn.read_line() method for simplicity 2020-12-29 17:51:16 +02:00
Delyan Angelov
17e0a65611
net: add support for -d trace_tcp to ease debugging 2020-12-29 15:41:46 +02:00
Joe Conigliaro
dbad60acbf
net: use non versioned paths for openssl on mac arm64 2020-12-28 10:32:35 +11:00
yuyi
b47daad40d
all: remove redundant array.contains definitions (#7464) 2020-12-22 08:32:32 +01:00
Emily Hudson
553ecf63e7
vlib/io: fix reader bugs, make read_all take a config struct (#7361) 2020-12-16 18:22:26 +01:00
Delyan Angelov
3e85c759aa
net: fix udp default timeouts 2020-12-15 18:31:39 +02:00