tgschultz
5936bdf8a4
Fixed readBits to cast errors to the correct errorset. See #1810 for why this wasn't caught earlier.
2018-11-30 14:50:17 -06:00
tgschultz
b6489ff90a
Increased range of bitwidths tested by "serialize/deserialize Int" tests. Added tests for float inf and NaN.
2018-11-30 14:50:17 -06:00
tgschultz
1ab66f3b55
Added serialization, bitstreams, traits for integer sign, TagPayloadType
2018-11-30 14:50:17 -06:00
Suirad
cf266ff80a
Update tests
2018-11-30 02:15:33 -06:00
Suirad
e8e6ae57d4
Find CI env variables
2018-11-30 02:08:34 -06:00
Suirad
1fa2217c10
Simplify implementation
2018-11-30 02:08:34 -06:00
Suirad
24592d0216
Add more padding to parse buffer
2018-11-30 02:08:34 -06:00
Suirad
0abd5520bd
Platform specific tests
2018-11-30 02:08:34 -06:00
Suirad
5dfca87a65
Update windows imports
2018-11-30 02:08:33 -06:00
Jimmi Holst Christensen
823969a5a4
Implemented new more flexible readLineFrom ( #1801 )
2018-11-29 22:38:39 +01:00
kristopher tate
2b78a90424
std.os.path: remove dependance on std.mem.join;
...
std/os/child_process.zig: windows
test/cli.zig: godbolt;
doc/docgen.zig
2018-11-30 03:52:27 +09:00
kristopher tate
ff1b2889f3
std.mem: split: test for multiple seperator bytes;
2018-11-30 02:17:15 +09:00
kristopher tate
6a1a2898b1
std.mem: remove varargs on join to stop excessive inlined code;
...
join was preducing inline code for every unique call causing code bloat
2018-11-30 00:53:52 +09:00
dbandstra
53766e7a3a
make parseUnsigned handle types <8 bits wide
2018-11-29 09:53:43 -05:00
daurnimator
4ecb3ceafb
Add std.LinkedList.concat
2018-11-29 09:44:24 -05:00
Andrew Kelley
7005ec5efe
Revert "Add math min/max for Float and Value"
...
This reverts commit 078a0a6999a916def004211a4c35a9e1b32ae355.
On closer inspection, I'm not sure these values for float min/max
make sense. Why is it max instead of true_max? Why isn't it positive
and negative infinity?
Let's discuss further before committing to these changes.
2018-11-29 09:33:47 -05:00
Jimmi Holst Christensen
f74320d56d
Implemented getOrPutValue which wraps getOrPut
2018-11-29 09:10:15 +01:00
Wink Saville
078a0a6999
Add math min/max for Float and Value
2018-11-28 23:13:12 -05:00
Josh Wolfe
11e8afb37c
fix child_process piped streams not getting closed
2018-11-28 18:33:55 -05:00
Andrew Kelley
dd2450b1b2
tier 2 support for freebsd
2018-11-27 20:56:43 -05:00
Andrew Kelley
e3bf40742d
Merge branch 'master' into freebsd2
2018-11-27 20:36:44 -05:00
Sahnvour
1fb15be05f
stack traces: fix for windows
2018-11-27 20:34:55 -05:00
daurnimator
2baf0e2ffc
add std.math.IntFittingRange
2018-11-27 10:19:06 -05:00
Andrew Kelley
a5b79017a3
fix regression from d5648d26
...
thanks Wink Saville for the test case.
2018-11-27 00:52:32 -05:00
Andrew Kelley
7818550edc
Merge branch 'Fix-pushToParent-to-work-for-arrays-of-Objects' of https://github.com/winksaville/zig into winksaville-Fix-pushToParent-to-work-for-arrays-of-Objects
2018-11-27 00:45:46 -05:00
kristopher tate
0f7de58b64
std.mem: add new separate method and rework SplitIterator;
2018-11-26 02:02:17 +09:00
daurnimator
f6cd02be65
add std.meta.stringToEnum
2018-11-25 11:48:11 -05:00
Josh Wolfe
9ae5200bd2
factor out and expose biased range limiting function
2018-11-24 22:25:21 -05:00
Josh Wolfe
eed7b48fe3
test lots of types
2018-11-24 22:25:21 -05:00
Josh Wolfe
49b49618d2
add biased random range api
2018-11-24 22:25:21 -05:00
Josh Wolfe
1924ffa67d
better debiased random range implementation
2018-11-24 22:25:21 -05:00
Andrew Kelley
4d747d452f
update zen os std lib for latest zig changes
2018-11-24 16:51:52 -05:00
Andrew Kelley
56a8f2b018
fix @intCast not catching negative numbers to unsigned
2018-11-24 14:36:16 -05:00
Andrew Kelley
b953e322a8
std.os.path.realC: make overflow more clearly impossible
2018-11-21 13:41:10 -05:00
Andrew Kelley
bb3ac177a8
fix incorrect buf len
2018-11-20 12:37:42 -05:00
kristopher tate
a69695a28c
std/mem: writeIntLE: buf.* to buf;
2018-11-20 11:11:07 -05:00
Wink Saville
a05716bd20
Allow json tests to be easily filtered
2018-11-19 18:08:38 -05:00
Andrew Kelley
4dafdc00d5
zig fmt
2018-11-19 17:28:18 -05:00
Andrew Kelley
9493738e54
Merge branch 'freebsd-up' of https://github.com/myfreeweb/zig into freebsd2
2018-11-19 17:24:41 -05:00
Andrew Kelley
89e82281be
fix incorrect --help text
2018-11-19 13:26:35 -05:00
Wink Saville
81d9403dce
Add SegmentedList.shrink
...
I was exploring std.zig.Tokenizer and wanted to compare performance of
arrays, SegmentedList and ArrayList and needed SegmentedList.shrink
to make the comparison "fair".
2018-11-19 10:53:25 -05:00
Marc Tiehuis
4c0163b69b
std/rand: fix ziggurat next_f64 call
2018-11-19 21:56:45 +13:00
Andrew Kelley
921d9c9bcb
add std.meta.intToEnum
2018-11-18 20:18:24 -05:00
Josh Wolfe
3c05ad4012
atomic.Int.set
2018-11-18 19:43:13 -05:00
Wink Saville
8d54cbb834
Fix pushToParent to work for arrays of Objects
...
The reference `*array` is a copy of the value on the stack. Instead use
a reference to top of stack. This is the same technique used above for
`var object` in `Value.String`.
Added two simple tests.
2018-11-18 10:14:37 -08:00
Duncan
e9b47d960b
Fix setsockopt syscall on linux
2018-11-18 10:45:38 -05:00
Andrew Kelley
085d049a08
aarch64 improvements
...
* support C ABI for all return types
* don't include __aeabi_uldivmod & co on aarch64 since
it's 64 bit
2018-11-17 11:21:00 -05:00
Andrew Kelley
704374e512
rename section keyword to linksection
...
add zig fmt support for this syntax
closes #1152
2018-11-17 01:38:35 -05:00
Vallentin
398914eb71
Fixed typos
2018-11-16 14:03:39 -05:00
Matthew O'Connor
fbd6a66ae7
camelCase std.rb.set_child to std.rb.setChild
2018-11-16 13:03:13 -05:00