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

162 Commits

Author SHA1 Message Date
a3b050aced vrepl: add support for Home and End keys (#16116) 2022-10-20 20:07:57 +03:00
71bff213ef builtin: make the C. WIN32 API declarations more precise, to catch errors earlier (#16090) 2022-10-17 20:23:33 +03:00
f0871b87a4 term: fix errors in input_windows.c.v (#15966) 2022-10-05 13:24:22 +03:00
b584e1df98 checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
41dbd12bc4 tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +03:00
9099594a49 all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
a68d03ac59 checker: allow x := unsafe { nil } 2022-07-21 20:56:24 +03:00
90197fd58a term.ui: make C. unions and structs public (solve conflicts with term on windows) 2022-07-04 10:50:19 +03:00
c160ba2a8d checker: stricter mutable reference check (fix #14803) (#14805) 2022-06-21 13:23:21 +03:00
de136f6baf checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
5ac9b5c9f1 term.ui: don't print event data in readme example (vlang#14719) (#14720) 2022-06-08 09:36:22 +03:00
0f3b2c2ae7 builtin: use C.fwrite (buffered) for _write_buf_to_fd (#14558) 2022-05-30 19:15:05 +03:00
17bba712bd checker: ban unsafe pointer/fn comparison (#14462) 2022-05-20 18:30:16 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
4400efeb9f checker: Revert part of small_unsigned == signed (#13967) (#14075)
`gcc -W` doesn't error for e.g. u16 == i32, only for u32 == i16.
Any u16 value can fit in an i32.
2022-04-18 21:30:09 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
014c3c97f0 all: byte => u8 2022-04-15 14:45:52 +03:00
c780de6282 checker: disallow 'small_unsigned == signed' (#13967) 2022-04-12 19:37:30 +03:00
60e718e7c6 test: save removing the nonexistent binary output for v fmt and v vet tests 2022-04-09 13:04:52 +03:00
0bd8fbc9a8 term, term.ui: fix a panic on !=linux unixes when running examples/term.ui/ 2022-04-04 19:25:25 +03:00
04cc037955 ci: fix -cstrict compilation of term.ui tests 2022-03-29 18:03:05 +03:00
4f551d76c0 term.ui: fix conflicting C struct declarations when compiling programs, importing term.ui before term, on windows 2022-03-29 09:31:24 +03:00
f74b65b63f docs: change term.input to term.ui in vlib/term/README.md 2022-03-06 15:50:22 +02:00
74d5106e8f cli: print cli errors in red where possible (#13647) 2022-03-04 12:28:11 +02:00
28ddd8440a term.ui: add support for multi byte/UTF-8 events (#13274) 2022-01-25 14:46:48 +02:00
32f2f0dfa1 term.ui: fix shift notices, remove warning for main example 2022-01-24 20:11:36 +02:00
a60b381d5e docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
2733319879 term: fix a leak in _test.v files in the default test runner without -autofree 2021-11-17 20:39:08 +02:00
814b4ebb4c term: get_terminal_size() for js_node, term.clear() for all js backends (#12189) 2021-10-15 10:10:40 +03:00
c29a5cdedb term: fix readme typo (#12180) 2021-10-15 06:08:31 +03:00
108a01d65f fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
c6ff687e8a term: do not put the unused c_line field in C.termios in declarations_linux.c.v (breaks BSD build) 2021-09-06 19:15:47 +03:00
166dd61e90 Revert "Revert "term: obtain the cursor position via termios.h (#11372)""
This reverts commit 0376cbf6bd.
2021-09-06 19:04:14 +03:00
0376cbf6bd Revert "term: obtain the cursor position via termios.h (#11372)"
This reverts commit af28d09630.
2021-09-06 18:21:55 +03:00
af28d09630 term: obtain the cursor position via termios.h (#11372) 2021-09-06 17:24:39 +03:00
289e77d51b term: group related functions (#11371) 2021-09-04 19:49:47 +03:00
46ede3fb98 v check-md: reduce false positives for too long lines in various cases (real problems are easier to spot now) 2021-08-16 10:12:29 +03:00
34d39ccb64 builtin: fix leak in rune.str(), fix leaks in most assert x == y statements in tests (#11091) 2021-08-13 18:37:34 +03:00
18be9e52be log: avoid using string__plus memory leak (#11128) 2021-08-11 09:26:02 +03:00
6134c4870b v.util: extract v.util.version, use it to speed up building v repl, v up and v doctor 2021-07-27 12:59:56 +03:00
027be2ecd4 tests: show a list of all failed commands in the summary too 2021-07-15 11:53:14 +03:00
d56ae2d508 v.fmt: keep comments after struct embeds 2021-06-18 18:42:05 +03:00
60c880a0cc vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
00b3092a92 term: use textscanner.new in term.strip_ansi/1 2021-05-20 11:24:44 +03:00
c8a9052a5f term: add term.strip_ansi/1 (based on ansi2txt) and term.header_left/1 2021-05-20 10:15:37 +03:00
453fb1b08b term.ui: use os.signal_opt instead of os.signal 2021-05-18 11:59:57 +03:00
8a380f4699 tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00