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

777 Commits

Author SHA1 Message Date
298fc533e4 ci: run v fmt -w vlib/os/file.c.v 2021-05-04 08:40:27 +03:00
0fa9a648ae os: add os.stdout() and os.stderr(), returning os.File, similarly to os.stdin() (#9990) 2021-05-03 19:00:51 +03:00
4ba11b7752 os: deprecate os.open_stdin in favor of os.stdin (#9989) 2021-05-03 18:57:21 +03:00
fb7ddcd4c9 checker: fix looking for unprefixed os functions (#9968) 2021-05-02 21:46:12 +03:00
787a63dab6 cgen: execute defer block *after* return expression is evaluated (#9893) 2021-04-27 01:42:16 +03:00
160b605640 os: use C.GetUserNameW for os.loginname() instead + improvements os.uname() (#9872) 2021-04-25 18:16:14 +03:00
7f5c3cc1f8 checker: do not allow modifying consts via mutable refs 2021-04-24 14:08:50 +03:00
b506d8fcc0 os: use C.getlogin for os.loginname, instead of C.getlogin_r (C.getlogin_r absent on Android) 2021-04-24 13:33:34 +03:00
187895c93c os: use GetComputerNameW to retrieve hostname on Windows (#9861) 2021-04-24 13:22:04 +03:00
c7a6d28e13 all: improve unused variable warning (fix x = 1, x += 1 etc) 2021-04-23 13:33:48 +03:00
59e23dbb57 ci: re-enable testing of ./v -freestanding run vlib/os/bare/bare_example_linux.v on ubuntu 2021-04-22 12:50:56 +03:00
7443179cc8 checker: make use of private enum from outside module an error. (#9821) 2021-04-22 07:07:56 +03:00
258be508f4 builtin,os: fix unused return C warnings for real (#9814) 2021-04-20 17:28:58 +03:00
9ec91f4d58 os: add new function os.loginname(), improve some error messages (#9794) 2021-04-19 14:57:25 +03:00
515d8c0bc8 os: remove unnecessary check (#9722) (#9773) 2021-04-17 02:37:57 +03:00
aa49bc2708 os: implement os.truncate() + improve error handling (#9752) 2021-04-16 11:53:44 +03:00
546dc91967 os: create os.hostname() and os.chown() + os.uname() for windows (#9722) 2021-04-15 01:49:05 +02:00
14434cc86a all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
ada763e0f4 fmt: remove parenthesis around single ident (#9696) 2021-04-12 16:01:03 +03:00
7ba13a415a os: handle fread errors (#9687) 2021-04-12 10:26:08 +03:00
1d5ed89138 fmt: remove trailing space in comments (#9620) 2021-04-07 15:25:11 +02:00
db84d5e221 os: cleanup os.environ implementation 2021-04-06 18:02:12 +03:00
d8cb24eef0 ci: fix -cflags -Werror jobs 2021-04-05 23:42:26 +03:00
19b915b105 ci: fix windows-tcc job 2021-04-05 23:35:22 +03:00
10619d098c ci: fix a race in vlib/v/compiler_errors_test.v execution on m1 2021-04-05 22:57:59 +03:00
b041681c00 tests: bump limits to reduce flakyness on m1 with latest clang 2021-04-05 22:38:55 +03:00
291a88bc62 ci: fix some of v test-cleancode 4 2021-04-05 21:39:32 +03:00
fec89c7efb ci: fix some of v test-cleancode 1 2021-04-05 20:47:32 +03:00
90b123c27b ci: fix self compilation on windows 2021-04-05 15:47:43 +03:00
5c07cbf5d3 ci: fix v -cc clang-11 -cflags -Werror cmd/v 2021-04-05 08:09:04 +03:00
e399c07a2f os: fix a C warning 2021-04-05 06:42:20 +03:00
8a362588aa ci: fix os.environ :-| 2021-04-04 21:11:17 +03:00
accd4d83bf ci: fix compilation 2021-04-04 20:14:51 +03:00
6c8199c9d9 os: fix compilation on linux 2021-04-04 17:48:21 +03:00
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00
c698fa1a58 all: support v -watch run (#9577) 2021-04-04 16:05:06 +02:00
15d9f50be9 os: add x64 mode for struct and raw read/write (#9512) 2021-03-30 11:40:23 +02:00
69dff4b384 os: make os module handle large files (#9439) 2021-03-26 07:51:55 +01:00
b7c01db1f9 builtin: add .vstring_literal and .vstring_literal_with_len for converting read only strings like os.args 2021-03-23 22:10:28 +02:00
7f91b75cbc builtin: fix leaks in os.execute() and []string{} == []string{} 2021-03-23 20:36:19 +02:00
a53aaaf9e7 os: fix a leak in read_lines() 2021-03-22 12:20:55 +03:00
c8416f9a54 all: deprecate write_str and replace it with write_string (#9369) 2021-03-20 17:25:51 +01:00
e3c0f305b2 os: deprecate os.File.write_bytes and add os.File.write_ptr (#9370) 2021-03-20 09:02:28 +02:00
29884fa2a9 os: deprecate read_at and add read_from to implement RandomReader (#9371) 2021-03-19 12:35:08 +02:00
9ea88c090b os: fix warning write_str -> write_string (#9368) 2021-03-19 03:36:27 +01:00
bb79df932b net/os: deprecate write_str() in favor of write_string() 2021-03-19 04:51:31 +03:00
b7a5fa7fbe os: fix v -cflags "-Werror" test vlib/os/ 2021-03-18 19:45:04 +02:00
446631ceb5 checker: fixed array cannot implicitly convert to fooptr (again) (#9302) 2021-03-15 15:55:07 +02:00
3951c351c6 os: simplify Process (remove chainability of Process method calls) 2021-03-15 09:23:43 +02:00
945769a4f6 all: implement reference receiver optimization for big structs (#9268) 2021-03-14 18:11:21 +01:00