16102 Commits

Author SHA1 Message Date
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
Delyan Angelov
c44a89649a
examples: add examples/fetch_ip.v, showing how to contact http://ifconfig.co/json and parse the result 2023-09-06 12:24:01 +03:00
Delyan Angelov
c7ebc477b0
net.http: default explicitly to Method.get for http.Request and http.FetchConfig too 2023-09-06 12:03:19 +03:00
Delyan Angelov
330dda59c8
net.http: fix http.fetch(), without explicit method (default again to .get, not to .acl) 2023-09-06 11:59:47 +03:00
Turiiya
dac6f0b0c9
vdoc: improve html tag escape (#19266) 2023-09-06 09:42:18 +03:00
Turiiya
0e154bbbfd
vdoc: update html escape test to cover more cases (#19272) 2023-09-06 09:39:06 +03:00
Turiiya
3329919144
encoding.html: improve hex unescaping, add test (#19279) 2023-09-06 09:37:51 +03:00
Kim Shrier
be6f20a288
thirdparty/mbedtls: do not define MBEDTLS_HAVE_X86_64, when compiling with tcc (#19273)
While the tcc compiler does support some of the SSE instructions, it does not support all of them. And, in particular, it doesn't support movdqu which is used in the assembly language instructions in aesni.c.
2023-09-06 09:28:48 +03:00
Delyan Angelov
3e93a13ed8
math: fix failing test on FreeBSD with gcc 12.2.0 (and -ffast-math) (#19278) 2023-09-06 07:30:46 +03:00
Delyan Angelov
639f128c1b
pref: support -fast-math, passing either -ffast-math or /fp:fast (for msvc) to the C backend, and $if fast_math { to detect it at comptime 2023-09-05 14:48:11 +03:00
Delyan Angelov
dee8fb99c5 math: log more diagnostic information for the failing test_pow test in math_test.v 2023-09-05 12:38:28 +03:00
Turiiya
273341685a
encoding.html: implement unescape() (#19267) 2023-09-05 08:29:24 +03:00
Kim Shrier
c126450201
math: fix expected results for -5 raised to the -2 power, add a few more cases (#19274) 2023-09-05 08:13:29 +03:00
Delyan Angelov
fb0f12f937
math: add more C. fn overrides, for the default C backend (speed up examples/path_tracing.v) (#19271) 2023-09-04 21:09:01 +03:00
Leo Developer
a3fa575cf6
math: speedup the pure V math.pow implementation for non-fractional powers (#19270) 2023-09-04 18:37:29 +03:00
Alexander Medvednikov
78659f48c5 bench: a new bench/ directory for language benchmarks 2023-09-04 17:41:19 +03:00
yuyi
e6b7eb3a29
parser: fix fixed array with eval const size (#19269) 2023-09-04 11:57:25 +03:00
Peyton Creery
d04a3e52e3
stbi: add LoadParams to load_from_memory() as well (#19268) 2023-09-04 09:24:34 +03:00