Commit Graph

13252 Commits (10b9dcb06e19a8b18d94736bc6be6dd8f5e181c2)

Author SHA1 Message Date
Mikey 10b9dcb06e
term.ui: don't print event data in readme example (vlang#14719) (#14720) 2022-06-10 08:14:52 +02:00
Delyan Angelov 726938ca57
checker: add error for `if c >= A && c <= Z {` in non generic functions 2022-06-10 08:14:52 +02:00
Larpon 701526e310
strings: add split_capital (#14716) 2022-06-10 08:14:52 +02:00
David Valdespino Pavon 1fb9253c0e
net.http: cookie parsing fixes (#14420) 2022-06-10 08:14:51 +02:00
Larpon c897cc15ef
ci: update vab install (vlang/vab#176) (#14713) 2022-06-10 08:14:51 +02:00
Delyan Angelov cb5278f77b
v.vcache: improve the output of `-d trace_usecache_n` 2022-06-10 08:14:51 +02:00
Delyan Angelov 65dfe199c9
v.vcache: support `-d trace_usecache_n` too (less verbose tracing for just the initialisation of CacheManager) 2022-06-10 08:14:51 +02:00
Delyan Angelov 5a5f432588
builtin: add flush_stdout and flush_stderr to builtin.js.v, for feature parity with builtin.c.v 2022-06-10 08:14:51 +02:00
yuyi 44b15c0b93
cgen: fix cast to generic interface (#14708) 2022-06-10 08:14:50 +02:00
ChAoS_UnItY 3ceadec7ad
cgen: fix none literal str() function calling (#14704) 2022-06-10 08:14:50 +02:00
yuyi 24ae92cd0d
checker: fix json decoder with generic struct (#14700) 2022-06-10 08:14:50 +02:00
ChAoS_UnItY 8241713fe4
cgen: fix mutable receiver type calling mapping function causes C error (fix #14230) (#14696) 2022-06-10 08:14:50 +02:00
Delyan Angelov 724f989c2d
ast: use `[direct_array_access]` for `attrs []Attr` lookup methods 2022-06-10 08:14:50 +02:00
Delyan Angelov 54152c9555
cgen: fix missing function names in declarations on `[c2v_variadic][c: xyz]fn deh_fprintf(fstream &C.FILE, fmt &i8)` 2022-06-10 08:14:50 +02:00
Alexander Medvednikov 1157ccc073
checker: allow literal args as references in translated code 2022-06-10 08:14:49 +02:00
yuyi cb4fdc3037
cgen: fix generic interface with non-generic method (#14694) 2022-06-10 08:14:49 +02:00
Alexander Medvednikov 972190dcc0
checker: do not require fn main when building an object file 2022-06-10 08:14:49 +02:00
yuyi d28840036c
cgen: fix nested map index check (fix #14683) (#14687) 2022-06-10 08:14:49 +02:00
ChAoS_UnItY c2315b6c86
cgen: fix array init with it (fix #14679) (#14680) 2022-06-10 08:14:49 +02:00
Leo Developer e5f922df1f
compress: add a new module `compress.gzip` too (#14686) 2022-06-10 08:14:49 +02:00
Ikko Ashimine 633f93d500
builtin: fix typo in array.v (#14688) 2022-06-10 08:14:46 +02:00
ChAoS_UnItY 5b16d5fdf4
compress.gzip / deflate: rename gzip module into deflate module (#14682)
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-06-05 11:12:14 +02:00
yuyi 799d2dce4d
checker: check using literal argument as reference parameter (#14674) 2022-06-05 11:12:14 +02:00
ChAoS_UnItY a0f1c1ffef
cgen: fix array type as interface (fix #14677) (#14681) 2022-06-05 11:12:14 +02:00
yuyi a4829f64e8
json: fix json decode with missing map type field (#14678) 2022-06-05 11:12:14 +02:00
Wertzui123 ad923f9a20
thirdparty/sokol: apply speaker/headset bug fix from latest upstream sokol_audio.h (#14676) 2022-06-05 11:12:13 +02:00
Delyan Angelov bed93ad891
examples: simplify the shebang in the v_script.vsh example 2022-06-05 11:12:13 +02:00
Delyan Angelov cf7ae39e62
cgen: fix `for (int i = 0; i < 10; i++, a++) {` (multiple expressions in the inc part) 2022-06-05 11:12:13 +02:00
Delyan Angelov 726d0acfb6
ci: on windows-msvc, skip const_fixed_array_containing_references_to_itself_test.v 2022-06-05 11:12:13 +02:00
Delyan Angelov 5e5b931765
ci: fix macos clang failures with const_fixed_array_containing_references_to_itself_test.v 2022-06-05 11:12:13 +02:00
Delyan Angelov 55386627b2
checker: allow for references to fixed array consts inside their initialisation `const a = [ ... &a[0] ...]!` 2022-06-05 11:12:13 +02:00
Alexander Medvednikov 8bb2ccfdbc
vweb: use http.Cookie 2022-06-05 11:12:13 +02:00
yuyi bff84aab59
ast: cleanup is_lit() (#14672) 2022-06-05 11:12:13 +02:00
Delyan Angelov 54e851f8de
cgen,ci: fix cast_bool_to_int_test.v on windows-tcc 2022-06-05 11:12:13 +02:00
Delyan Angelov 3e1ff72247
cgen: do not initialise externally declared globals (with -cstrict with [c_extern]). 2022-06-05 11:12:13 +02:00
Delyan Angelov b387554840
cgen: simplify int(bool_var) casts; support [c_extern] tag for global declarations 2022-06-05 11:12:13 +02:00
yuyi 3d6d120d4c
cgen: fix autofree_variable() (fix #14576) (#14602) 2022-06-05 11:12:13 +02:00
yuyi 9699afc1fd
cgen: fix if expr with optional method call (#14600) 2022-06-05 11:12:12 +02:00
ChAoS_UnItY 4288c40bee
compress: Add gzip module & refactor compress & compress.zlib module (#14599) 2022-06-05 11:12:12 +02:00
yuyi e755008c29
vrepl: fix error for exitasdfasdf in repl (fix #14593) (#14598) 2022-06-05 11:12:12 +02:00
Delyan Angelov 28af327062
ci: vfmt vlib/v/checker/check_types.v 2022-06-05 11:12:12 +02:00
Delyan Angelov f8ad43be34
checker: speed up check_expected_call_arg, by only calling Table.type_to_str on errors 2022-06-05 11:12:12 +02:00
Hunam 28fb66118b
vlib: add `net.http.mime` (#14516) 2022-06-05 11:12:12 +02:00
Delyan Angelov f674787fac
ast.table: cache the returned values of Table.type_to_str_using_aliases/2
This results in 9% speedup of the checker stage for V itself.
2022-06-05 11:12:12 +02:00
Delyan Angelov ddb8c0ffaa
ci: vfmt vlib/v/parser/parser.v 2022-06-05 11:12:12 +02:00
Delyan Angelov 7ca1d2a93c
tools: add cmd/tools/measure/scanner_speed.v and cmd/tools/measure/parser_speed.v 2022-06-05 11:12:12 +02:00
Delyan Angelov d20eae2d34
strings: update docs for .str() and for .free() 2022-06-05 11:12:12 +02:00
yuyi 47300ae03f
ast: fix IfExpr.str() (#14595) 2022-06-05 11:12:12 +02:00
Alexander Medvednikov 34d30b0ee5
checker, cgen: c2v variadic fixes 2022-06-05 11:12:12 +02:00
yuyi ada04cfb6a
parser: fix optional with multiple statements (#14592) 2022-06-05 11:12:11 +02:00