Delyan Angelov
f580597ffc
ci: fix -cstrict compilation on tests-sanitize-undefined-clang
2021-06-23 20:17:58 +03:00
Delyan Angelov
66bf963a48
builtin: remove C.printf call from string.free()
2021-06-23 16:31:46 +03:00
Delyan Angelov
9151f085f5
ci: fix failing Freestanding task
2021-06-23 13:18:17 +03:00
Delyan Angelov
dd254a6652
builtin: streamline print/eprint/println/eprintln, do not println in 2 steps when possible
2021-06-23 12:22:05 +03:00
Delyan Angelov
79df7f51c3
v: deprecate [if ident]
in favour of [if ident ?]
2021-06-22 10:30:14 +03:00
Ekopalypse
81fe702b77
builtin: disable the unhandled exception handler, when -d no_backtrace
is used ( #10530 )
2021-06-21 08:01:18 +03:00
yuyi
afc81277be
v.gen.c: fix assigning a fixed array variable to a map value ( #10523 )
2021-06-20 08:09:24 +03:00
Ekopalypse
c53a344d2f
builtin: allow a static gc build on windows ( #10510 )
2021-06-19 17:06:25 +03:00
Delyan Angelov
aea23e8a40
strconv: fix fxx_to_str_l_parse/fxx_to_str_l_parse_no_dot returning s without cloning
2021-06-19 07:48:46 +03:00
Bastian Buck
acf9d168cb
os: fix some C compiler warnings for windows ( #10506 )
2021-06-18 20:07:25 +03:00
Alexander Medvednikov
eacdd0d7e1
comptime: fix $(field.name) in $for; vweb: shared fields
2021-06-16 20:33:39 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan()
where possible ( #10465 )
2021-06-15 14:47:11 +03:00
Delyan Angelov
be3702dcb7
builtin: uncomment already working test functions in array_test.v
2021-06-14 10:13:59 +03:00
Uwe Krüger
5ee1ded3fb
gc: extend optimized mode to maps ( #10426 )
2021-06-13 06:26:43 +03:00
Uwe Krüger
652e7ba973
gc: extend optimized mode to strings ( #10431 )
2021-06-12 11:27:08 +03:00
Alexander Medvednikov
e02d1d4a4b
Revert "gc: extend optimized mode to strings ( #10409 )"
...
This reverts commit 3f654a69e3
.
2021-06-12 01:52:06 +03:00
Uwe Krüger
3f654a69e3
gc: extend optimized mode to strings ( #10409 )
2021-06-12 00:03:05 +03:00
Uwe Krüger
daeeaef030
vfmt: hot fix to allow separate array_d_gcboehm_opt.v
( #10413 )
2021-06-11 12:00:18 +03:00
Uwe Krüger
0e2c86310a
GC-boehm: extend optimized mode to all array
methods ( #10406 )
2021-06-10 21:26:17 +03:00
pancake
5be982d63e
builtin: fix memory leak on empty strings ( #10408 )
2021-06-10 15:21:57 +03:00
Andreas Heissenberger
96c8d147b2
v.gen.js: add source map creation support (inline only, no src) ( #10384 )
2021-06-10 08:33:46 +03:00
Uwe Krüger
811a3e1d38
builtin: optimize array.repeat()
( #10396 )
2021-06-09 12:52:30 +03:00
Uwe Krüger
a2243054a5
builtin: fix memory corruption in array .clone()
and .repeat()
( #10394 )
2021-06-08 23:23:28 +03:00
Delyan Angelov
95cf120e2e
ci: fix linux-cross job; os.real_path cleanup
2021-06-08 18:34:15 +03:00
Delyan Angelov
40ac7d4892
builtin: support -d trace_vcalloc, -d trace_realloc
2021-06-08 17:24:07 +03:00
Delyan Angelov
665c386771
builtin: simplify the .si_c and .si_vp cases in StrIntpData.get_fmt_format, free intermediate results
2021-06-08 13:29:03 +03:00
Uwe Krüger
89aab95177
builtin: fix -gc boehm on windows ( #10330 )
2021-06-04 17:38:51 +03:00
Uwe Krüger
ce3e71cb8e
OpenBSD: support Boehm-GC, X11 and Sqlite ( #10300 )
2021-06-01 22:28:30 +03:00
Delyan Angelov
8fee140fc0
builtin: small cleanup in string_interpolation.v
2021-06-01 16:21:43 +03:00
penguindark
1343787009
builtin: fix interpolation bug for ${x:g/G}
, where x
is a zero or an infinity ( #10271 )
2021-05-30 19:30:18 +03:00
Thomas Treffner
ba86d619fa
builtin: fix print/println on termux ( #10253 )
2021-05-30 08:10:32 +03:00
Uwe Krüger
15557161cc
builtin: add trailing 0
to reversed string ( #10248 )
2021-05-29 16:45:26 +03:00
penguindark
7089ff3957
builtin: fix a bug in str_intp ( #10238 )
2021-05-28 18:44:30 +03:00
Uwe Krüger
8828054e5b
builtin: fix arrays/slices memory bug ( #10219 )
2021-05-27 15:50:06 +03:00
penguindark
2dd1d3fcbb
all: string interpolation code cleaning ( #10204 )
2021-05-26 09:30:08 +03:00
Joe Conigliaro
560301dbfe
cgen: dont preallocate zero length with capacity of 1
2021-05-26 14:51:20 +10:00
Enzo
39c376bb5b
builtin,gen: use operator overloading on ustring ( #10197 )
2021-05-25 14:51:48 +03:00
Enzo
ce7f78522d
builtin: remove former string operator methods ( #10184 )
2021-05-24 14:05:29 +03:00
Enzo
886f69bfcf
all: use operator overloading on strings (p. 2) ( #10183 )
2021-05-24 11:38:31 +03:00
penguindark
d8d05e0106
all: new string interpolation in pure V ( #10181 )
2021-05-24 05:20:45 +03:00
Delyan Angelov
7f12bfa563
builtin: optimise sx == sy
in the case where strings have common prefixes
2021-05-23 17:22:57 +03:00
Delyan Angelov
5efd8c62d0
ci: fix tests-sanitize-undefined-clang
2021-05-23 15:13:53 +03:00
Delyan Angelov
a27e7f7675
builtin: remove commented code; improve print_backtrace with tcc
2021-05-23 12:37:40 +03:00
yuyi
ae9f8627fc
checker: simplify generic structs ( #10167 )
2021-05-23 05:54:58 +03:00
Alexander Medvednikov
7c0f8f7644
builtin: a small optimization in string.replace()
2021-05-22 14:35:36 +03:00
Delyan Angelov
2086e6f1c1
builtin, cgen: implement chunked allocation of 16MB blocks with -prealloc ( #10130 )
2021-05-19 10:35:56 +03:00
Delyan Angelov
94e7a55b97
builtin: implement -d trace_error
...
With debugger backtraces, it can help pinpoint the original source of a
bubbled error, until we can store stacktraces in the errors in an
efficient way.
2021-05-18 20:03:00 +03:00
Alexander Medvednikov
ed6ad728d9
vweb: fix serving static files
2021-05-16 04:28:14 +03:00
JalonSolov
274c817028
builtin.string: optimize split_into_lines ( #10081 )
2021-05-11 18:57:32 +03:00
Delyan Angelov
e6011e83ce
builtin: cleanup string.v
2021-05-11 13:59:44 +03:00