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
yuyi
18e60e77de
fmt: remove inline comments ( #19263 )
2023-09-03 23:51:56 +03:00
Alexander Medvednikov
3d2731fca7
V 0.4.1
0.4.1
2023-09-03 22:42:32 +03:00
Alexander Medvednikov
84f70c56a0
tools: improve changelog helper; finish 0.4.1 changelogs
2023-09-03 22:40:26 +03:00
Alexander Medvednikov
ae4fe20b5e
tools: changelog_helper.v for speeding up changelog generation; more 0.4.1 changelogs
2023-09-03 19:44:44 +03:00
Turiiya
61b219953a
encoding.html: optimize escape performance ( #19264 )
2023-09-03 19:01:19 +03:00
Alexander Medvednikov
ed6626dc84
changelog: 0.4.1 (part 1)
2023-09-03 14:08:04 +03:00
Delyan Angelov
7492add2d3
cgen: cleanup code, use PastTmpVar more ( #19261 )
2023-09-02 15:34:54 +03:00
Swastik Baranwal
9f77630f41
checker: disallow casting string to enum, suggest using Enum.from_string() instead ( #19260 )
2023-09-02 14:22:04 +03:00
Delyan Angelov
6a7ac6a23c
tools: add support for v should-compile-all -c examples/
, which will delete all the produced executables at the end
2023-09-02 14:02:39 +03:00
yuyi
a8d2a990c7
cgen: cleanup in struct_init_field() ( #19259 )
2023-09-02 08:10:55 +03:00