Commit graph

1659 commits

Author SHA1 Message Date
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
Turiiya
1e578b1144
checker: extend byte deprecation warnings to return types (#19668) 2023-10-29 14:25:15 +02:00
l-m
c32b04d5be
wasm: implement inline assembly (#19686) 2023-10-29 03:08:39 +03:00
Turiiya
90ac5dc354
builtin: fix doc comments of string split methods (#19643) 2023-10-25 17:13:54 +03:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Turiiya
f98bb863ab
vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Turiiya
6437d82ee1
checker: warn about byte deprecation, when used as a fn parameter (#19629) 2023-10-23 20:54:28 +03:00
Delyan Angelov
561fd9471f
builtin: fix typos in builtin_writeln_should_write_at_once and builtin_writeln_should_write_at_once user defines 2023-10-20 20:27:31 +03:00
Delyan Angelov
dc6e31787e
builtin: fix sizeof(C.BOOL) (windows specific) (#19589) 2023-10-17 18:18:48 +03:00
Alexander Medvednikov
4bc9a8f8d8 checker: fix C.xx = C.yy aliases 2023-10-15 16:18:00 +03:00
Alexander Medvednikov
c947c140ee builtin: windows definitions 2023-10-15 07:43:57 +03:00
Alexander Medvednikov
536bf213be builtin: define C.BOOL on Windows 2023-10-14 23:42:17 +03:00
Alexander Medvednikov
6f79eecce0 checker: bring back pascal case check for aliases 2023-10-14 22:55:19 +03:00
Alexander Medvednikov
545ee1ae23 checker: stricter rules for C types; C aliases; sokol fixes 2023-10-14 18:31:44 +03:00
Joe Conigliaro
9604a3f491
coroutines: get photonlib/coroutines working with GC 2023-10-09 12:10:19 +11:00
Alexander Medvednikov
1f06476343 cgen: fix maps with i32 keys 2023-10-09 00:18:46 +03:00
Alexander Medvednikov
b9a1b0c269 native: use i32 instead of int 2023-10-08 02:50:01 +03:00
Alexander Medvednikov
e265e99a64 all: int => i64 (part 5) 2023-10-08 01:32:37 +03:00
Alexander Medvednikov
8c5ac3a529 all: i64 fixes 2023-10-08 01:04:19 +03:00
Alexander Medvednikov
9e6a9f0330 all: int => i64 (part 3) 2023-10-07 20:55:49 +03:00
Alexander Medvednikov
eb30f2642b all: int => i64 (part 2) 2023-10-07 19:46:46 +03:00
Spydr
8023e25bea
all: finish bootstrapping of @VCURRENTHASH (#19517) 2023-10-07 14:08:58 +03:00
Alexander Medvednikov
fe41bda6f9 pref: temporary 64 bit int option 2023-10-07 13:47:55 +03:00