v/vlib/builtin
2025-06-18 08:56:48 +03:00
..
js parser, fmt, gen: support js"string literal" (#24653) 2025-06-09 12:24:08 +03:00
linux_bare tests: fix all warnings for v test-all on linux 2025-05-19 16:16:53 +03:00
wasm builtin,v.gen.wasm: support -b wasm -d no_imports (#24188) 2025-04-13 12:21:35 +03:00
wasm_bare cgen: improve support for v -path bootstrap_alternative_backend/ run simple.v (#23679) 2025-02-09 21:23:14 +02:00
wchar builtin: fix wide tests for big_endian systems (#24145) 2025-04-07 12:42:23 +03:00
array.v builtin: make array.ensure_cap/1 public 2025-06-18 08:56:48 +03:00
array_d_gcboehm_opt.v 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
array_flags_test.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03: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_test.v builtin: remove old TODOs from array_test (#24510) 2025-05-18 16:49:07 +03:00
backtraces.c.v 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
backtraces_nix.c.v 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
backtraces_windows.c.v checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
builtin.c.v builtin: remove playground related code (the current playground uses a container/sandbox) (#24632) 2025-06-01 17:12:51 +03:00
builtin.v builtin,checker: remove @[markused] from fn isnil(), set c.table.used_features.auto_str_ptr = true instead (#23464) 2025-01-15 09:16:33 +02:00
builtin_android_outside_termux.c.v
builtin_backtraces_d_musl.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_backtraces_nix.c.v
builtin_d_gcboehm.c.v builtin: use local static libgc for FreeBSD with tcc (fix #24710) (fix #24683) (#24720) 2025-06-15 09:35:53 +03:00
builtin_d_use_libbacktrace.c.v v: change old attr syntax mention to new one in comments too (#21860) 2024-07-14 09:39:37 +03:00
builtin_ios.c.v
builtin_nix.c.v builtin,markused,pref,cgen: improve markused for small programs 2025-03-18 21:05:04 +02:00
builtin_notd_gcboehm.c.v builtin: make public the FnGC_WarnCB alias (#23633) 2025-02-02 13:45:28 +02:00
builtin_notd_use_libbacktrace.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_test.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
builtin_unbuffer_stdout_test.v builtin: implement unbuffer_stdout/0 (#20662) 2024-01-26 17:47:43 +02:00
builtin_windows.c.v checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
byte_test.v
cfns.c.v os: fix os.File's tell/0 method for windows (fix #24217) (#24218) 2025-05-20 15:41:15 +03:00
cfns_wrapper.c.v ci: update linux image runners from ubuntu-20.04 to ubuntu-24.04 (#23706) 2025-02-17 07:37:59 +02: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
fixed_array_test.v builtin: cleanup by merging fixed array tests into one test file (#22884) 2024-11-17 12:58:36 +02:00
float.c.v math,examples: make 2048 use sliding animation for the tile movement (#23268) 2024-12-26 06:39:59 +02:00
float_test.v all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
float_x64.v all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
gated_array_string_test.v
int.v checker: fix private symbol visibility checking (fix #23518) (#23543) 2025-01-27 11:42:27 +02:00
int_d_new_int.v tmpl: fix an extra newline in @for; builtin: some i64 fixes 2024-07-31 13:30:30 +03:00
int_notd_new_int.v native: use i32 instead of int 2023-10-08 02:50:01 +03:00
int_test.v builtin: fix tests for int (avoid new V warning) (#24528) 2025-05-20 15:54:01 +03:00
isnil_test.v builtin: fix tests for isnil for -prod or -W, after the recent new cast warning (#24531) 2025-05-21 06:10:34 +03:00
lambda_expr_array_test.v all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
map.c.v checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
map.v v: missing -skip-unused fixes (#22978) 2024-11-28 01:03:03 +02:00
map_d_gcboehm_opt.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03: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 recent cast warning for tests for map (fix compilation with -prod or -W) (#24532) 2025-05-21 06:04:33 +03:00
option.c.v all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
option.v builtin,markused,pref,cgen: improve markused for small programs 2025-03-18 21:05:04 +02:00
prealloc.c.v parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
README.md doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
result.v builtin: cleanup interface IError, remove the obsolete .code and .msg fields, deprecated in 2022-02-11 (#22063) 2024-08-17 09:53:46 +03:00
rune.v builtin: minor optimization in rune.map_to() (#22810) 2024-11-09 09:33:51 +02:00
rune_map.v builtin: fix rune.to_title(), add tests (#22808) 2024-11-08 17:09:20 +02:00
rune_test.v builtin: fix rune.to_title(), add tests (#22808) 2024-11-08 17:09:20 +02: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 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
sorting_test.v all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
string.v doc: fix v doc -l -comments builtin not showing the starting comment for string.split (reorder comments) 2025-05-04 18:23:24 +03:00
string_charptr_byteptr_helpers.v fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
string_int_test.v checker: fix signed integer literal overflow error, when most significant bit occupies signed bit (fix #23782) (#23919) 2025-03-13 17:29:44 +02:00
string_interpolation.v cgen: reduce v.c size by ~4% by removing comments and using shorter literals 2025-06-03 02:59:55 +03:00
string_match_glob_test.v all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
string_strip_margin_test.v all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
string_test.v parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
string_trim_indent_test.v all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
utf8.c.v builtin: reduce a bit the generated #if defined checks for small programs (#23484) 2025-01-16 17:16:09 +02:00
utf8.v 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
utf8_test.v builtin: fix wide tests for big_endian systems (#24145) 2025-04-07 12:42:23 +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.