Commit graph

1008 commits

Author SHA1 Message Date
Delyan Angelov
77f8c88ccf
os: simplify file.c.v using cross platform f.seek/2 calls, add EINTR handling to f.write_full_buffer/2 (fix #25107) (#25110) 2025-08-15 08:02:34 +03:00
Alexander Medvednikov
652881c73b all: vls mode fixes and improvements; v -json-errors flag 2025-08-10 06:45:59 +03:00
Felipe Pena
ae1fa8aced
markused: skip unused symbols, dump fns and generic specialization (fix #24921) (fix #24927) (#24924) 2025-07-23 08:50:31 +03:00
kbkpbot
5d4e89f888
os,runtime: move some C struct and fn def to builtin (#24942) 2025-07-22 07:55:53 +03:00
Laurent Cheylus
04f90f0f2c
os: remove commented code in home_dir() function (#24929) 2025-07-20 06:20:56 +03:00
Delyan Angelov
3725576729
docs,ci: check more vlib modules in the report-missing-dots-in-doc-comments job (#24928) 2025-07-19 11:51:01 +03:00
kbkpbot
1ea8574659
os: fix windows get_error_msg() leak (#24899) 2025-07-14 14:54:55 +03:00
Delyan Angelov
2cfeb6d07b os: add os.write_bytes/2 as a complement to os.read_bytes/1, add test 2025-06-28 09:27:09 +03:00
Laurent Cheylus
cf698066db
os: fix documentation for environ function (#24796) 2025-06-26 19:25:02 +03:00
Laurent Cheylus
80fed7add5
os: improve documentation (#24790) 2025-06-25 22:29:47 +03:00
Davide Beatrici
1c5a9e1be2
os: do not resolve symlinks in os.find_abs_path_of_executable/1 (fix #24759) (#24761) 2025-06-24 02:53:13 +03:00
Delyan Angelov
131449e70d
os.font: fixes for -os android 2025-06-18 16:38:40 +03:00
Delyan Angelov
2cd1c9e26b
builtin,os: enable no warnings for gg programs like v -gc boehm_leak -cg -keepc run examples/gg/minimal.v (part 1 - before the gg loop) (#24749) 2025-06-18 16:37:57 +03:00
Jose Mendoza
a5f400ee77
parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
Denise
ea25988dac
os: support dotfiles := os.walk_ext('.', '', hidden: true) (#24617) 2025-06-01 17:10:04 +03:00
kbkpbot
c72d77d8a4
os: fix os.File's tell/0 method for windows (fix #24217) (#24218) 2025-05-20 15:41:15 +03:00
Laurent Cheylus
558c034efd
os: add note for the availability of the debugger_present implementation (#24492) 2025-05-15 13:29:46 +03:00
Laurent Cheylus
478607dc07
os: add debugger_present implementation for OpenBSD (fix #23603) (#24490) 2025-05-15 13:05:39 +03:00
omahs
1957162c2a
all: fix typos (#24470) 2025-05-13 22:05:22 +03:00
Delyan Angelov
4f46aa84e5 os.asset: add read_text/2 too, use it to simplify the sokoban example 2025-05-12 11:20:12 +03:00
kbkpbot
0c1a02f910
os: force using C.CREATE_NO_WINDOW on windows in os.raw_execute/1 (fix #24390) (#24418) 2025-05-05 19:48:11 +03:00
Alexander Medvednikov
7d57a19d7e checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
kbkpbot
59b162c29f
os: fix windows rmdir GetLastError() (fix #24356) (#24357) 2025-04-30 08:25:16 +03:00
Delyan Angelov
87d3a1d272
os.filelock: compile without warnings with gcc on windows 2025-04-23 07:52:07 +03:00
Delyan Angelov
c5ace0eded
ci: add a s390x job (using QEMU), running the endianness related tests in builtin, os, and encoding.binary (#24153) 2025-04-07 23:35:33 +03:00
Felipe Pena
071ab6c362
checker, cgen: fix non-voidptr to voidptr on -cstrict + notice about such usage (fix #24139) (#24143) 2025-04-06 08:27:57 +03:00
Delyan Angelov
175b0fa415
os,tools: make easier analyzing process_test.v failures on the CI 2025-03-26 14:00:47 +02:00
Mike
d6c3e6fe5a
os: fix swap_bytes_u64 (#24033) 2025-03-25 15:34:57 +02:00
Alexander Medvednikov
bed827e663 checker: do not allow auto (de)reference in PrefixExpr *; pref: disable parallel checker on arm linux for now 2025-03-24 15:39:31 +03:00
kbkpbot
9fb0f8b5aa
os: support .set_environment() on windows too (fix #10628) (#23996) 2025-03-22 00:29:56 +02:00
kbkpbot
a1304637c5
os: implement Process.is_pending() on windows (fix #23990) (#23993) 2025-03-21 11:03:03 +02:00
Delyan Angelov
a80bc23314
tools: cleanup entries from the hardcoded skip_files list in common.v (used by v test, v test-self etc); use the new // vtest build: syntax to mark the tests instead (#23918) 2025-03-13 19:51:51 +02:00
Felipe Pena
734fde89e8
checker: add fntype casting validations (#23872) 2025-03-13 16:38:12 +03:00
Delyan Angelov
615e74d341
vlib: reduce false positive matches for /// , cleanup commented code 2025-03-08 17:47:13 +02:00
Delyan Angelov
32ad697689
os,v.transformer: fix warnings for ./v -os cross -o vc/v.c cmd/v && clang-18 -o v_from_vc vc/v.c -lpthread 2025-03-06 21:05:01 +02:00
Delyan Angelov
408ec6bff4
builtin,os: fix warnings for ./v -os cross -o vc/v.c cmd/v && cc -o v_from_vc vc/v.c -lpthread 2025-03-06 20:56:49 +02:00
kbkpbot
f4b51d064e
os: fix get_raw_line() on windows (fix #23843) (#23846) 2025-03-03 06:55:35 +02:00
Delyan Angelov
ff93ccb29d
ci,os: fix bootstrapping with -os cross -o vc/v.c (avoid the generic calls in the new write_u8 and read_u8) 2025-02-27 13:59:28 +02:00
Delyan Angelov
9f5a1b8b4a
os: add File.write_u8/1 and File.read_u8/0 helper methods 2025-02-27 13:40:40 +02:00
kbkpbot
370ba448dd
os: fix buffer overflow in os.get_raw_line under Windows (#23816) 2025-02-27 01:09:34 +02:00
Delyan Angelov
f83c8bf478
v.pref: allow for -os wasm32_emscripten and filtering _d_wasm32_emscripten.c.v and _notd_wasm32_emscripten.c.v files. (#23797) 2025-02-24 11:23:37 +02:00
Delyan Angelov
16a6e45274
gg: fix ./v -gc none -autofree run examples/tetris/ (avoid return s1 + s2 + s3, clone the arrays, passed to the fontstash wrapper) 2025-02-07 14:29:43 +02:00
kbkpbot
d78bf1122d
os: add disk_usage/1 (#23634) 2025-02-02 19:32:21 +02:00
kbkpbot
2a69b7c525
os: add split_path/1: os.split_path('/usr/lib/test.so') -> ('/usr/lib','test','.so'); fix platform dependent behaviour of os.dir/1, os.base/1, os.file_name/1 (#23532) 2025-01-21 06:58:47 +02:00
Emma
6b92f8fada
all: remove ancient deprecations (#23479) 2025-01-16 16:36:12 +02:00
Alexander Medvednikov
6b3724df3a checker: do not allow auto reference of voidptr params 2025-01-13 19:01:43 +03:00
Delyan Angelov
e983d75b64
markused,builtin,strconv,vlib: reduce generated C sizes for compilers != tcc, for short programs, by simplifying the generation of backtraces, and reducing string interpolations in panics (#23380) 2025-01-06 08:23:56 +02:00
alexey semenyuk
2ea6115558
os: fix typo (fix #23267) (#23292) 2024-12-27 22:19:50 +02:00
yuyi
17f3c8f813
checker: check fn call argument mismatch (fix #23016) (#23061) 2024-12-04 11:52:07 +02:00
Delyan Angelov
55c25b398c
os: add os.get_trimmed_lines() too 2024-12-03 17:01:39 +02:00