aboutsummaryrefslogtreecommitdiff
path: root/std
AgeCommit message (Collapse)Author
2018-10-02Add doc comment for tokenLocationPtr (#1618)Wink Saville
The algorithm seemed unusual and I had spent some effort understanding it, so I thought I'd add a comment.
2018-10-01std lib (breaking): posixRead can return less than buffer sizeAndrew Kelley
closes #1414 std.io.InStream.read now can return less than buffer size introduce std.io.InStream.readFull for previous behavior add std.os.File.openWriteNoClobberC rename std.os.deleteFileWindows to std.os.deleteFileW remove std.os.deleteFilePosix add std.os.deleteFileC std.os.copyFile no longer takes an allocator std.os.copyFileMode no longer takes an allocator std.os.AtomicFile no longer takes an allocator add std.os.renameW add windows support for std.os.renameC add a test for std.os.AtomicFile
2018-10-01std lib: flesh out the async I/O streaming API a bitAndrew Kelley
2018-09-30update std lib API for I/OAndrew Kelley
std.io.FileInStream -> std.os.File.InStream std.io.FileInStream.init(file) -> file.inStream() std.io.FileOutStream -> std.os.File.OutStream std.io.FileOutStream.init(file) -> file.outStream() remove a lot of error code possibilities from os functions std.event.net.socketRead -> std.event.net.read std.event.net.socketWrite -> std.event.net.write add std.event.net.readv add std.event.net.writev add std.event.net.readvPosix add std.event.net.writevPosix add std.event.net.OutStream add std.event.net.InStream add std.event.io.InStream add std.event.io.OutStream
2018-09-30rename std.event.tcp to std.event.netAndrew Kelley
2018-09-30merged windows dll apisemekoi
2018-09-30added dynamic library loading for windowsemekoi
2018-09-30Expose failing_allocator as *Allocator instead of const FailingAllocatorJimmi Holst Christensen
2018-09-27overhaul api for getting random integers (#1578)Josh Wolfe
* rand api overhaul * no retry limits. instead documented a recommendation to call int(T) % len directly.
2018-09-26fix implicit casting to *c_voidAndrew Kelley
closes #1588 also some small std lib changes regarding posix sockets and one doc typo fix
2018-09-24Remove StrLitKind enumWink Saville
I was looking at the tokenizer specifically fn testTokenize and the this statement looked odd: if (@TagType(Token.Id)(token.id) != @TagType(Token.Id)(expected_token_id)) { I then saw the TODO and thought I'd remove StrLitKind figuring that would make testTokenize simpler. It did so I thought I'd prepare this PR. The tests are still working and stage2 zig seems to work, it compiles and I was able to use the fmt command.
2018-09-23Fix typo in argsAlloc commentWink Saville
Changed freeArgs to argsFree.
2018-09-21fixupsAndrew Kelley
2018-09-20fix formatInt to handle upcasting to base int sizeAndrew Kelley
2018-09-19Merge remote-tracking branch 'origin/llvm7'Andrew Kelley
2018-09-18std/index.zig: Fix importChristian Wesselhoeft
BufferOutStream is defined in io.zig
2018-09-18fix regression from previous commitAndrew Kelley
2018-09-18zig fmt: handle shebang linesAndrew Kelley
closes #1546
2018-09-18remove unnecessary setFloatMode callsAndrew Kelley
Now that Strict is the default, these calls only add noise.
2018-09-18Merge remote-tracking branch 'origin/master' into llvm7Andrew Kelley
2018-09-17remove deprecated, unused windows functionsAndrew Kelley
* `CryptAcquireContextA` * `CryptReleaseContext` * `CryptGenRandom` See https://github.com/ziglang/zig/issues/534#issuecomment-422208368
2018-09-17remove `zig build --init`. add `zig init-lib` and `zig init-exe`Andrew Kelley
init-lib creates a working static library with tests, and init-exe creates a working hello world with a `run` target. both now have test coverage with the new "cli tests" file. closes #1035
2018-09-16Merge remote-tracking branch 'origin/master' into llvm7Andrew Kelley
2018-09-14fix alignment of structsAndrew Kelley
closes #1248 closes #1052 closes #1154
2018-09-14Add test for Queue.dumpWink Saville
To make dump testable added dumpToSteam which takes a stream as input and added the stream as a paraemter to dumpRecursive. Added test "std.atomic.Queue dump" And to make the test more robust SliceOutStream.pos is now public. This allows the user of SliceOutStream to know the length of the data captured.
2018-09-14Fix additional regressions calling FileOutStream/FileInStream init()Wink Saville
This is caused by change 686663239af6afd8dea814a9fe6a8885f06d6cb3 and not fixed in 832caefc2a1b20deb513d43306d6723670ba9c8f.
2018-09-13remove `this`. add `@This()`.Andrew Kelley
closes #1283
2018-09-13math/complex: cexp test correction and ldexp usage fixMarc Tiehuis
2018-09-12fix zig fmt on windowsAndrew Kelley
closes #1069
2018-09-12windows: std.fs functions support concurrent opsAndrew Kelley
when reading and writing the same file descriptors
2018-09-12Merge pull request #1494 from ziglang/stage1-cachingAndrew Kelley
stage1 caching
2018-09-12fixed WriteFile segfaultemekoi
2018-09-11zig build: make the cache root dir before buildingAndrew Kelley
2018-09-11zig build: better placement of test exe artifactAndrew Kelley
2018-09-11fix incorrect error union const value generationAndrew Kelley
closes #1442 zig needed to insert explicit padding into this structure before it got bitcasted.
2018-09-10Merge remote-tracking branch 'origin/master' into llvm7Andrew Kelley
2018-09-09Add capacity and appendAssumeCapacity to ArrayListBas van den Berg
2018-09-08fix elf auxv handlingShawn Landden
Auxillery vectors are not guaranteed to be in any order, this just happens to work on x86_64.
2018-09-08NaNs do not have signedness.Shawn Landden
From IEEE-754 standard: Conversion of a quiet NaN in a supported format to an external character sequence shall produce a language-defined one of “nan” or a sequence that is equivalent except for case (e.g., “NaN”), with an optional preceding sign. (This standard does not interpret the sign of a NaN.)
2018-09-08clone() on arm64Shawn Landden
2018-09-08simplify f64_min to equivilent valueShawn Landden
arm64 complains about the old value (I added a test)
2018-09-08initial arm64 supportShawn Landden
2018-09-08os: use less syscallsShawn Landden
these don't exist on new platforms (such as arm64) also switch from the deprecated dirent to dirent64
2018-09-08this is not arch-specificShawn Landden
2018-09-06add C ABI testsAndrew Kelley
2018-09-06std/crypto/x25519.zig: add test for `createPublicKey`;kristopher tate
2018-09-06std/crypto/x25519.zig: fix signature for `createPublicKey`;kristopher tate
2018-09-04update throughput test to new File APIAndrew Kelley
closes #1468
2018-09-04Merge remote-tracking branch 'origin/master' into llvm7Andrew Kelley
2018-09-04Merge pull request #1441 from ziglang/poly1305-x25519Andrew Kelley
Add poly1305 and x25519 crypto primitives