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

15139 Commits

Author SHA1 Message Date
1113205376 json: fix [raw] for option string (#17899) 2023-04-06 18:26:17 +03:00
a773e44430 rand: update documentation for normal and normal_pair (#17898) 2023-04-06 17:52:09 +03:00
7838ef366a crypto.pem: fix typo in decode.v (#17896)
seperator -> separator
2023-04-06 12:12:45 +03:00
31ffbc7a87 scanner: fix string interpolation string literal with fmt (#17895) 2023-04-06 12:11:15 +03:00
930bdd935b vweb: fix static files copying (#17891) 2023-04-06 03:10:23 +02:00
9957356a84 encoding.base32: change ? to ! (#17892) 2023-04-06 03:09:05 +02:00
b4e8e812fe json: fix encode/decode fixed array (#17887) 2023-04-06 01:15:23 +03:00
dce65c7f46 tools: make v watch webserver.v monitor files used through $tmpl as well 2023-04-06 00:45:25 +03:00
7334f673a0 cgen: fix cast option ptr (#17884) 2023-04-05 22:29:18 +03:00
902d0dc93d checker: allow ~T(0) where T is int (#17886) 2023-04-05 13:05:18 +03:00
39b3a0ca17 encoding: add an encoding.leb128 module with tests (#17880) 2023-04-05 11:53:25 +03:00
b2cf6d0af4 cgen: fix wrong indent generation in anon fn decl (#17879) 2023-04-05 11:22:36 +03:00
d30e1a52e2 checker: disallow unwrapped option/result with in operator (#17875) 2023-04-05 11:20:42 +03:00
fc4c431d83 v: rename sql.v -> orm.v for consistency (#17877) 2023-04-04 22:35:52 +03:00
467a1b4435 fmt: remove redundant parenthesis in the complex infix expr (#17873) 2023-04-04 13:47:48 +03:00
8452644ec3 orm: enforce that queries always return a Result, a query-resulting array can be used as a V array in place. (#17871) 2023-04-04 08:23:06 +03:00
9addede0ea readline: README.md change '?' to '!' (#17868) 2023-04-04 02:51:30 +03:00
4f532c0830 checker: fix fn returning alias of pointer (fix #17861) (#17864) 2023-04-03 19:32:55 +03:00
1dcec62c19 checker: disallow top level decl builtin fn (#17857) 2023-04-03 17:30:05 +03:00
22afdb5cbf cgen: fix gen_str_for_map() (#17862) 2023-04-03 14:42:01 +03:00
a9bb6865fd scanner: fix checking comments not terminated (fix #17842) (#17855) 2023-04-03 14:37:52 +03:00
33ba24e933 scanner: fix nested multiline comments (#17859) 2023-04-03 14:35:27 +03:00
88de0decf6 v.pref: allow passing file names to v scripts, that use -raw-vsh-tmp-prefix, without showing a Too many targets error message. weekly.2023.14 2023-04-03 05:07:12 +03:00
de34e15df7 cgen: fix multi return variable ignore in if guard (#17853) 2023-04-02 15:47:54 +02:00
01caecc284 checker: add check for unwrapped option in array cap (#17851) 2023-04-02 15:47:08 +02:00
b2735bf937 vweb: add controllers (#17840) 2023-04-02 15:46:43 +02:00
c7237b1c58 cgen: fix result of typeof function returns result type (#17849) 2023-04-02 02:25:34 +02:00
51ad565ed6 vweb: implement worker pool (#17298) 2023-04-02 01:24:33 +02:00
1471ba4678 checker: fix missing check for initializer with function returning options (#17820) 2023-04-02 00:03:42 +03:00
6aec8244f0 strings: simplify Builder.drain_builder; add test (#17846) 2023-04-02 00:03:00 +03:00
58dd9ee6a2 tests: make the flaky array_access_optimisation_test.v failures on the macos CI, more easily diagnosable 2023-04-01 17:33:44 +03:00
5b8d6c0a60 cgen: fix match tmp var needing check when working with option on branches (#17837) 2023-04-01 08:19:23 +03:00
e56e4b3e90 tools: use os.symlink(vexe, vsymlink) on Windows too (#17838) 2023-04-01 08:18:24 +03:00
fedf0f7939 native: rune type literals/printing, pointer comparison and some missing branches in functions (#17839) 2023-04-01 01:09:02 +03:00
e1b8617c94 ast, cgen: fix generic closures with different generic types (fix #17829) (#17834) 2023-03-31 18:08:42 +03:00
6ff1c0a0b2 checker: fix generic struct init with update expr (fix #17824) (#17827) 2023-03-31 10:59:52 +03:00
ff0adba8a9 tests: fix file partially not fmt, caused by fixed vfmt bug (#17828) 2023-03-31 10:22:31 +03:00
cd6cc65ece json: fix [omitempty] with string (#17813) 2023-03-30 23:09:47 +03:00
57aa4def62 net.html: do not inject <text> tags for text that contains only newlines and spaces 2023-03-30 23:02:57 +03:00
822acd78cb tools: add test for VDOC_SORT=false ./v doc file.v 2023-03-30 16:53:12 +03:00
b40aa4ffa9 cgen: fix embed struct with sumtype field (#17823) 2023-03-30 15:59:06 +03:00
214f72ba03 tools: support VDOC_SORT=false ./v doc time 2023-03-30 14:35:54 +03:00
b9352ce834 ast, parser, fmt: fix fmt error of generic fntype (#17814) 2023-03-30 13:30:10 +02:00
d0702f3897 checker: fix if cond with alias (fix #17818) (#17821) 2023-03-30 13:29:08 +02:00
4ef6e16e3b bitfield: add [inline] for very commonly used simple methods 2023-03-30 11:53:02 +03:00
ae6fc64fb3 ci: bump the timeout to 181 minutes for the windows-msvc and windows-gcc jobs 2023-03-30 09:01:15 +03:00
580d9cedc7 termios: new termios module (#17792)
* termio: new termio module

move the tcgetattr and tcsetattr functions in a new termio module.
The code needed refactoring as different OS have different fields
size, position and number for the C.termios structure, which
could not be correctly expressed consitently otherwise.

It has the positive side effect to reduce the number of unsafe calls.
New testing code was also added for the readline module as it is
relying of the feature.

* apply 2023 copyright to the new files too
2023-03-30 08:58:52 +03:00
0826102e0a sokol: enable VALIDATE_NON_FATAL 2023-03-30 00:10:49 +02:00
d60ceb45cd gg: make create_image() return !Image 2023-03-29 19:04:41 +02:00
75deb66fd4 json: fix decode option string (#17812) 2023-03-29 18:45:41 +02:00