1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

69 Commits

Author SHA1 Message Date
26d051475a cgen: ensure closures are kept alive when using the GC (#14736) 2022-06-10 19:48:50 +03:00
0f3b2c2ae7 builtin: use C.fwrite (buffered) for _write_buf_to_fd (#14558) 2022-05-30 19:15:05 +03:00
Ned
db4b49a5ca builtin: print libbacktrace output to stderr, on panics/segfault crash (#14434) 2022-05-17 14:56:34 +03:00
Ned
76a7354506 builtin: add libbacktrace as option for generating stack traces (#14277) 2022-05-04 21:17:05 +03:00
1a4d9017e2 builtin: improve support for large arrays ([]int{len: 1_000_000_000} now works), fix an arr.repeat() bug (#14294) 2022-05-04 18:42:06 +03:00
ab1c265679 builtin: add missing panic_result_not_set/1 callback function. 2022-05-02 22:40:26 +03:00
a2338dbb7c docs: document more builtin functions/methods (#14229) 2022-04-30 12:31:23 +03:00
a1372e284c builtin: update alloc fn definitions 2022-04-15 15:16:10 +03:00
014c3c97f0 all: byte => u8 2022-04-15 14:45:52 +03:00
ba7b329c73 builtin: more byte=>u8 2022-04-15 13:55:56 +03:00
e6ff1508d2 all: make u8 the primary type, byte the alias 2022-04-15 13:43:03 +03:00
8dc4b1d9a3 builtin: use malloc_noscan more (for map metas and in []byte.hex()) 2022-03-11 11:26:22 +02:00
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
ec91de3504 builtin: use dlmalloc for -freestanding (#13054) 2022-01-06 14:10:37 +02:00
6ff953d936 preludes,builder,cgen: add support for VTEST_RUNNER=tap and -test-runner tap (#12523) 2021-12-16 15:59:46 +02:00
b4c52b72cf builtin: change the -d debug_malloc byte pattern to M so it is easier to spot with a plain text terminal. 2021-11-28 19:23:11 +02:00
6ac109a7c3 builtin: add a [has_globals] tag for all the .v files, with global declarations in them 2021-11-17 10:29:06 +02:00
579d5ae649 builtin,checker: add array.flags. Allow changing it in unsafe {} blocks 2021-10-31 11:04:56 +02:00
a8c2c419cd builtin: improve malloc panic messages (#12054) 2021-10-03 20:27:46 +03:00
47884dfd1f builtin: move C. calls to .c.v files (#11164) 2021-08-12 21:46:38 +03:00
6438099644 builtin: fix building vinix (missing C.strerror) 2021-07-25 23:31:22 +03:00
55c5b9ce7b cgen: panic with error message when go command fails (#10943) 2021-07-25 01:13:34 +03:00
aebb028349 gen: fix C keyword escape to _v_ instead of just v_ (#10876) 2021-07-21 11:46:04 +03:00
972542d6ee checker: [noreturn] part 2 (cleanup) (#10667) 2021-07-05 05:05:37 +03:00
6aecda3be8 all: support [noreturn] fn abc() { for{} }, mark panic/1 and exit/1with it too. (#10654) 2021-07-04 20:24:19 +03:00
9651a9796b builtin: fix termux prints (#10595) 2021-06-28 08:27:12 +03:00
dd254a6652 builtin: streamline print/eprint/println/eprintln, do not println in 2 steps when possible 2021-06-23 12:22:05 +03:00
652e7ba973 gc: extend optimized mode to strings (#10431) 2021-06-12 11:27:08 +03:00
e02d1d4a4b Revert "gc: extend optimized mode to strings (#10409)"
This reverts commit 3f654a69e3.
2021-06-12 01:52:06 +03:00
3f654a69e3 gc: extend optimized mode to strings (#10409) 2021-06-12 00:03:05 +03:00
0e2c86310a GC-boehm: extend optimized mode to all array methods (#10406) 2021-06-10 21:26:17 +03:00
95cf120e2e ci: fix linux-cross job; os.real_path cleanup 2021-06-08 18:34:15 +03:00
40ac7d4892 builtin: support -d trace_vcalloc, -d trace_realloc 2021-06-08 17:24:07 +03:00
ba86d619fa builtin: fix print/println on termux (#10253) 2021-05-30 08:10:32 +03:00
a27e7f7675 builtin: remove commented code; improve print_backtrace with tcc 2021-05-23 12:37:40 +03:00
2086e6f1c1 builtin, cgen: implement chunked allocation of 16MB blocks with -prealloc (#10130) 2021-05-19 10:35:56 +03:00
e05da04b4c builtin: fix termux prints (#9921) 2021-04-29 09:49:26 +03:00
1fbf75f2e8 builtin: fix termux println (#9829) 2021-04-28 09:11:50 +03:00
c7a6d28e13 all: improve unused variable warning (fix x = 1, x += 1 etc) 2021-04-23 13:33:48 +03:00
258be508f4 builtin,os: fix unused return C warnings for real (#9814) 2021-04-20 17:28:58 +03:00
d4f31412b7 v: deprecate @VROOT in favour of @VMODROOT (#9795) 2021-04-19 19:01:47 +03:00
22351a6fb7 builtin: remove unused return C warnings (#9797) 2021-04-19 14:14:27 +03:00
0a1d0e062d freestanding: small fixes (#9760) 2021-04-17 02:38:41 +03:00
cb69c4c91a builtin: add a 'v hash:' line to V panics 2021-04-15 11:43:38 +03:00
14434cc86a all: bare metal support (fix -freestanding) (#9624) 2021-04-14 07:50:50 +02:00
10bf974cda all: gc: provide optimized mode (#9716) 2021-04-14 00:40:26 +02:00
38c517c1a2 builtin: use NSLog on iOS for print (#9665) 2021-04-10 17:40:43 +03:00
1899845582 ci: fix build-vc job 2021-04-05 22:18:18 +03:00
824790a2bd builtin: simplify println(), use C.write consistently on unix as on windows so that 0 bytes are output also 2021-04-04 19:14:21 +03:00
57e6138a61 all: remove byteptr and charptr; replace them with &byte and &char 2021-04-04 17:43:32 +03:00