Ned
437fa02f27
x.json2: add customized JSON output capability via Encoder ( #13654 )
2022-03-04 14:39:23 +03:00
Tim Basel
9d0a5942ac
builtin: change IError msg
and code
to methods + fix vlib, add a deprecation notice for the old usages ( #13041 )
2022-02-11 15:52:33 +02:00
Benjamin Stigsen
ceb05b163a
strings: rename Builder.write_b() to Builder.write_byte(), add deprecation ( #13313 )
2022-01-28 20:34:44 +02:00
playX
c07ce3ff15
cgen,json2: improve -nofloat support ( #13117 )
2022-01-10 12:42:41 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules ( #13034 )
2022-01-05 18:06:08 +02:00
Delyan Angelov
59357e873d
math: move the math.mathutil
generic min
/max
/abs
fns to math
( #13042 )
2022-01-05 18:02:20 +02:00
Alexander Medvednikov
59ed4be49a
all: update copyright year
2022-01-04 12:21:12 +03:00
Larpon
4d4398fa8a
sokol: type alias all gfx
structs ( #13014 )
2022-01-02 20:36:01 +02:00
Larpon
1d41d9daf9
json2: improve readability, add tests utilizing fix #12667 ( #12836 )
2021-12-15 12:20:05 +02:00
Delyan Angelov
6d97b0a407
checker: improve checking of a << b, when a and b are numbers ( #12589 )
2021-11-29 03:48:49 +03:00
Delyan Angelov
1913de0187
x.json2: fix compilation with -autofree
2021-11-28 18:32:04 +02:00
Delyan Angelov
bd9564e38b
ci: fix failing ttf_test.v after making char
unavailable for variable names
2021-11-22 18:28:25 +02:00
Don Park
ae54cd78f5
json2: encode ascii chars < 0x20 in json ( #12494 )
2021-11-18 08:34:00 +03:00
Enzo
c8471528ce
fmt: format long sum-types with a line for each type ( #11461 )
2021-09-10 20:56:55 +03:00
Daniel Däschle
be0c54caf9
checker: require or block for sumtype map ( #11089 )
2021-09-10 16:07:39 +03:00
Enzo
e3b65092d6
parser: deprecate size_t
( #11443 )
2021-09-08 13:09:32 +03:00
yuyi
8be2be8311
all: change 'if !(a in b)' to 'if a !in b' ( #11330 )
2021-08-29 11:55:18 +03:00
Daniel Däschle
800c0e5092
vlib: remove deprecated map{} usages as well as deprecated functions ( #11035 )
2021-08-04 12:44:41 +03:00
shadow
66bc8bc0cb
vlib: remove many deprecated functions ( #10972 )
2021-07-28 09:22:19 +03:00
Daniel Däschle
ad3835b598
parser: deprecate short struct init ( #10842 )
2021-07-20 11:17:08 +03:00
Tomas Hellström
ec973f5c6e
x.websocket: move to net.websocket module ( #10648 )
2021-07-03 02:56:00 +03:00
Flinner
1486258591
strconv: fix atoi
returning 0 on large strings ( #10635 )
2021-07-02 10:39:57 +03:00
Delyan Angelov
58df35b453
x.json2: fix json_string
for utf8 codepoints, add regression test
2021-06-29 11:40:52 +03:00
Ned Palacios
003f60fc1a
x.json2: fix nest level check ( #10584 )
2021-06-28 14:05:27 +03:00
R cqls
cdb31119f3
x.ttf: apply ctx.scale for x and y in draw_text_bmp ( #10598 )
2021-06-28 13:32:17 +03:00
Delyan Angelov
96adfc9d5b
x.ttf: vfmt the examples in the README.md
2021-06-24 11:15:13 +03:00
Delyan Angelov
f18265e6a8
gg: remove obsolete usages of use_ortho: true
2021-06-24 11:15:12 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan()
where possible ( #10465 )
2021-06-15 14:47:11 +03:00
Emily Hudson
535dcac8fa
net: ipv6 support, merge unix+ip;[pack:x] attribute ( #9904 )
2021-06-13 23:53:38 +03:00
Delyan Angelov
eac1e25c5d
strings: simplify Builder ( #10263 )
2021-05-31 14:21:06 +03:00
Delyan Angelov
8a380f4699
tools: make v test-cleancode
test everything by default ( #10050 )
2021-05-08 13:32:29 +03:00
Uwe Krüger
d26ac5692e
all: various fixes for [heap]/auto-heap handling ( #10033 )
2021-05-07 15:58:48 +03:00
Lukas Neubert
dee733aae4
fmt: reset const field align after multi line exprs ( #9916 )
2021-04-29 02:17:37 +03:00
Alexander Medvednikov
0567cbe431
examples: fix compilation with -prod
2021-04-23 14:48:07 +03:00
zakuro
7443179cc8
checker: make use of private enum from outside module an error. ( #9821 )
2021-04-22 07:07:56 +03:00
spaceface
73352583e7
ci: fix all -cstrict
warnings with gcc and clang ( #9792 )
2021-04-19 15:38:48 +03:00
Delyan Angelov
85e9cf1bd3
tests: add vlib/x/json2 to vtest-cleancode.v
2021-04-11 11:34:08 +03:00
Delyan Angelov
c939e4df97
x.json2: fix direct sum type init
notices
2021-04-11 11:28:52 +03:00
Lukas Neubert
46e7e27ba3
v vet: give an error for trailing whitespace ( #9574 )
2021-04-09 13:22:14 +03:00
Miccah
f809d4052f
net.http: change header behavior to keep custom header case ( #9602 )
2021-04-08 02:12:46 +02:00
Larpon
8caabf0e9e
sokol: update to floooh/sokol@c602d83 ( #9607 )
2021-04-07 20:39:23 +02:00
Delyan Angelov
4822274d29
x.websocket: use &byte instead of byteptr
2021-04-05 19:53:48 +03:00
Atakan Yenel
28018c6fc9
x.json2: add custom errors ( #9523 )
2021-03-30 15:29:17 +03:00
Anton Zavodchikov
9b9ef5fe1b
x.websocket: add header to client ( #9517 )
2021-03-30 11:39:07 +02:00
Ned Palacios
c5302bfcf5
x.json2: skip whitespace before scanning ( #9508 )
2021-03-30 09:40:20 +02:00
pancake
1bf7d968f9
x.json2: add u64 ( #9457 )
2021-03-25 16:53:39 +01:00
Delyan Angelov
c76c69ec35
all: simplify return if ...
constructs to make more code compatible with -autofree
2021-03-22 16:45:29 +02:00
zakuro
c8416f9a54
all: deprecate write_str and replace it with write_string ( #9369 )
2021-03-20 17:25:51 +01:00
Delyan Angelov
04095f4088
ci: fix failing v -W build-tools
and v -W build-examples
; run vfmt.
2021-03-19 09:49:26 +02:00
Lukas Neubert
a67d49050c
math: add a pure V math.mathutil
, with generic min
, max
and abs
functions ( #9176 ), and use it consistently
2021-03-12 11:28:04 +02:00
Lukas Neubert
fdcfe397d4
fmt: write empty or blocks the same as empty fn bodies, empty structs, etc ( #9136 )
2021-03-06 21:04:51 +02:00
Ned Palacios
ee879f3e41
x.json2: proper string encoding + minor fixes ( #9026 )
2021-03-01 10:22:36 +01:00
spaceface
b712af56fd
all: bring back panic(err.msg)
-> panic(err)
( #9022 )
2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax ( #8950 )
2021-02-28 23:20:21 +03:00
spaceface
b9a381f101
all: migrate to the new Option (p. 1) ( #8924 )
2021-02-28 22:24:29 +03:00
Alexander Medvednikov
3a2d696fac
time: time.wait() => time.sleep()
2021-02-27 20:41:06 +03:00
zakuro
d0a64f2da7
net/openssl/websocket: implement io.Writer ( #8980 )
2021-02-27 10:29:18 +02:00
Ned Palacios
8dff168e01
x.json2: create custom scanner for scanning JSON ( #8716 )
2021-02-26 08:36:02 +02:00
Miccah
d81b6e7805
encoding.base64: change base64 function signatures to use []byte
( #8970 )
2021-02-26 08:22:12 +02:00
Delyan Angelov
1c0eefae38
parser/scanner: replace p.peek_tok2/3 with p.peek_token(2/3) ( #8946 )
2021-02-24 21:03:53 +03:00
zakuro
f54c1a5cc2
all: add strings.Builder.write_string and use write_string instead of write ( #8892 )
2021-02-22 13:18:11 +02:00
zakuro
ac4791045f
time: consolidate the different sleep functions into time.wait(Duration) ( #8853 )
2021-02-21 17:05:03 +02:00
Delyan Angelov
b1209aac1b
ci: fix building of vlib/x/websocket/websocket_test.v
2021-02-21 17:03:25 +02:00
Delyan Angelov
f2ce72c2bf
ci: split the websockets tests into their own CI .yml file
2021-02-21 16:35:27 +02:00
Delyan Angelov
746dfe6317
ci: make vweb and websocket tests more robust to transient errors
2021-02-20 20:24:21 +02:00
Nick Treleaven
4ccf991f61
checker: warn when casting a fixed array (use &arr[0]
instead) ( #8787 )
2021-02-17 20:45:11 +01:00
Lukas Neubert
e4a67dea37
json2: wrap Builder.free() calls inside unsafe ( #8790 )
2021-02-17 02:19:26 +02:00
Nick Treleaven
4a0367a63c
vlib: add [unsafe] tag to more functions: tos, string_from_wide, strings.Builder: write_bytes, free ( #8766 )
2021-02-15 17:15:52 +02:00
Nick Treleaven
ea803113c3
checker: check unsafe
V function calls ( #8752 )
2021-02-14 19:31:42 +01:00
Lukas Neubert
58b3a30b47
docs/readmes: format almost all remaining code blocks ( #8590 )
2021-02-05 19:50:28 +02:00
Delyan Angelov
978359a6fc
tests: fix some warnings in preparation for -W test-self
2021-01-31 11:05:17 +02:00
Lukas Neubert
75d85403a6
fmt: better ternary concat wrapping ( #8379 )
2021-01-28 11:23:48 +01:00
Delyan Angelov
2d86c50d49
ci: fix autobahn integration tests job
2021-01-26 20:12:12 +02:00
Delyan Angelov
e5a84719ca
all: require calling optfn() ?
/ optfn() or {...}
for fn optfn() ? {}
2021-01-26 16:43:17 +02:00
Delyan Angelov
728344ff65
ci: fix v test-cleancode
2021-01-25 12:55:01 +02:00
Tomas Hellström
39e5f6e9df
x.websocket: websocket server fix and bring back server autobahn ( #8291 )
2021-01-23 16:56:38 +01:00
Alexander Medvednikov
d991712b3c
gg: native rendering mode on macOS
2021-01-23 10:25:43 +01:00
Lukas Neubert
8b61891348
fmt: smarter if condition wrapping ( #8201 )
2021-01-23 10:33:22 +02:00
Tomas Hellström
970c03987d
ci: temporarily comment the server tests for autobahn ( #8272 )
2021-01-22 22:30:53 +02:00
Delyan Angelov
d92f5c55ba
net: use mut and refs as receivers consistently ( #8205 )
2021-01-20 11:11:01 +01:00
Tomas Hellström
da93666cd8
x.websocket: bring back shift operators ( #8197 )
2021-01-19 10:42:59 +01:00
Tomas Hellström
874885c87d
x.websocket: fix weird shift operator bug in clang -prod flag ( #8192 )
2021-01-19 05:49:37 +01:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 ( #8029 )
2021-01-18 13:20:06 +01:00
penguindark
ee9f9c9d81
x.ttf: add README, some improvements ( #8157 )
2021-01-17 03:11:47 +01:00
Daniel Däschle
53941c4a0a
fmt: fix if cond break readability ( #8132 )
2021-01-16 02:12:17 +01:00
penguindark
1d1fda9522
x.ttf: fix for the MSVC get_string
pointer issue ( #8139 )
...
* fix tab and spaces in indentation
* fix for glyph not found error
* fix for get_String in ttf.v pointer problems with MSVC
* avoid second return in get_string
* move from u32 to u64 to byteptr in 64 bit systems
2021-01-15 20:40:56 +02:00
Daniel Däschle
3289dff7ff
checker: require explicit return none ( #8060 )
2021-01-12 11:43:55 +01:00
zakuro
33694665f0
fmt: align each contiguous field of struct. not the whole. ( #7981 )
2021-01-12 04:38:43 +01:00
penguindark
55e3e50b9b
ttf: improvement on not found glyphs ( #8050 )
2021-01-12 00:49:58 +01:00
Tomas Hellström
cc17f145c5
websocket: make compile with autofree ( #8023 )
2021-01-11 09:03:10 +01:00
Delyan Angelov
692a718428
examples: use os.resource_abs_path, so v run examples/ttf_font/example_ttf.v
works
2021-01-10 20:36:50 +02:00
penguindark
c067cc0357
vlib: add a TTF font loader and render in x.ttf
( #7995 )
2021-01-10 20:14:41 +02:00
Uwe Krüger
cbe7740d97
fmt: do not generate import
statements for auto imports ( #7966 )
2021-01-08 17:42:40 +01:00
Swastik Baranwal
9291fb5e0c
checker: disallow comparison between enum and int ( #7886 )
2021-01-08 17:41:52 +01:00
Tomas Hellström
f9a873736e
x.websocket: server broadcast plus examples ( #7922 )
2021-01-06 15:43:54 +01:00
zakuro
dd516858d4
fmt: align struct field comments ( #7632 )
2021-01-03 21:10:25 +01:00
Swastik Baranwal
a9ab79d301
checker: ban any_int/any_float outside buitlin ( #7675 )
2020-12-31 12:41:30 +01:00
joe-conigliaro
02965e753e
all: re-implement variadics using arrays & implement array decomposition to varg ( #7689 )
2020-12-29 16:14:08 +01:00
Lukas Neubert
ef6011b94c
fmt: keep comments after struct decl default value ( #7648 )
2020-12-28 15:38:21 +02:00
Delyan Angelov
b7a5dbf7b4
test-cleancode: add the rest of vlib/x/websocket/
2020-12-28 07:25:46 +02:00