1911 Commits

Author SHA1 Message Date
kbkpbot
dddbacb196
vlib: fix new_int for tests too (#25351) 2025-09-19 16:54:58 +03:00
kbkpbot
1361002adc
gg: change the Color APIs, that int to use i32 instead (#25349) 2025-09-19 14:33:54 +03:00
kbkpbot
b93dfa1a03
v: cleanup - replace complex 64bit CPU comptime ident with && x64 (#25343) 2025-09-18 17:18:14 +03:00
Felipe Pena
97edd610b0
v: implement comptime regular func params traversing (support $if T is $function { $for param in T.params {) (#25322) 2025-09-16 20:37:15 +03:00
kbkpbot
d2174e47a5
v.gen.js: simplify comptime if; catch up with cgen (fix #25295) (#25313) 2025-09-15 19:24:25 +03:00
Delyan Angelov
5d98162960
builtin,cgen: fix i64 enum as a map key, when the enum values are too small (fix #25294) (#25310) 2025-09-15 19:11:07 +03:00
Eliyaan (Nopana)
5bad20dbe5
native: begin array support, a := []Type{len: x, cap: y} and a[i] read/write (#25299) 2025-09-15 01:22:07 +03:00
kbkpbot
c221b3226b
cgen,builtin: support for 64bit int 1 (#25236) 2025-09-13 10:03:52 +03:00
CreeperFace
e317c634bb
cgen: prefix builtin APIs with builtin__ (#25264) 2025-09-10 15:12:22 +03:00
kbkpbot
e650d6b7f0
cgen: fix big IntegerLiteral LL postfix (fix #25269) (#25275) 2025-09-10 09:45:40 +03:00
xieke
015a85daf4
builtin: fix thread naming issue on Windows by ignoring RaiseException (0x406D1388) (#25270) 2025-09-10 09:34:45 +03:00
Delyan Angelov
01f108e349
builtin: fix v -W -Wimpure-v examples/hello_world.v (move ctovstring_impl to builtin.c.v) 2025-09-10 09:11:17 +03:00
Delyan Angelov
69e80ba96d
builtin: add a temporary ctovstring_impl/1 API to enable ui to compile cleanly for PR#25264, part 1 2025-09-09 15:00:16 +03:00
Delyan Angelov
fb95f4cc6f
ci: run input_rune_iterator_test.v only on linux for now 2025-09-07 08:46:08 +03:00
Delyan Angelov
08a739d793
ci: cleanup .gitattributes, runes.txt and input_rune_iterator_test.v 2025-09-05 18:34:13 +03:00
Delyan Angelov
35510bc659
builtin: add input_rune/0 and input_rune_iterator/0 + tests (#25238) 2025-09-05 12:39:02 +03:00
kbkpbot
cf61f4fa1b
builtin: fix C prefix for proc_pidpath() (#25239) 2025-09-05 12:23:24 +03:00
Felipe Pena
9a0166701c
cgen: add @[reused] attribute to mark methods, reusing the receiver memory on return (needed for autofree) (fix #25221) (#25235) 2025-09-05 07:44:41 +03:00
Larsimusrex
682db66852
builtin, checker, cgen: expose is_embed in FieldData (#25232) 2025-09-04 11:39:24 +03:00
kbkpbot
a8187442b3
builtin: add arr.pop_left() func (#25133) 2025-08-19 14:37:18 +03:00
Delyan Angelov
2e3f0b27f0
builtin,vdoc: make v doc -unsafe-run-examples -time -f ansi vlib/builtin/ pass too 2025-08-13 16:28:37 +03:00
Delyan Angelov
82cd81e963
builtin,vdoc: fix the examples for the builtin methods, so that v doc -check-examples -time -f ansi vlib/builtin/ pass 2025-08-13 16:22:47 +03:00
Delyan Angelov
963e3e8ae2
builtin: small cleanup and merging of several small files into vlib/builtin/chan_option_result.v (#25089) 2025-08-11 13:46:46 +03:00
Delyan Angelov
4a6941af6c
markused, builtin: apply @[markused] to builtin_init, remove its heuristic from markused.v 2025-08-05 16:04:14 +03:00
Felipe Pena
21d9a5ded5
parser,checker,cgen: remove unused err declaration or or { } blocks (#25034) 2025-08-05 10:48:17 +03:00
Delyan Angelov
b628626923
builtin: fix assert "ä ö å æ ã ø ô é ë".title() == "Ä Ö Å Æ Ã Ø Ô É Ë" (fix #25017) (#25026) 2025-08-02 14:03:28 +03:00
Delyan Angelov
ca620f4965
builtin: fix warnings for ./v doc -m -f html vlib/builtin/ 2025-08-01 18:27:46 +03:00
Delyan Angelov
eb99497ffc
builtin,markused: consider println of non string to use .str() method calls too, reduce generated C code for v -cc gcc examples/hello_world.v (#24996) 2025-07-29 14:52:24 +03:00
Felipe Pena
396dc77a20
markused: reduce hello world csize by 49%, do more cleanups and improvements (#24971) 2025-07-29 09:00:57 +03:00
kbkpbot
2d87ac4837
cgen: move closure C code to V code under vlib/builtin/closure/ (#24912) 2025-07-27 17:44:06 +03:00
Delyan Angelov
4037765828
builtin: fix OOB bugs in s.is_bin, s.is_oct, s.is_hex, discovered through ./v -force-bounds-checking test vlib/builtin/ 2025-07-23 15:52:18 +03:00
Delyan Angelov
da00a46bcc
builtin: prepare for adding a -force-bounds-checking option 2025-07-23 15:26:17 +03:00
kbkpbot
5d4e89f888
os,runtime: move some C struct and fn def to builtin (#24942) 2025-07-22 07:55:53 +03:00
Felipe Pena
0d8cc4588f
markused: remove @[markused] from option and result fns (#24900) 2025-07-15 18:37:48 +03:00
kbkpbot
1ea8574659
os: fix windows get_error_msg() leak (#24899) 2025-07-14 14:54:55 +03:00
Felipe Pena
feb409071d
markused: whitelist _option_none too (fix #24862) (#24885) 2025-07-13 21:09:06 +03:00
kbkpbot
fa904c495e
builtin,cgen,markused: add struct @[aligned] support for structs allocated on the heap too (#24886) 2025-07-13 20:56:28 +03:00
Delyan Angelov
7e35d40661
v2: add formatting workarounds, to make v run cmd/v2/v2.v --skip-imports -d vlib/v2/tests/syntax.v_ run 2025-07-03 09:46:01 +03:00
Delyan Angelov
b305fa5743 docs: cleanup doc comments of public APIs in builtin (found by find_doc_comments_with_no_dots.v) 2025-07-02 16:33:24 +03:00
Delyan Angelov
a5ece523e2
builtin: add unsafe reuse_string_as_data/1 and reuse_data_as_string/1 functions + tests (#24794) 2025-06-26 19:19:35 +03:00
kbkpbot
2da65219e2
builtin: add string.expand_tabs() (#24781) 2025-06-24 02:50:55 +03:00
Delyan Angelov
96c32ecd19
builtin: use s.runes_iterator() in trim_runes/2 to avoid needless allocation 2025-06-23 23:08:18 +03:00
Delyan Angelov
dc1d091ac1
builtin: support -d builtin_free_nop to help diagnose problems with too early manual free() calls 2025-06-21 12:50:15 +03:00
Delyan Angelov
194db24829
builtin: add a rune iterator method to strings, allowing for for i, r in s.runes_iterator() { without first allocating an array for all the runes (#24769) 2025-06-21 12:33:14 +03:00
Delyan Angelov
99be39cbd1
ci: remove the // vtest flaky: true tags from the remaining tests (#24379) 2025-06-19 20:16:49 +03:00
Delyan Angelov
2cd1c9e26b
builtin,os: enable no warnings for gg programs like v -gc boehm_leak -cg -keepc run examples/gg/minimal.v (part 1 - before the gg loop) (#24749) 2025-06-18 16:37:57 +03:00
Delyan Angelov
d52bac1301
builtin: make array.ensure_cap/1 public 2025-06-18 08:56:48 +03:00
Laurent Cheylus
364f9ebda3
builtin: use local static libgc for FreeBSD with tcc (fix #24710) (fix #24683) (#24720) 2025-06-15 09:35:53 +03:00
Jose Mendoza
921e00112a
parser, fmt, gen: support js"string literal" (#24653) 2025-06-09 12:24:08 +03:00
Gonzalo Chumillas
ee77475dc1
jsgen: fix slightly incorrect JS (esbuild was broken on master) (fix #23711) (#24676) 2025-06-09 11:50:45 +03:00