aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
AgeCommit message (Collapse)Author
2020-01-08Pointer alignment fixes for the stdlibLemonBoy
2020-01-06zig fmt and update `extern fn` to `callconv(.C)`Andrew Kelley
2020-01-02Implement the callconv() annotationLemonBoy
2019-12-20sentinel slicing improvementsAndrew Kelley
* add runtime safety for slicing pointers, arrays, and slices. * slicing without a sentinel value results in non-sentineled slice * improved `std.debug.panic` handling of panic-during-panic
2019-12-16use -fsanitize=undefined for C code in safe build modesAndrew Kelley
closes #3569
2019-12-10Replace @typeOf with @TypeOf in all zig sourceRobin Voetter
This change was mostly made with `zig fmt` and this also modified some whitespace. Note that in some files, `zig fmt` produced incorrect code, so the change was made manually.
2019-12-08windows-specific fixesAndrew Kelley
2019-12-08std.fmt.format: tuple parameter instead of var argsAndrew Kelley
2019-12-02bring your own OS layer in the std libAndrew Kelley
closes #3784
2019-12-01Merge remote-tracking branch 'origin/master' into remove-array-type-coercionAndrew Kelley
2019-11-30Merge pull request #3808 from LemonBoy/i386-for-yaAndrew Kelley
linux-i386 support
2019-11-30move `std.fs.Dir.cwd` to `std.fs.cwd`Andrew Kelley
update to non-deprecated std.fs APIs throughout the codebase Related: #3811
2019-11-30linux-i386 supportLemonBoy
2019-11-29fix windows std lib regressionsAndrew Kelley
2019-11-27remove type coercion from array values to referencesAndrew Kelley
* Implements #3768. This is a sweeping breaking change that requires many (trivial) edits to Zig source code. Array values no longer coerced to slices; however one may use `&` to obtain a reference to an array value, which may then be coerced to a slice. * Adds `IrInstruction::dump`, for debugging purposes. It's useful to call to inspect the instruction when debugging Zig IR. * Fixes bugs with result location semantics. See the new behavior test cases, and compile error test cases. * Fixes bugs with `@typeInfo` not properly resolving const values. * Behavior tests are passing but std lib tests are not yet. There is more work to do before merging this branch.
2019-11-25std: refactor std/debug.zig DwarfInfo operations to be methodsdaurnimator
2019-11-25Merge branch 'wasi-run-tests' of https://github.com/fengb/zig into ↵Andrew Kelley
fengb-wasi-run-tests
2019-11-25rename std.heap.direct_allocator to std.heap.page_allocatorAndrew Kelley
std.heap.direct_allocator is still available for now but it is marked deprecated.
2019-11-25more sentinel-terminated pointers std lib integrationAndrew Kelley
See #3767
2019-11-21add std.fs.Dir.openReadAndrew Kelley
This is progress towards file system APIs that encourage avoiding Time Of Check, Time Of Use bugs.
2019-11-19Work around WASI's nonexistent @returnAddress()Benjamin Feng
2019-11-13std.io.getStdOut and related fns no longer can errorAndrew Kelley
Thanks to the Windows Process Environment Block, it is possible to obtain handles to the standard input, output, and error streams without possibility of failure.
2019-11-08update the codebase to use `@as`Andrew Kelley
2019-11-06std.json.Value: added dumpStream(), utilize WriteStream for dump()Sebastian Keller
2019-11-04Make the `leb` module available to non-std codeLemonBoy
2019-10-30DragonFlyBSD supportTse
2019-10-24get rid of std.os.foo.is_the_targetAndrew Kelley
It had the downside of running all the comptime blocks and resolving all the usingnamespaces of each system, when just trying to discover if the current system is a particular one. For Darwin, where it's nice to use `std.Target.current.isDarwin()`, this demonstrates the utility that #425 would provide.
2019-10-13Fix stack iteration stop conditionLemonBoy
2019-10-13Fix fp-based backtracing on RISC-VLemonBoy
The fp points to the top of the frame instead of pointing to the old fp, compensate this difference with an offset.
2019-10-08generated docs contain generic instantiations and comptime callsAndrew Kelley
2019-10-01Correct signal bits for MIPSLemonBoy
Also enable the segfault handler for all the supported architectures beside MIPS.
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221