ducdetronquito
0aef1faa82
std.fifo.LinearFifo - Expose reader and writer type.
2021-02-22 00:22:46 +02:00
Ryan Greenblatt
36178caf3e
Added support for passing write file args as build options ( #7909 )
...
* Added support for passing write file args as build options
* Fix missing fmtEscapes and unused format
* Actually fixed now, must be formatted
* remove addPathBuildOption
2021-02-21 12:26:46 +02:00
Veikka Tuominen
ef6aa3d027
Merge pull request #7960 from Luukdegram/wasm-extern
...
stage2: Add support for extern functions for the wasm backend
2021-02-21 12:22:01 +02:00
LemonBoy
057bf1afc9
std: Add more error checking in hexToBytes
...
Prevent the function from turning into an endless loop that may or may
not perform OOB accesses.
2021-02-21 12:19:03 +02:00
Asherah Connor
4272f07f66
std.os.uefi.Guid fixes ( #8032 )
...
* uefi: Guid.format compiles again
Also use "writer" nomenclature in argument name.
* uefi: add Guid.eql
2021-02-21 12:17:59 +02:00
Bill Nagel
cc5e5cca83
fix race condition in linuxWaitFd
2021-02-21 12:16:48 +02:00
jacob gw
1bd434fd18
std.Progress: improve support for "dumb" terminals
2021-02-21 12:12:17 +02:00
Tau
840331ee48
Rebase link(at) properly
2021-02-21 12:04:40 +02:00
Benjamin Graf
c70832bc41
replace ArrayList.shrinkAndFree by ArrayList.shrinkRetainingCapacity
2021-02-21 11:56:14 +02:00
Jonathan Marler
a448210fcf
remove z/Z format specifier deprecations
...
The z/Z format specifiers were merged last October (4 months ago). They were then deprecated in January (just over a month ago). This PR removes them altogether.
2021-02-21 11:55:21 +02:00
rgreenblatt
f9be7471bc
fix readable slice bug (and add tests)
2021-02-21 11:48:38 +02:00
data-man
340825a7af
Add epoll_pwait2 Linux syscall
2021-02-21 11:47:13 +02:00
rgreenblatt
a5dcd07382
fix unspecified fmt
2021-02-21 01:31:46 +02:00
Andrew Kelley
68e7726478
std.fs.net.Stream: add writev and writevAll
...
I noticed that the write function does not properly use non-blocking
I/O. This file needs to be reworked for evented I/O to properly take
advantage of non-blocking writes to network sockets.
2021-02-16 11:01:17 -07:00
Tadeo Kondrak
1c15091bc8
stage1: switch from inline fn to callconv(.Inline)
2021-02-10 20:06:13 -07:00
Tadeo Kondrak
5dfe0e7e8f
Convert inline fn to callconv(.Inline) everywhere
2021-02-10 20:06:12 -07:00
Tadeo Kondrak
9c797fe3ac
std.zig: reformat inline fn to callconv(.Inline)
2021-02-10 20:06:11 -07:00
Jonathan Marler
61bcac108c
Add more mingw def files
...
I've added more of the ".def" files from mingw. The list is based on all the libraries referenced by the win32metadata project. (see https://github.com/marlersoft/zigwin32 ).
2021-02-10 13:38:16 -08:00
Isaac Freund
6dc2236054
musl: update to 1.2.2
2021-02-10 11:50:55 -08:00
Jonathan Marler
1480c42806
require specifier for arrayish types
2021-02-09 22:25:52 -08:00
Luuk de Gram
36df6a008f
Ensure function indices are correct and fix a memory leak
2021-02-05 18:06:25 +01:00
Luuk de Gram
aa3e0ff454
Create type declarations for extern functions and write the 'import' section
2021-02-05 18:06:20 +01:00
Michael Dusan
300ebbd560
target: map zig ppc32 → llvm ppc
...
- llvm does not accept `ppc32` as a CPU type
closes #7947
2021-02-04 14:22:38 -08:00
Rocknest
2d447b57cc
fix typo in comment
2021-02-02 20:07:08 -08:00
Frank Denis
7a01d396ee
siphash: update the link to the SipHash paper
2021-02-02 11:17:14 +02:00
Andrew Kelley
102d954220
Merge pull request #7827 from Snektron/spirv-setup
...
Stage 2: SPIR-V setup
2021-02-01 12:49:51 -08:00
Jonathan Marler
06b29c8546
std.json large number support
2021-02-01 12:40:49 -08:00
Martin Wickham
1032a69321
Dupe strings on all public api points for std.build
2021-02-01 12:31:24 -08:00
Luuk de Gram
c0685458a2
Define wasm constants
...
Update link.Wasm.zig to use std.wasm for its constants
Make opcodes u8 and non-exhaustive
Update test and rename 'spec' to 'wasm'
2021-02-01 12:28:25 -08:00
Cameron Conn
683d3f7242
Don't read more bytes than exist in MsfStream ( #7839 )
2021-02-01 15:27:39 -05:00
Vincent Rischmann
16905d96f7
Fixes for std.Thread.Condition ( #7883 )
...
* thread/condition: fix PthreadCondition compilation
* thread/condition: add wait, signal and broadcast
This is like std.Thread.Mutex which forwards calls to `impl`; avoids
having to call `cond.impl` every time.
* thread/condition: initialize the implementation
2021-02-01 15:16:39 -05:00
Andrew Kelley
66c0fe4f90
Merge pull request #7922 from daurnimator/comptime-json-fields
...
std.json support for comptime fields
2021-02-01 12:11:36 -08:00
Frank Denis
a03f9548d3
std/math/big/int: normalize after a right shift
...
After a right shift, top limbs may be all zero. However, without
normalization, the number of limbs is not going to change.
In order to check if a big number is zero, we used to assume that the
number of limbs is 1. Which may not be the case after right shifts,
even if the actual value is zero.
- Normalize after a right shift
- Add a test for that issue
- Check all the limbs in `eqlZero()`. It may not be necessary if
callers always remember to normalize before calling the function.
But checking all the limbs is very cheap and makes the function less
bug-prone.
2021-02-01 12:10:01 -08:00
daurnimator
e0a04e7f67
allow more complex comptime fields in std.json
2021-02-01 01:01:50 +11:00
daurnimator
f88bb56ee5
std.json union handling should bubble up AllocationRequired
2021-02-01 01:00:15 +11:00
daurnimator
33c0a01b08
std.json support for comptime fields
...
Closes #6231
2021-01-31 23:41:32 +11:00
Veikka Tuominen
fdc875ed00
Merge pull request #7750 from tadeokondrak/6609-tagtype-tag
...
Remove @TagType; std.meta.TagType -> std.meta.Tag
2021-01-31 12:37:12 +02:00
Tadeo Kondrak
0b5f3c2ef9
Replace @TagType uses, mostly with std.meta.Tag
2021-01-30 22:26:44 +02:00
rgreenblatt
78d2f2b819
FromWriteFileStep for all LibExeObjStep types
2021-01-30 17:50:41 +02:00
Tadeo Kondrak
b7767eb834
std.meta: rename TagPayloadType to TagPayload
2021-01-30 13:19:52 +02:00
Tadeo Kondrak
68ec54f386
std.meta: rename TagType to Tag
2021-01-30 13:19:52 +02:00
Dmitry Atamanov
290efc0747
Improve error messages in std.fmt ( #7898 )
2021-01-30 13:12:44 +02:00
Martin Wickham
3d4eeafb47
Fill out more cases for std.meta.sizeof
2021-01-30 11:13:20 +02:00
Asherah Connor
e8740a90b9
complete {Z} deprecation in std.fmt.formatIntValue
...
formatZigEscapes doesn't exist any more.
2021-01-29 20:46:39 +02:00
root
236db6232f
Fix interger overflow when calling joinZ with empty slices
2021-01-27 12:01:18 +02:00
Jakub Konka
79730e6f5c
macho: add arm64 relocation type enum
2021-01-26 08:11:31 +01:00
Joran Dirk Greef
881ecdc72f
Add MAX_RW_COUNT limit to std.os.pread()
...
Fixes: https://github.com/ziglang/zig/issues/7805
2021-01-25 10:41:38 -08:00
Timon Kruiper
e23bc1f76a
render: fix bug when rendering struct initializer with length 1
...
This crashed the compiler when running translate-c. See the added test.
2021-01-25 10:40:00 -08:00
Andrew Kelley
4ca1f4ec2e
Merge pull request #7846 from LemonBoy/filtertest
...
stage1: don't filter test blocks with empty label
2021-01-25 10:39:11 -08:00
Joran Dirk Greef
68a040aec7
linux: add fallocate() to io_uring
2021-01-25 10:34:20 -08:00