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

749 Commits

Author SHA1 Message Date
e3b65092d6 parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
166dd61e90 Revert "Revert "term: obtain the cursor position via termios.h (#11372)""
This reverts commit 0376cbf6bd.
2021-09-06 19:04:14 +03:00
0376cbf6bd Revert "term: obtain the cursor position via termios.h (#11372)"
This reverts commit af28d09630.
2021-09-06 18:21:55 +03:00
af28d09630 term: obtain the cursor position via termios.h (#11372) 2021-09-06 17:24:39 +03:00
bd33eaa3b8 os: add function to expand "~" to home directory (#11362) 2021-09-01 16:32:28 +03:00
cf4081e2dd all: more chdir/chmod fixes 2021-08-28 12:52:48 +03:00
f731060caf all: update chmod/chdir usages 2021-08-28 10:23:01 +03:00
853d3cb83e os: make chmod() return error 2021-08-28 09:37:24 +03:00
858ba25d55 os: make chdir() return error 2021-08-28 09:35:39 +03:00
bdf11d969a js: add basic support for running tests, fix string.replace_each (#11314) 2021-08-26 15:20:54 +03:00
db194abeac os: merge os.c.v and os_c.c.v 2021-08-26 10:01:55 +03:00
109d5d5847 js: os now compiles to the JS backend, more builtins & minor codegen fixes (#11302) 2021-08-25 14:40:53 +03:00
d78e7e3b2b js: codegen fixes, W.I.P os availability for JS backend (#11281) 2021-08-23 14:25:02 +03:00
2bf1015ae1 os: add File.read_into_ptr (#11219) 2021-08-18 17:08:41 +03:00
90b25e7a4b os: filesystem level locking api (#11191) 2021-08-17 08:21:33 +03:00
8fbd8f790d os: cleanup for -Wimpure-v 2021-08-12 21:53:29 +03:00
506c30a291 builtin: remove methods that can be autogenerated (#11109) 2021-08-09 15:42:31 +03:00
efa8dcf4d2 time: turn Time.unix to i64, so it can represent times before 1970-01-01, fix time operators, add more tests (#11050) 2021-08-04 13:12:02 +03:00
00d4c7082e native: add support for print, eprint and eprintln (#11034) 2021-08-03 16:04:31 +03:00
d82d41d804 os: fix os.dir, os.base, os.file_name, when the argument contains / on windows 2021-07-31 13:52:54 +03:00
44892fd942 os: let os.dir("/xyz") return "/" (fixes compiling .v files in /) 2021-07-30 03:28:53 +03:00
8eb544146e os: fix building V on Haiku 2021-07-27 20:28:04 +03:00
44828cbb29 ci: fix -cstrict job 2021-07-22 18:47:23 +03:00
b537c9f624 tests: add a separate File.tell() test 2021-07-22 16:25:23 +03:00
c4da74dbf6 ci: fix building V on windows with tcc (regression since d7dcb47) 2021-07-22 14:50:22 +03:00
9171c1131e ci: skip a failing f.tell() test on macos only 2021-07-22 13:28:00 +03:00
ec585b4a54 os: fix sporadic failing glob_test.v 2021-07-22 13:26:23 +03:00
8f3646cb81 os: fix debugger_present for solaris (#10902)
-solaris has no `sys/ptrace.h`, instead `ptrace` is included in  `sys/types.h` and `unistd.h`
2021-07-22 10:44:00 +03:00
d7dcb47db3 os: implement File.seek/2 and File.tell/0 2021-07-22 08:00:21 +03:00
5098334e65 os: add execute_or_exit(cmd), use it consistently instead of execute_or_panic(cmd) 2021-07-20 15:22:04 +03:00
1bf6743987 vinix: support -os vinix (part 2) 2021-07-13 11:41:45 +03:00
fe65cde03b tools: use os.symlink instead of system('ln -s') in v symlink (#10769) 2021-07-12 14:23:25 +03:00
075e09b10e os: fix a file descriptor leak in os.read_bytes() (#10723) 2021-07-09 23:49:46 +03:00
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
c4b5805890 checker: check generic method call args mismatch (#10669) 2021-07-05 10:14:00 +03:00
972542d6ee checker: [noreturn] part 2 (cleanup) (#10667) 2021-07-05 05:05:37 +03:00
da9c75f2ca checker: string != IError (#10665) 2021-07-05 05:05:08 +03:00
3881e97a40 vlib: remove ustring usage (#10618) 2021-06-30 22:30:28 +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
6890756cd2 os: cleanup of old deprecated functions. Add File.write_full_buffer/2; use it in os.write_file/2 2021-06-25 22:51:59 +03:00
72358833e0 time: use Duration(C.INT64_MAX) as infinite (#10539) 2021-06-22 12:17:44 +03:00
1e9e717111 os: fix using Win32-API with TCC32 (#10496) 2021-06-21 14:14:58 +03:00
acf9d168cb os: fix some C compiler warnings for windows (#10506) 2021-06-18 20:07:25 +03:00
b7fea87d07 os: fix normalize_drive_letter (used by os.real_path) returning a parameter 2021-06-18 13:06:52 +03:00
a0b7e1a0ca os/notify: make epoll wrapper thread safe (#10473) 2021-06-16 04:03:33 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
48b3ab831b ci: fix failing test test_realpath_existing for os.real_path on macos 2021-06-15 14:13:12 +03:00