Commit graph

1832 commits

Author SHA1 Message Date
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
Alexander Medvednikov
7008059c89 builtin: use isize in memdup 2023-10-07 03:39:28 +03:00
Alexander Medvednikov
e957e5c089 cgen: do not generate unnecessary memdup() definition 2023-10-07 03:31:24 +03:00
Spydr
32bb8cf86d
all: implement @VCURRENTHASH to replace C.V_CURRENT_COMMIT_HASH (#19514) 2023-10-05 18:14:36 +03:00
Sudoer
5c37c312b0
builtin,math: add more missing doc strings for public functions (#19509) 2023-10-05 00:35:37 +03:00
Spydr
8cfe9e81fc
native, builtin: implement little improvements from #19498 and remove vcommithash() in favor of @VHASH (#19508) 2023-10-05 00:30:55 +03:00
Spydr
6d1558b006
native, builtin, ast: handle ast.HashStmt correctly and reduce macro usage in builtin (#19498) 2023-10-04 16:42:15 +03:00
Delyan Angelov
c79f84d406
builtin: add input_character/0 and print_character/1 (#19502) 2023-10-04 04:40:03 +03:00
Delyan Angelov
fae46a8d85
builtin: extract vlib/builtin/result.v from vlib/builtin/option.v 2023-10-03 08:36:13 +03:00
Delyan Angelov
a79c574cb9
ci: fix v -cstrict vlib/builtin/array_test.v 2023-10-01 09:18:07 +03:00
Delyan Angelov
ec9ac7715a
builtin: add an unsafe { a.reset() } method, for quickly setting all bytes in an array to 0 2023-10-01 07:22:42 +03:00
Delyan Angelov
c030c5efa8
builtin: extract backtraces.c.v, backtraces_nix.c.v, backtraces_windows.c.v (#19480) 2023-09-30 19:24:31 +03:00
yuyi
ec30256c7f
builtin: cleanup obsolete function in string.v and array.v (#19451) 2023-09-27 19:49:33 +03:00
yuyi
981f76cd04
builtin, cgen: fix printing slice of fn call string (#19450) 2023-09-27 14:53:56 +03:00
Delyan Angelov
e115d4461c
checker: allow for each(a, |x| println(x)), i.e. using lambda expressions, when expecting fn (x int) 2023-09-27 11:49:12 +03:00
Ikko Eltociear Ashimine
7e08a50ea5
builtin: fix typo in string.v (#19431) 2023-09-24 15:11:47 +03:00
Delyan Angelov
a685088fbd
checker: support lambda expressions in array methods like a.map(|x|x*10) too (#19424) 2023-09-23 22:08:48 +03:00
Delyan Angelov
f93d257d29
all: support short lambda expressions like a.sorted(|x,y| x > y), in all callsites that accept a fn callback (#19390) 2023-09-20 17:22:16 +03:00
Delyan Angelov
7ffa8c13bf
vlib: remove functions and fields, deprecated before 2023-03-20
* remove []int.reduce in favour of arrays.fold
  * remove datatypes.Set.equal in favour of datatypes.Set.==
  * remove datatypes.Set.difference in favour of datatypes.Set.-
  * remove gg.Context.set_cfg in favour of gg.Context.set_text_cfg
  * remove gg.Context.timage_pip in favour of gg.Context.pipeline.alpha
  * remove os.is_writable_folder in favour of os.ensure_folder_is_writable

  Discovered with `v run cmd/tools/show_ancient_deprecations.v 180`
2023-09-16 17:16:54 +03:00
shuankio
a0490f2b67
net.http: fix post error with https on windows (#19334) 2023-09-12 15:43:13 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
Kim Shrier
621cb6dde0
builtin: use libgc-threaded on FreeBSD, to get the threaded version of libgc (#19294) 2023-09-07 12:26:46 +03:00
Delyan Angelov
fca8092523
builtin: fix the wording of panic messages, about sorting not working with -freestanding
Thanks @MPetr for spotting it.
2023-09-01 10:04:29 +03:00
Delyan Angelov
58b6ba81d1
builtin: implement array.sorted() and array.sorted_with_compare() methods, that do not modify their receivers (#19251) 2023-09-01 09:12:00 +03:00
Delyan Angelov
803001edaa
builtin: add support for -d bultin_writeln_should_write_at_once and -d bultin_write_buf_to_fd_should_use_c_write (#19243) 2023-08-30 23:44:33 +03:00
Delyan Angelov
d503435dd4
builtin: always show the assert message, if it was defined in the source, in non test programs too (fix #19240) 2023-08-30 21:05:23 +03:00
Turiiya
f755118e7c
vlib: update doc comments (#19231) 2023-08-30 08:50:00 +03:00
yuyi
815439a381
checker: fix assigning an array slice (fix #19120) (#19137) 2023-08-15 20:37:51 +03:00