Delyan Angelov
f66836458f
v.util: support -d trace_cached_read_source_file
2022-05-08 14:03:58 +02:00
Alexander Medvednikov
6613391ed0
doc: closures work on arm64 too
2022-05-08 14:03:57 +02:00
playX
9c9b50933c
v.util: add math to builtin_module_names (temporary fix for C2V) ( #14100 )
2022-04-21 10:34:33 +02:00
Delyan Angelov
53fde9c812
v.util: always compile vfmt with `-d vfmt` to enable more efficient parsing
2022-04-17 12:14:33 +02:00
Alexander Medvednikov
80b35fe0c6
all: ~500 more byte=>u8
2022-04-17 12:14:29 +02:00
Alexander Medvednikov
7ecbca345f
all: byte => u8
2022-04-17 12:14:27 +02:00
Alexander Medvednikov
2a84f6db95
all: byte => u8
2022-04-17 12:14:26 +02:00
Alexander Medvednikov
cc227d8520
checker: fix non-numeric type check for translated code
2022-04-04 04:59:14 +03:00
Delyan Angelov
44603f8e59
checker: add suggestions for misspelled `mod.func_name()` calls
2022-04-03 20:07:52 +03:00
Delyan Angelov
7f28d91190
ci: fix again -usecache regression on macos
2022-03-26 09:47:44 +02:00
Alexander Medvednikov
0248349e7c
cgen: global/const fixes
2022-03-25 23:33:01 +03:00
Delyan Angelov
21e9b1deb0
ci: fix -usecache failure on macos
2022-03-21 08:52:25 +02:00
Alexander Medvednikov
80c94ea73e
cgen: fix c2v consts in .o files
2022-03-21 04:56:37 +03:00
Delyan Angelov
f6aba9a3fe
util: make check_module_is_installed more robust to ~/.vmodules paths with spaces
2022-03-08 11:33:03 +02:00
Alexander Medvednikov
36ec47cd20
all: replace "NB:" with "Note:" (docs/comments)
2022-03-06 20:01:22 +03:00
Delyan Angelov
fd91811fe2
v.util: add set_source_for_path/2 to enable external tools to use util.formatted_error on pathless sources
2022-03-01 18:55:25 +02:00
Delyan Angelov
a054f868a0
v.util: use a normalised relative file path in the error messages with /, even on windows, to make the compiler error tests more robust
2022-02-04 17:56:08 +02:00
Delyan Angelov
46a096b95d
Revert "v.util: make mod_path_to_full_name more robust"
...
This reverts commit b11ce91141
.
2022-01-31 06:57:50 +02:00
Delyan Angelov
b11ce91141
v.util: make mod_path_to_full_name more robust
2022-01-30 22:26:36 +02:00
Delyan Angelov
f6cb772347
v.util: prepare for removing vlib/v/util/module.v - improve tracing, comment edge cases with actual data
2022-01-30 15:08:33 +02:00
Benjamin Stigsen
ceb05b163a
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation ( #13313 )
2022-01-28 20:34:44 +02:00
yuyi
291a1ffd8d
token: rename Position to Pos, rename position() to pos() ( #13279 )
2022-01-26 12:36:28 +02:00
Delyan Angelov
359b674cff
ci: fix more failing tests
2022-01-22 23:18:09 +02:00
Delyan Angelov
62c3ad4953
use os.quoted_path more
2022-01-22 22:22:22 +02:00
Delyan Angelov
fa6f7d4c83
os: add os.quoted_path/1, use it consistently for running V itself
2022-01-22 21:13:28 +02:00
yuyi
4660220f4c
util: fix the potential error of js_builder command ( #13170 )
2022-01-14 15:49:24 +02:00
Delyan Angelov
da0b89cc57
tools: improve support for renamed v executables (`vlang self` now works too)
2022-01-10 15:45:28 +02:00
playX
ec91de3504
builtin: use dlmalloc for `-freestanding` ( #13054 )
2022-01-06 14:10:37 +02:00
Delyan Angelov
59357e873d
math: move the `math.mathutil` generic `min`/`max`/`abs` fns to `math` ( #13042 )
2022-01-05 18:02:20 +02:00
Alexander Medvednikov
59ed4be49a
all: update copyright year
2022-01-04 12:21:12 +03:00
Delyan Angelov
3afbb9e90a
all: split all backends into cmd/tools/builders ( #12811 )
2021-12-12 22:10:43 +03:00
Delyan Angelov
229d2fb667
v.util.timers: improve tracing by supporting `-d trace_timers_creation`
2021-12-05 11:55:41 +02:00
playX
0da7e2f8ab
js: make vlib/v/util compile on JS backend ( #12660 )
2021-12-03 12:25:36 +02:00
Delyan Angelov
d431145a39
v.util,tools: use os.join_path_single
2021-11-22 21:42:55 +02:00
Delyan Angelov
1aaac13a60
cgen: make `os` less special, fix an -autofree leak on just `import os`
...
* Improve documentation of v.util.Surrounder
* Remove `os` from the list of "no auto free" `builtin` mods
* Fix -autofree freeing of `const x = []string{}`.
* Add a valgrind regression test.
* Implement os.getenv_opt in vlib/os/environment.js.v too.
2021-11-21 21:50:10 +02:00
Delyan Angelov
117c99d938
v.util: add Surrounder.builder_write_befores and Surrounder.builder_write_afters methods for writing to an existing strings.Builder
2021-11-21 20:56:47 +02:00
Delyan Angelov
258d0d6df7
cgen: make `dump(x)` use a single write call, fix memleaks for autogenerated .str() methods of nested structs ( #12529 )
2021-11-20 20:55:19 +02:00
Delyan Angelov
3f841edec1
v.util: make get_vtmp_folder() return `/tmp/v_{uid}` by default (see https://github.com/vlang/v/discussions/11796 )
2021-11-09 08:25:19 +02:00
Delyan Angelov
80242c8041
builtin,ast: apply small performance improvements, suggested by `hotspot`
2021-11-07 13:30:44 +02:00
Delyan Angelov
4c67c01e72
parser,util: improve libleak false positive detection rate
2021-10-29 16:42:55 +03:00
Delyan Angelov
eed94c727c
os: move C struct declarations in their own _default.c.v files ( #12268 )
2021-10-22 17:08:08 +03:00
playX
d373eba79b
js: implement more functions for JS backend ( #12167 )
2021-10-13 09:40:14 +03:00
Alexander Medvednikov
b72a2de931
0.2.4
2021-08-30 22:25:14 +03:00
yuyi
4ce9ad6a56
util/module: fix mod_path_to_full_name() ( #11329 )
2021-08-29 11:56:05 +03:00
yuyi
8be2be8311
all: change 'if !(a in b)' to 'if a !in b' ( #11330 )
2021-08-29 11:55:18 +03:00
Delyan Angelov
6843b85063
ci: fix `clang -std=c99 -D_DEFAULT_SOURCE -o v vc/v.c` warnings
2021-08-15 11:12:48 +03:00
Delyan Angelov
d540b3f1a8
v.util: improve formatted_error by adding cached_file2sourcelines, so .split_into_lines is called just once (important for long source files with many errors)
2021-08-14 23:01:30 +03:00
Delyan Angelov
1743ad05c0
v.util: add a small cache for util.read_file, so reading individual source files is done just once
2021-08-14 21:59:28 +03:00
zakuro
490dec222f
fmt: keep char literal, `'` ( #11060 )
2021-08-06 06:21:28 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions ( #11035 )
2021-08-04 12:44:41 +03:00