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

62 Commits

Author SHA1 Message Date
47bf64473c vlib: reimplement glob in V for UNIX to not depend on libc (#10707) 2021-07-09 03:27:16 +03:00
7b4c342396 os: disable os.glob() on Android for now (fixes termux compilation) 2021-07-08 00:00:40 +03:00
8cc49b5e9e os: add utime() (#9796) 2021-06-30 10:21:23 +03:00
d2f19ac494 os: add a glob() function (#10497) 2021-06-30 08:30:18 +03:00
97b83a4986 os: add debugger_present() for linux (#10257) 2021-06-29 15:00:48 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
d6e462a6ca os: fix os.is_link and os.symlink on windows, add new functions os.getppid, os.getgid, os.getegid (#10251) 2021-05-29 23:26:13 +03:00
12c3f85507 os: add getuid and geteuid (#10002) 2021-05-05 14:20:11 +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
9ec91f4d58 os: add new function os.loginname(), improve some error messages (#9794) 2021-04-19 14:57:25 +03:00
546dc91967 os: create os.hostname() and os.chown() + os.uname() for windows (#9722) 2021-04-15 01:49:05 +02: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
5c07cbf5d3 ci: fix v -cc clang-11 -cflags -Werror cmd/v 2021-04-05 08:09:04 +03:00
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03: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
e3c0f305b2 os: deprecate os.File.write_bytes and add os.File.write_ptr (#9370) 2021-03-20 09:02:28 +02:00
d7049ae2da os: deprecate os.exec (returning ?os.Result), in favour of os.execute, which returns os.Result (#8974) 2021-03-08 20:52:13 +02:00
4ccf991f61 checker: warn when casting a fixed array (use &arr[0] instead) (#8787) 2021-02-17 20:45:11 +01:00
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
ea803113c3 checker: check unsafe V function calls (#8752) 2021-02-14 19:31:42 +01:00
d660f2cc6f fmt: insert newline after last HashStmt (#8482) 2021-02-01 14:50:41 +01:00
e5a84719ca all: require calling optfn() ? / optfn() or {...} for fn optfn() ? {} 2021-01-26 16:43:17 +02:00
8b61891348 fmt: smarter if condition wrapping (#8201) 2021-01-23 10:33:22 +02:00
53941c4a0a fmt: fix if cond break readability (#8132) 2021-01-16 02:12:17 +01:00
adf084eeed cgen: fix address violations for return error(abc), reduce leaks in os 2021-01-14 04:58:26 +02:00
33694665f0 fmt: align each contiguous field of struct. not the whole. (#7981) 2021-01-12 04:38:43 +01:00
a1c67232d0 checker: fix duplicate variable name (fix #265) (#7982) 2021-01-10 21:41:29 +01:00
0ab6a8cd01 os: add a posix_set_permission_bit function (#7754) 2021-01-04 19:57:17 +02:00
214290d55b fmt: add a space around single-line unsafe expressions (#7505) 2020-12-23 19:13:42 +01:00
88a8507dd8 os: vfmt most of os, add it to v test-cleancode 2020-12-16 11:08:23 +02:00
1c257abc23 autofree: simplify: merge tmp arg logic with scope vars 2020-11-09 14:24:46 +01:00
507d724ee6 autofree: free before return tests 2020-11-09 11:54:45 +01:00
a9e9554b11 all: fix most C warnings (#6758) 2020-11-06 16:26:59 +02:00
1b1d17cfb5 os: basic proof of concept stdout capture; autofree: small fixes 2020-11-05 08:44:37 +01:00
7da1afa140 all: switch to the new fn arg syntax everywhere; add lots of vfmt -verify tests 2020-10-15 12:32:28 +02:00
fd88bfbac8 fmt: fix formatting of anon args (#6545) 2020-10-04 06:32:47 +02:00
bab5c21224 parser: warn when fixed-size ArrayInit doesn't have trailing {}. (#6137) 2020-08-16 04:54:05 +02:00
36eae1c175 builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
5874d7c5ab os: add os.getpid(), use it in os.is_writable_folder on windows 2020-08-05 09:04:40 +03:00
ab7936f514 os.exec: on unix return error, when the command was not found, instead of os.Result 2020-08-05 07:11:51 +03:00
8dede3b535 builder: add a verror, when the output folder is not existing and writable (#5966) 2020-08-03 18:19:36 +03:00
d71c11577a os: move file logic to file.v (#6013) 2020-08-01 23:07:37 +02:00
ee349691f9 v/checker: Warn about pointer indexing outside unsafe {} (#5918) 2020-07-22 20:28:53 +03:00
4cb9e651a6 vfmt: fix sizeof(C.Type) 2020-07-21 16:28:30 +03:00
a74cbf55c7 checker: warn if C.m* or C.s* functions are called outside unsafe blocks (#5869) 2020-07-20 20:06:41 +03:00
df45488e09 cgen: fix warnings (#5820) 2020-07-14 00:16:31 +02:00
5eb76606ae cgen: store return vals in tmp vars with -autofree 2020-07-01 14:34:14 +02:00
206e64d72c os: add os.uname() 2020-06-14 16:46:30 +03:00