1886 Commits

Author SHA1 Message Date
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
Gonzalo Chumillas
2604fc186f
jsgen: fix maps being always constructed using string keys (fix #24607) (fix #24671) (#24673) 2025-06-09 11:22:24 +03:00
Jose Mendoza
a5f400ee77
parser, ast, fmt: convert "hello".str => c"hello" (fix #24635) (#24652) 2025-06-08 11:44:38 +03:00
Alexander Medvednikov
55d004e310 cgen: reduce v.c size by ~4% by removing comments and using shorter literals 2025-06-03 02:59:55 +03:00
Eliyaan (Nopana)
566d22ab66
builtin: remove playground related code (the current playground uses a container/sandbox) (#24632) 2025-06-01 17:12:51 +03:00
Gonzalo Chumillas
b84512d408
jsgen: fix direct map key access and map.len (fix #24616, fix #24605) (#24620) 2025-05-31 08:00:34 +03:00
Delyan Angelov
bb2d605653
tests: cleanup obsolete TODOs about cgen errors 2025-05-31 07:53:18 +03:00
Gonzalo Chumillas
55eccf6abe
jsgen: fix string.runes method (fix #20500) (#24609) 2025-05-30 06:15:08 +03:00
Gonzalo Chumillas
90fdf102fc
jsgen: implement Map.keys() and Map.values() methods (fix #24209) (#24608) 2025-05-30 05:54:44 +03:00
Eliyaan (Nopana)
399454fb89
builtin: flush stdout on panic (#24606) 2025-05-30 05:40:29 +03:00
Laurent Cheylus
9fd7e3e7c1
builtin: fix tests for isnil for -prod or -W, after the recent new cast warning (#24531) 2025-05-21 06:10:34 +03:00
kbkpbot
89305aabe7
builtin: fix mix prod and debug ucrt lib (#24498) 2025-05-21 06:07:56 +03:00
Laurent Cheylus
89fae6096a
builtin: fix recent cast warning for tests for map (fix compilation with -prod or -W) (#24532) 2025-05-21 06:04:33 +03:00
Laurent Cheylus
35d33ff309
builtin: fix tests for int (avoid new V warning) (#24528) 2025-05-20 15:54:01 +03:00
kbkpbot
c72d77d8a4
os: fix os.File's tell/0 method for windows (fix #24217) (#24218) 2025-05-20 15:41:15 +03:00
Delyan Angelov
b4b860cb1f
tests: fix all warnings for v test-all on linux 2025-05-19 16:16:53 +03:00
Swastik Baranwal
2c42574e6a
builtin: remove old TODOs from array_test (#24510) 2025-05-18 16:49:07 +03:00
Delyan Angelov
9df49bfa31
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
Alexander Medvednikov
7d57a19d7e checker: do not allow &u8(0), force nil like we do with &Type(0) 2025-05-03 22:37:51 +03:00
kbkpbot
57b815f96d
builtin: add string.is_identifier() (#24350) 2025-04-28 13:55:56 +03:00
Xyndra
d559a62cfe
builtin,v.gen.wasm: support -b wasm -d no_imports (#24188) 2025-04-13 12:21:35 +03:00
Felipe Pena
36ec2355b2
cgen: fix zero left padding (fix #24199) (#24201) 2025-04-13 11:46:48 +03:00
Mike
591e1964bb
builtin: fix wide tests for big_endian systems (#24145) 2025-04-07 12:42:23 +03:00
XiaoPangxie732
15c0e6f2bd
strings, builtin: remove strings.Builder.clear(), fix array.clear() not working in the JS backend (#23992) 2025-03-22 17:24:59 +02:00
Kim Shrier
ff43cd5a20
builtin: fix minor typo in join_lines description (#23984) 2025-03-20 13:32:34 +02:00
Delyan Angelov
b528395039
builtin,markused,pref,cgen: improve markused for small programs 2025-03-18 21:05:04 +02:00