Commit Graph

10032 Commits (9e179ab11f4c38413b246ff6503d5391288414ce)

Author SHA1 Message Date
Merlin Diavova 3d4dde4af1
pg: resolve PG string datetime values to V time.Time ones (#14336)
Co-authored-by: Merlin Diavova <md@merlindiaova.org>
2022-05-13 10:10:36 +02:00
David 'Epper' Marshall 3fd63264d7
regex: add split (#14329) 2022-05-13 10:10:36 +02:00
Delyan Angelov 0bd8d872d1
time: let time.parse_rfc3339('2015-01-06T15:47:32.080254511Z') succeed (dockerd timestamps, Go's RFC3339Nano).
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-05-08 14:04:00 +02:00
WoodyAtHome e294e18bad
net.smtp: correct date in smtp body (#14326) 2022-05-08 14:04:00 +02:00
Merlin Diavova 9fbab969ab
pg: add type 18 for pg boolean data type (#14335) 2022-05-08 14:03:59 +02:00
StunxFS f27d95560e
checker: check error for `json.decode` (fix #6732) (#14305) 2022-05-08 14:03:59 +02:00
David 'Epper' Marshall 26e3825b90
strings: builder: add clear (#14328) 2022-05-08 14:03:59 +02:00
yuyi 7b6db1b15f
ast, checker, cgen: fix error for generic method with generic fn type argument (fix #14239) (#14333) 2022-05-08 14:03:59 +02:00
yuyi bd21ec396c
cgen: fix error for if cond with optional expr (#14334) 2022-05-08 14:03:59 +02:00
David 'Epper' Marshall 2367b29262
docs: cleanup (#14327) 2022-05-08 14:03:58 +02:00
Delyan Angelov f8d518f5f6
strings: reduce time spent in Builder.writeln (very frequently called) 2022-05-08 14:03:58 +02:00
Delyan Angelov f66836458f
v.util: support -d trace_cached_read_source_file 2022-05-08 14:03:58 +02:00
Delyan Angelov ed9cb69d07
builtin: inline manually isnil calls in array.push_many (very frequently called) 2022-05-08 14:03:58 +02:00
Delyan Angelov 5ff83f5990
docs: fix `teh` typo 2022-05-08 14:03:58 +02:00
Alexander Medvednikov e044ba2400
Revert "checker: remove more unnecessary `void` errors"
This reverts commit 89c1e7f980.
2022-05-08 14:03:57 +02:00
Alexander Medvednikov 6613391ed0
doc: closures work on arm64 too 2022-05-08 14:03:57 +02:00
playX 1e83e10119
checker: c2v fixes (#14332) 2022-05-08 14:03:57 +02:00
Alexander Medvednikov 7226868d94
checker: remove more unnecessary `void` errors 2022-05-08 14:03:57 +02:00
yuyi e208e1617e
scanner: minor simplification in scanner.v (#14331) 2022-05-08 14:03:56 +02:00
Alexander Medvednikov 9d5a0d9f64
cgen: fix c2v consts; enum_decl() 2022-05-08 14:03:56 +02:00
yuyi e3ec27b73f
checker: fix error for generic method on nested struct (#14322) 2022-05-08 14:03:56 +02:00
Hunam 2572c30d13
builtin: add `map.values()` (#14301) 2022-05-08 14:03:56 +02:00
Lathanao 57b490706b
net.http: make parse_form return POST requests with json data as a map with a `json` key, containing the json payload (#14289) 2022-05-08 14:03:56 +02:00
Ekopalypse f3f83e79ca
v.builder: harmonise the default settings of the different Windows compilers (#14314) 2022-05-08 14:03:55 +02:00
Daniel Däschle cf97a8dbbf
builtin,cgen: rename `Option` to `_option` (#14317) 2022-05-08 14:03:55 +02:00
yuyi 11b7dc3a8c
checker: minor cleanup in fn_call() (#14307) 2022-05-08 14:03:55 +02:00
yuyi 055af924d9
checker: check for optional argument in dump() (#14316) 2022-05-08 14:03:55 +02:00
Andréas Livet 4f6b7a384f
docs: add missing function names in the `builtin` example doc comments (#14318) 2022-05-08 14:03:55 +02:00
Daniel Däschle 84086bb7a3
checker: fix returning error on reference results (#14313) 2022-05-08 14:03:54 +02:00
yuyi 798873fe44
parser, checker: fix generic method on nested struct (fix #14089) (#14310) 2022-05-05 10:59:50 +02:00
playX a17d744e8b
checker: c2v: allow passing fixed array as pointer to functions; bool <-> int (#14309) 2022-05-05 10:59:49 +02:00
StunxFS 3f87f8f4b4
.gitignore: minor cleanup (#14279) 2022-05-05 10:59:49 +02:00
Delyan Angelov a3279a1c2b
vfmt: fix stackoverflow on long nested infix expressions 2022-05-05 10:59:49 +02:00
Ned 26a1d332a4
builtin: add libbacktrace as option for generating stack traces (#14277) 2022-05-04 22:34:52 +02:00
yuyi ca2ab70c8b
checker: add comptime_selector() (#14286) 2022-05-04 22:34:52 +02:00
yuyi 6cf707261d
parser: make peek_token_after_var_list() private (#14288) 2022-05-04 22:34:52 +02:00
Ikko Ashimine 499892bab8
builtin: fix typo in array_bare.v (#14299) 2022-05-04 22:34:52 +02:00
Delyan Angelov 665f5de33f
builtin: improve support for large arrays (`[]int{len: 1_000_000_000}` now works), fix an arr.repeat() bug (#14294) 2022-05-04 22:34:52 +02:00
yuyi 41857b0acf
checker: check error for fn call argument mismatch (fix #14280) (#14283)
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-05-04 11:52:32 +02:00
playX 95d94e683e
checker: allow rune->any int and vice versa when translated (#14285) 2022-05-04 11:52:32 +02:00
Alexander Medvednikov b2b82931d1
checker: temporary c2v const fix 2022-05-04 11:52:32 +02:00
yuyi 010ace62e1
checker, cgen: check comptime selector that has no field name (#14282) 2022-05-04 11:52:32 +02:00
Alexander Medvednikov 6c4f1ce196
checker: c2v rune comparison fix 2022-05-04 11:52:32 +02:00
yuyi 4b48bece20
cgen: cleanup in gen_array_contains_methods() (#14274) 2022-05-04 11:52:32 +02:00
playX ee6d819f22
checker: allow fixed array to pointer and vice versa when translated (#14275) 2022-05-04 11:52:32 +02:00
Delyan Angelov 0badffe651
tests: add `// vtest flaky: true` to atomic_test.v 2022-05-04 11:52:32 +02:00
yuyi f9c4cbdb15
checker: check argument mismatch of array.filter/all/any() (#14273) 2022-05-04 11:52:32 +02:00
yuyi df0133c89b
cgen: fix error for fixed array in operate (#14269) 2022-05-04 11:52:31 +02:00
Delyan Angelov eb9063bdb7
builtin: improve musl/Alpine support (define weak backtrace/backtrace_symbols/backtrace_symbols_fd symbols) (#14250) 2022-05-04 11:52:31 +02:00
Delyan Angelov e76e0a97e1
vdoc: fix panic on empty `//` comment on `v doc -f html file.v`; turn `expected code block after empty example` to a warning 2022-05-04 11:52:31 +02:00
Delyan Angelov cd5c9a83c5
builtin: add missing panic_result_not_set/1 callback function. 2022-05-04 11:52:31 +02:00
spaceface bf10b27a33
checker: refactor comptime_if_branch (#14259) 2022-05-04 11:52:31 +02:00
yuyi 633e612d62
checker: fix a bug in generics array init (#14258) 2022-05-04 11:52:31 +02:00
yuyi 93d49176c7
parser: minor cleanup in interface_decl() (#14257) 2022-05-04 11:52:31 +02:00
yuyi 374b6927bc
checker: fix generic fn infering fn type argument (fix #14243) (#14256) 2022-05-04 11:52:31 +02:00
yuyi 21555fb03a
parser: fix inline array's element access (#14253) 2022-05-04 11:52:30 +02:00
playX 6468bcd0a6
cgen: fix const decl gen when translated (#14255) 2022-05-04 11:52:30 +02:00
Isaiah 9a1d73f622
builder: allow `-compress` to work on windows too, when `upx` is installed (#14252)
Allow `-compress` flag on Windows if upx is installed. If upx not installed, same behavior as on linux/mac
2022-05-04 11:52:30 +02:00
yuyi 8d1cc6a817
cgen: fix fixed array init with `it` (#14251) 2022-05-04 11:52:30 +02:00
spaceface bf86fff9cc
checker, gen: add support for a [minify] struct attribute (#14247) 2022-05-04 11:52:30 +02:00
David 'Epper' Marshall bf954cc9bc
time: relative update (#14240) 2022-05-01 19:25:52 +02:00
Daniel Däschle d75469965e
cgen: fix unsafe return error (#14233) 2022-05-01 19:25:52 +02:00
playX 924e2e65fe
checker: allow pointer index for translated code (#14231) 2022-05-01 19:25:52 +02:00
Daniel Däschle 91a9137b36
all: rename result to _result (#14232)
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-04-30 16:26:28 +02:00
Delyan Angelov 76c67952e6
tests: support for marking _test.v files with `// vtest flaky: true`, to reduce false positives from the CI 2022-04-30 16:26:28 +02:00
David 'Epper' Marshall 1ad84bb2d1
docs: document more `builtin` functions/methods (#14229) 2022-04-30 16:26:28 +02:00
spaceface 64625b8bff
cgen: rewrite the closure implementation (#14223) 2022-04-30 16:26:28 +02:00
Alexander Medvednikov 547265dd44
checker: allow voidptr arithmetic in translated code 2022-04-30 16:26:27 +02:00
yuyi f4586b1577
parser: make sure interface field names use uppercase letters (#14228) 2022-04-30 16:26:27 +02:00
Daniel Däschle 85cb0a8c85
all: basic implementation of result type (#14140) 2022-04-30 16:26:27 +02:00
StunxFS 3e4834aebf
checker: check for reserved type names in `for in` (fix #14072) (#14212) 2022-04-30 16:26:27 +02:00
David 'Epper' Marshall 25df4fa143
time: add custom formatter (#14202) 2022-04-29 21:38:24 +02:00
yuyi 2109a6a85c
parser: check interface methods name (fix #14217) (#14218) 2022-04-29 21:38:24 +02:00
yuyi d1a0ac26fd
checker: check struct field name using uppercase letters (#14220) 2022-04-29 21:38:24 +02:00
Wertzui123 735817374e
builtin: ignore C++ 0xE06D7363 exception errors on windows (#14225) 2022-04-29 21:38:24 +02:00
StunxFS f8ed4ab9d0
builtin: add `string.len_utf8()` method (#14208) 2022-04-29 21:38:24 +02:00
StunxFS 3c8b67521b
cgen: fix use of C reserved words inside `defer` statement (fix #14101) (#14211) 2022-04-29 21:38:24 +02:00
Alexander Medvednikov 23117e6802
builtin: define atoi & ftell 2022-04-29 21:38:24 +02:00
spaceface 893e2ff6cb
ast: add a type_size() method (#14213) 2022-04-29 21:38:23 +02:00
StunxFS da71bced46
transformer: minor optimization for `'string literal'.len` (#14207) 2022-04-29 21:38:23 +02:00
playX 59ddaa9ede
checker: disable op overloading on structures for translated code (#14209) 2022-04-29 21:38:23 +02:00
yuyi 134b594e4d
ast, parser: fix complex map init (#14206) 2022-04-29 21:38:23 +02:00
yuyi c2ecfb32d9
cgen: fix go anon fn call with ref argument (fix #14192) (#14197) 2022-04-29 21:38:23 +02:00
yuyi 03d2258b6d
ast: fix error for complex map operating (#14204) 2022-04-29 21:38:23 +02:00
Atom 48749b0b24
arrays: rephrase doc string (#14205) 2022-04-29 21:38:23 +02:00
Delyan Angelov 47dccd56a2
eval: small cleanup in the handling of `$if platform {` 2022-04-29 21:38:23 +02:00
Delyan Angelov 705e260180
eval: make the interpreter backtrace more efficient and informative. 2022-04-29 21:38:23 +02:00
Delyan Angelov 31bee98607
eval: add support for C.read/3, C.malloc/1, `$if openbsd {` 2022-04-29 21:38:23 +02:00
Delyan Angelov 444d8c7a81
pref: add support for `-thread-stack-size 4194304` (default set to 8MB) (#14168) 2022-04-29 21:38:23 +02:00
yuyi 47c18c4570
checker: fix error for array of sumtype appending literal value (#14200) 2022-04-29 21:38:22 +02:00
yuyi bf75a873b5
checker: check error in for_c_stmt with optional call (#14190) 2022-04-29 21:38:22 +02:00
tzSharing f9bd107a84
gg: improve some loops in draw_rounded_rect* methods (#14195) 2022-04-29 21:38:22 +02:00
Delyan Angelov 624f022ddc
ci: fix tcc compilation of atomic_test.v 2022-04-29 21:38:22 +02:00
Alexander Medvednikov b7f2ef78b2
all: atomic int fixes
ci/woodpecker/push/vc Pipeline was successful Details
ci/woodpecker/push/docker Pipeline was successful Details
ci/woodpecker/push/arch Pipeline was successful Details
2022-04-27 21:07:11 +02:00
yuyi 2d9fa62941
math: fix error for math.abs(0.0)/math.abs(0) (related #14165) (#14191) 2022-04-27 21:07:11 +02:00
yuyi 8b085a32a5
cgen: fix error for generic sumtype casting to typenode (#14188) 2022-04-27 21:07:10 +02:00
tzSharing 604f4f5e44
gg: fix gg.draw_rounded_rect_empty() graphical abnormalities and some optimizations (#14186) 2022-04-27 21:07:10 +02:00
playX c37bb48e9c
checker: allow + - * on pointers for translated code (#14183) 2022-04-27 21:07:10 +02:00
R cqls 609464bc9c
gg: some stuff required to have svg and png screenshots working on v ui (#14180) 2022-04-27 21:07:10 +02:00
yuyi 8a75d68421
cgen: split up array_init() (#14178) 2022-04-27 21:07:10 +02:00