v/vlib/builtin
2023-11-11 01:10:34 +03:00
..
js ci: mark more js tests as flaky 2023-11-04 10:01:04 +02:00
linux_bare testing: fix notices with v test-all on Linux for v -freestanding str_array_example.v 2023-11-01 19:35:02 +02:00
wasm builtin: move min/max integer values consts from math to builtin (#19809) 2023-11-08 20:43:48 +02:00
wasm_bare 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
wchar all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
array.c.v
array.v builtin: move min/max integer values consts from math to builtin (#19809) 2023-11-08 20:43:48 +02:00
array_d_gcboehm_opt.v all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
array_flags_test.v builtin: add .nogrow and .nofree flags to array (#16661) 2022-12-14 09:44:14 +02:00
array_notd_gcboehm_opt.v builtin, cgen: fix array of struct with map field initialize (fix #17325) (#17340) 2023-02-18 20:34:15 +02:00
array_sorted_test.v 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
array_test.v vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
backtraces.c.v native, builtin, ast: handle ast.HashStmt correctly and reduce macro usage in builtin (#19498) 2023-10-04 16:42:15 +03:00
backtraces_nix.c.v native, builtin, ast: handle ast.HashStmt correctly and reduce macro usage in builtin (#19498) 2023-10-04 16:42:15 +03:00
backtraces_windows.c.v vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
builtin.c.v 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
builtin.v 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
builtin_android_outside_termux.c.v android: provide more predictable logging, add comptime termux support (#14984) 2022-07-07 18:28:29 +03:00
builtin_backtraces_d_musl.c.v builtin: improve musl/Alpine support (define weak backtrace/backtrace_symbols/backtrace_symbols_fd symbols) (#14250) 2022-05-03 09:17:53 +03:00
builtin_backtraces_nix.c.v builtin: improve musl/Alpine support (define weak backtrace/backtrace_symbols/backtrace_symbols_fd symbols) (#14250) 2022-05-03 09:17:53 +03:00
builtin_d_gcboehm.c.v coroutines: get photonlib/coroutines working with GC 2023-10-09 12:10:19 +11:00
builtin_d_use_libbacktrace.c.v all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
builtin_ios.c.v
builtin_nix.c.v builtin: extract backtraces.c.v, backtraces_nix.c.v, backtraces_windows.c.v (#19480) 2023-09-30 19:24:31 +03:00
builtin_notd_gcboehm.c.v builtin: heap memory usage api (#18103) 2023-05-03 20:33:52 +03:00
builtin_notd_use_libbacktrace.c.v builtin: print libbacktrace output to stderr, on panics/segfault crash (#14434) 2022-05-17 14:56:34 +03:00
builtin_test.c.v 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
builtin_windows.c.v builtin: fix sizeof(C.BOOL) (windows specific) (#19589) 2023-10-17 18:18:48 +03:00
byte_test.v all: byte => u8 2022-04-15 14:58:56 +03:00
cfns.c.v all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
cfns_wrapper.c.v checker: warn about byte deprecation, when used as a fn parameter (#19629) 2023-10-23 20:54:28 +03:00
chan.v
character_inout.c.v builtin: add input_character/0 and print_character/1 (#19502) 2023-10-04 04:40:03 +03:00
character_inout_test.v builtin: add input_character/0 and print_character/1 (#19502) 2023-10-04 04:40:03 +03:00
float.c.v native, builtin: implement little improvements from #19498 and remove vcommithash() in favor of @VHASH (#19508) 2023-10-05 00:30:55 +03:00
float_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
float_x64.v all: 2023 copyright 2023-03-28 22:55:57 +02:00
gated_array_string_test.v all: support slices with negative indexes #[start..end] (gated arrays) (#12914) 2021-12-22 16:34:02 +03:00
int.v builtin: move min/max integer values consts from math to builtin (#19809) 2023-11-08 20:43:48 +02:00
int_notd_new_int.v native: use i32 instead of int 2023-10-08 02:50:01 +03:00
int_test.v all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
isnil_test.v all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
lambda_expr_array_test.v 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
map.c.v all: byte => u8 2022-04-15 14:58:56 +03:00
map.v vlib: update doc comments (#19231) 2023-08-30 08:50:00 +03:00
map_d_gcboehm_opt.v cgen: minimise sizeof(EmptyStruct) to 0 for gcc/clang and to 1 for tcc/msvc, by changing EMPTY_STRUCT_DECLARATION and EMPTY_STRUCT_INITIALIZATION (#16733) 2022-12-22 21:47:39 +02:00
map_of_floats_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
map_test.v builtin: fix m.len to 0, after calling map.clear() (#16720) 2022-12-22 21:36:33 +02:00
option.c.v all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
option.v pref: temporary 64 bit int option 2023-10-07 13:47:55 +03:00
prealloc.c.v prealloc: use u8 instead of byte 2023-05-29 01:42:52 +02:00
README.md builtin: add more documentation (#13160) 2022-01-14 17:27:38 +02:00
result.v builtin: extract vlib/builtin/result.v from vlib/builtin/option.v 2023-10-03 08:36:13 +03:00
rune.v builtin,math: add more missing doc strings for public functions (#19509) 2023-10-05 00:35:37 +03:00
rune_test.v all: byte => u8 2022-04-15 14:58:56 +03:00
sorted_lambda_expr_test.v 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
sorted_map.v builtin: minor cleanup in sorted_map.v (#18502) 2023-06-21 12:34:05 +03:00
sorting_test.v vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
string.v net,vweb: reduce allocations by ~80% 2023-11-11 01:10:34 +03:00
string_charptr_byteptr_helpers.v all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
string_int_test.v checker: more precise error handling of large binary literals like 0b1000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000_0000 (#16775) 2022-12-27 15:13:15 +02:00
string_interpolation.v vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
string_match_glob_test.v all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
string_strip_margin_test.v all: 2023 copyright 2023-03-28 22:55:57 +02:00
string_test.v builtin: fix split_nth() and rsplit_nth() on an empty delimeter (#19005) 2023-07-30 00:12:51 +03:00
string_trim_indent_test.v all: 2023 copyright 2023-03-28 22:55:57 +02:00
utf8.c.v vlib: add a new module builtin.wchar, to ease dealing with C APIs that accept wchar_t* (#18794) 2023-07-07 02:40:11 +03:00
utf8.v vlib: remove methods deprecated before 2022-07-22 (#18944) 2023-07-22 18:11:12 +03:00
utf8_test.v vlib: add a new module builtin.wchar, to ease dealing with C APIs that accept wchar_t* (#18794) 2023-07-07 02:40:11 +03:00

Description:

builtin is a module that is implicitly imported by every V program.

It implements the builtin V types array, string, map.

It also implements builtin functions like println, eprintln, malloc, panic, print_backtrace.

The autogenerated documentation for builtin functions is lacking, so for these functions, please refer to the official V documentation.