16069 Commits

Author SHA1 Message Date
Delyan Angelov
b746083b44
tools: skip _input.vv files in cmd/tools/git_pre_commit_hook.vsh, just report them without vfmt-ing them 2023-09-14 22:46:10 +03:00
Artem Yurchenko
50ab33180f
doc: add a guide for issues filtering in CONTRIBUTING.md (#19347) 2023-09-14 16:11:20 +03:00
Delyan Angelov
5d1f87c5aa
cgen: add support for -d trace_cgen_stmt, document it in CONTRIBUTING.md 2023-09-13 15:10:26 +03:00
Turiiya
4d8b2e9995
toml: fix custom to_toml for complex structs (#19338) 2023-09-13 12:48:14 +03:00
pancake
0244ae6fe9
net.ssl: implement SSLConn.peer_addr() (#19333) 2023-09-13 12:16:46 +03:00
Swastik Baranwal
f8ba4ba1fe
checker: disallow alias ptr cast of a map value (#19336) 2023-09-13 11:40:10 +03:00
Delyan Angelov
0e2dc381ab
v.help: use os.executable() instead of @VEXE as an anchor, so v help will work more robustly.
With that change, `v help` will always work, even right after a V archive is downloaded,
and extracted in an arbitrary folder on another machine, without needing `v self` first.
weekly.2023.37
2023-09-12 23:11:33 +03:00
shuankio
a0490f2b67
net.http: fix post error with https on windows (#19334) 2023-09-12 15:43:13 +03:00
Casper Küthe
e8d133d548
orm: fix cgen inserting wrong array index (#19324) 2023-09-12 14:50:13 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
Wertzui123
c98e00c01f
regex: remove duplicate notice in the README (#19332) 2023-09-12 14:41:48 +03:00
Kim Shrier
282bb7408c
freebsd: fix compilation with the prebuilt tcc for programs doing import stbi, by adding newline to last line of header files (#19329) 2023-09-12 11:40:41 +03:00
Felipe Pena
1ce4213afb
tests: add a missing shared map test (#19322) 2023-09-11 09:06:07 +03:00
Turiiya
140b5a3e39
toml: implement decode method for Doc (#19318) 2023-09-11 06:26:34 +03:00
Felipe Pena
81b30caf18
checker: fix typeof of typeof.name (#19323) 2023-09-11 02:32:22 +03:00
Felipe Pena
d275af2dbf
cgen, checker: fix opt const (#19314) 2023-09-11 02:30:05 +03:00
Alexander Medvednikov
d3e950b3a9 checker: more line-info logic 2023-09-11 01:40:34 +03:00
Alexander Medvednikov
b9a233b1a0 checker: more line-info logic 2023-09-11 01:38:09 +03:00
Turiiya
12dd6e8b39
toml: add comptime check if a supported type (struct) was passed to toml.decode, when the type has no custom .from_toml method defined (#19317) 2023-09-10 17:32:02 +03:00
yuyi
1218d88cfd
checker: check enum fields with duplicate value (fix #19309) (#19310) 2023-09-10 17:28:25 +03:00
Kim Shrier
9145869110
cgen: fix the logic around the definition of VNORETURN and VUNREACHABLE (less warnings on FreeBSD) (#19316) 2023-09-10 17:26:29 +03:00
yuyi
7661b5a757
cgen: fix printing struct with thread field (#19320) 2023-09-10 17:03:42 +03:00
Subhomoy Haldar
b0fb9fb7ed
crypto.md5: change the Digest.write return type, from ?int to !int (#19311)
Co-authored-by: Subhomoy Haldar <shaldar@componentsense.com>
2023-09-09 13:34:47 +03:00
Spydr
7230f252c8
native: make native tests pass on windows; refactor PE file generation (#19140) 2023-09-09 10:14:31 +03:00
Delyan Angelov
9f7902babc
ci: update containers_ci.yml to not try to install libexecinfo-static, which is not present on the latest Alpine image 2023-09-09 01:03:22 +03:00
Turiiya
1e38cc0986
checker: disallow module name duplicates in local names (#18118) 2023-09-08 23:33:35 +03:00
yuyi
3a2994bc80
cgen: cleanup go_before_stmt(0) (#19308) 2023-09-08 22:49:54 +03:00
Swastik Baranwal
68cbf272fc
parser: disallow using sql as name (#19298) 2023-09-08 17:31:47 +03:00
yuyi
9a4fbc856b
fmt: cleanup fmt comments (#19306) 2023-09-08 07:58:51 +03:00
yuyi
66c62b931c
tests: supplement test cases in fixed_array_const_size_test.v (#19303) 2023-09-08 07:56:56 +03:00
Turiiya
51fa83dbbd
vdoc: prevent main-content outline with certain devices / browsers (#19304) 2023-09-08 07:54:48 +03:00
yuyi
92b551f277
cgen: fix printing struct with thread field (#19302) 2023-09-08 07:53:56 +03:00
Kim Shrier
2d4ccf6829
vlib: replace macros that resolve to __builtin_bswapnn calls for tcc (#19305)
The tcc compiler does not have __builtin_bswap64, __builtin_bswap32,
and __builtin_bswap16 functions.  The various hton and ntoh macros
resolve down to these functions.  When compiling with tcc, we should
be using the analogous functions from net.conv.
2023-09-08 07:42:28 +03:00
Ivan Vatlin
bea12e2623
time: add MMM in the doc comment for parse_format() (#19299) 2023-09-08 07:22:31 +03:00
Kim Shrier
b4d0e12c4c
os: include sys/sysctl.h on FreeBSD to avoid implicit definition of sysctl function (#19293) 2023-09-07 16:08:18 +03:00
yuyi
055e113af3
parser, transformer: fix transformer.infix_expr() and cleanup parse_types.v (related #19269) (#19276) 2023-09-07 16:04:15 +03:00
yuyi
a23f89e243
fmt: simplify the processing logic for removing inline comments (#19297) 2023-09-07 16:00:00 +03:00
omerrob
f18086cd89
db.pg: allow postgres connection using service definitions (#19288) 2023-09-07 12:30:34 +03:00
Kim Shrier
621cb6dde0
builtin: use libgc-threaded on FreeBSD, to get the threaded version of libgc (#19294) 2023-09-07 12:26:46 +03:00
Delyan Angelov
0bf66f591e
ci: test the pure V math versions without .c.v overrides on the CI too (#19292) 2023-09-07 12:23:36 +03:00
Delyan Angelov
21aa97206f
all: support ./v -exclude @vlib/math/*.c.v vlib/math/math_test.v, for using the pure V math module implementation, without the .c.v overrides there. (#19290) 2023-09-06 22:02:14 +03:00
Delyan Angelov
2fb6940b99
.cirrus.yml: change test_zip_modules -> test_zip_modules_script, so that the CI can recognise the new task name and execute it 2023-09-06 21:45:54 +03:00
Kim Shrier
60b901dda2
thirdparty/zip: properly include utime.h and set defines for FreeBSD (#19285) 2023-09-06 21:42:31 +03:00
Leo Developer
43ccba3713
math: fix pure v math.pow (#19287) 2023-09-06 21:41:15 +03:00
Ivan Vatlin
c790afabdc
time: add MMM support for parse_format() (#19284) 2023-09-06 18:46:57 +03:00
Delyan Angelov
3739175fdb
tools: fix notice in cmd/tools/vpm.v, found after ./v -N build-tools 2023-09-06 15:17:59 +03:00
Delyan Angelov
d97474d487
all: support -N, turning *all* notices into errors, to ease the process of finding places that may need attention/correction 2023-09-06 15:16:42 +03:00
Delyan Angelov
37c189c75f
ci: cleanup .cirrus.yml 2023-09-06 14:36:21 +03:00
Delyan Angelov
b36042d946
bench/vectors: update the README.md with instructions of how to make a release build for the C# code, add measurements 2023-09-06 14:03:16 +03:00
Delyan Angelov
88cac9bdf4
bench/vectors: add instructions on how to run the C# original code with dotnet run, format vectors.cs with dotnet format 2023-09-06 13:16:07 +03:00