Commit graph

1832 commits

Author SHA1 Message Date
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Felipe Pena
24d157205b
cgen: force C struct types which does not implement str() to be passed as ptr (#21054) 2024-03-21 00:24:38 +02:00
Felipe Pena
e6b43a166e
cgen: enable autofree for option (#21051) 2024-03-20 08:33:51 +02:00
Joe Conigliaro
a1c5c6c8f2
builtin: add missing return type to fn signature for C.GC_get_stack_base 2024-03-14 00:08:39 +11:00
Joe C
f315676882
coroutines: manually create photon vcpu's & add functions to set photon log output (#21012) 2024-03-14 00:00:42 +11:00
Kim Shrier
094b0328e5
builtin: fix a few grammar errors in builtin.string comments (#21010) 2024-03-13 13:14:50 +02:00
Delyan Angelov
a373bee98b
builtin: expose gc_disable(), gc_enable(), gc_is_enabled(), in addition to the existing gc_collect() (#21002) 2024-03-12 17:03:33 +02:00
cui fliter
78602846e5
all: fix typos in comments (#20963) 2024-03-04 18:41:55 +02:00
Delyan Angelov
a58f980b02
os: workaround a -prod -cc gcc bug, affecting os.open_file (fix #20923) (related to #20872) (#20960) 2024-03-04 18:15:28 +02:00
Delyan Angelov
497b613023
cgen: fix codegen for a.index/1, where a is []Fn (#20849) 2024-02-17 00:30:57 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
Delyan Angelov
101b8a6b14
builtin: support -d gc_warn_on_stderr, to show the GC warnings, without installing a custom warn fn callback 2024-02-11 17:47:19 +02:00
Delyan Angelov
8793aebe65
builtin: add gc_collect/0, gc_get_warn_proc/0, gc_set_warn_proc/1. Use them to turn off GC warnings by default. (#20788) 2024-02-11 16:07:36 +02:00
Joe C
212adfab92
builtin,coroutines,cgen: fix using coroutines with boehm GC, by using a stack pointer corrector (#20771) 2024-02-10 15:20:11 +02:00
zeozeozeo
99579acaf2
builtin: link to user32 to fix boehm GC compilation on Windows with clang released from the LLVM project (fix #20724) (#20767) 2024-02-10 09:00:08 +02:00
kbkpbot
7fd1b169f3
builtin: add a string.u8_array() method (#20736) 2024-02-06 17:53:02 +02:00
Joe C
f79dd79242
coroutines: fix segfaults with GC (part 1) (#20549) 2024-01-27 23:27:38 +02:00
Delyan Angelov
2a68e2b7c9
builtin: implement unbuffer_stdout/0 (#20662) 2024-01-26 17:47:43 +02:00
Felipe Pena
9f6448e30e
v: $dbg statement - native V debugger REPL (#20533) 2024-01-19 07:10:17 +02:00
Delyan Angelov
9c7e3707b6
builtin: use #pkgconfig bdw-gc-threaded where available, instead of #pkgconfig bdw-gc (on FreeBSD) 2024-01-18 07:31:40 +02:00
Tim Marston
c4b8036970
v: add map update-init syntax: new_map := {...old_map, 'k1': 1, 'k2': 5} (#20561) 2024-01-17 17:55:57 +02:00
Vinicius Silva
3569635eff
builtin: add empty string verification for the new string .is_oct() etc methods, suggested on PR #20540 (#20564) 2024-01-17 11:00:07 +02:00
Vinicius Silva
afd74ad6e6
builtin: add is_hex(), is_int(), is_bin(), and is_oct() methods to the string type (#20540) 2024-01-16 23:58:28 +02:00
yuyi
bfe2cb7d34
builtin, checker: fix aliases of u8 array clone() call (#20393) 2024-01-05 11:56:19 +02:00
Swastik Baranwal
b8b0cfddd5
checker: disallow string to voidptr cast entirely (#20351) 2024-01-03 07:09:56 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Delyan Angelov
0df6fcce8c
scanner: fix backslashes followed directly by newline in string literals (fix #20291) (#20296) 2023-12-29 07:21:49 +02:00
Swastik Baranwal
6a04febbf8
math.bits: remove deprecated max32 and max64 const (#20277) 2023-12-27 13:55:55 +02:00
Turiiya
4bab3e700e
builtin: add @[direct_array_access] to js string trim_right method (#20222) 2023-12-19 23:31:30 +02:00
penguindark
ae16878272
all: add r and R switches for repeating in string interpolation, '${"abc":3r}' == 'abcabcabc' (#20197) 2023-12-17 13:23:17 +03:00
Felipe Pena
81bfc2f52e
all: implement $for comptime T.variants (#20193) 2023-12-16 18:27:30 +03:00
Turiiya
5b74f3af3e
vlib: use the builtin flush functions, instead of the C. ones (#20108) 2023-12-07 18:24:27 +02:00
Delyan Angelov
4b3109237d
builtin: deprecate string.last_index/1 for string.index_last/1, and string.last_index_u8/1 for string.index_u8_last/1 (#20095) 2023-12-05 13:56:59 +02:00
Delyan Angelov
d1dcffa928
os: fix File.tell for files > 2GB on windows, by using C._telli64(f.fd) (#20072) 2023-12-03 03:58:01 +02:00
Delyan Angelov
0b8a612406
Revert "strings: fix using array_push_many inside write_string + gc, not using array_push_many_noscan (part 1)"
This reverts commit be51143ac5.
2023-12-01 21:45:35 +02:00
Delyan Angelov
be51143ac5
strings: fix using array_push_many inside write_string + gc, not using array_push_many_noscan (part 1) 2023-12-01 18:26:57 +02:00
Bakul Shah
63ba05b5ca
builtin: pass USE_MMAP when compiling the GC library on freebsd, when tcc is not used (#20006) 2023-11-27 07:35:17 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
shove
2a6c1d9074
all: assigning 0 to reference fields now requires unsafe blocks (fix #14911) (#19955) 2023-11-23 11:16:26 +02:00
Turiiya
1beeb6d039
builtin: remove unused array.c.v file (#19948) 2023-11-20 17:56:54 +02:00
Kim Shrier
cc220e60a5
vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
Felipe Pena
83b4167c19
fmt: fix interface fields alignment (#19866) 2023-11-15 18:17:35 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Alexander Medvednikov
e7cad4f55d net,vweb: reduce allocations by ~80% 2023-11-11 01:10:34 +03:00
Artem Yurchenko
97f7c3f609
builtin: move min/max integer values consts from math to builtin (#19809) 2023-11-08 20:43:48 +02:00
JalonSolov
f1ba664e92
builtin: move builtin_test.v to builtin_test.c.v (part of making -W impure-V the default) (#19757) 2023-11-04 10:14:50 +02:00
Delyan Angelov
f5f0995c4f
ci: mark more js tests as flaky 2023-11-04 10:01:04 +02:00
Turiiya
e34e06350a
pref: fix unintended file extensions in default output names, allow for v run file.c.v (#19745) 2023-11-03 19:51:44 +02:00
Delyan Angelov
cbb67b2009
ci: mark more ever more tests as flaky 2023-11-03 12:26:25 +02:00
Delyan Angelov
f2d2ed1f4a
testing: fix notices with v test-all on Linux for v -freestanding str_array_example.v 2023-11-01 19:35:02 +02:00