zig/lib/std
erikarvstedt 8ed792b640
std.Progress: fix suffix printing
Previously, `suffix` was copied to `output_buffer` at position
`max_end`, thereby writing into reserved space after `max_end`.
This only worked because `suffix` was not larger than
`bytes_needed_for_esc_codes_at_end` (otherwise there'd be a potential
buffer overrun) and no escape codes at end are actually written.

Since 2d5b2bf1c9, escape codes are no
longer written to the end of the buffer. They are now written
exclusively to the front of the buffer.
This allows removing `bytes_needed_for_esc_codes_at_end` and
simplifying the suffix printing logic.

This also fixes the bug that the ellipse suffix was not printed in
Windows terminals because `end.* > max_end` was never true.
2022-02-14 12:14:50 +02:00
..
atomic allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
build Replace argvCmd with std.mem.join 2022-02-06 22:21:46 -07:00
c validate in Windows using VirtualQuery 2022-02-11 22:15:46 +01:00
compress std: remove superfluous .read = true from deflate tests 2022-01-29 16:57:10 +02:00
crypto stage2: remove anytype fields from the language 2022-02-01 19:06:40 -07:00
dwarf
event allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
fmt std.fmt.parseHexFloat: clean up bitwise logic 2022-01-31 20:59:32 -07:00
fs Merge pull request #10404 from ominitay/iterator 2022-01-30 14:25:50 +01:00
hash std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
heap stage1: deal with BPF not supporting @returnAddress() 2021-12-19 23:22:05 -08:00
io readUntilDelimiter*: read only if buffer not full 2022-01-24 17:44:26 +02:00
json allocgate: renamed getAllocator function to allocator 2021-11-30 23:32:47 +00:00
math std/math: optimize division with divisors less than a half-limb 2022-02-06 21:39:34 -05:00
mem std.mem.Allocator: upgrade to new function pointer semantics 2022-01-26 20:02:01 -07:00
meta std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
net Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
os Merge pull request #10863 from m-radomski/fix 2022-02-13 16:17:40 -05:00
rand Add argument for fillFn to Random.init 2021-10-29 19:20:31 -04:00
special test_runner.zig: Do not log test name twice 2022-02-14 12:09:24 +02:00
target
testing allocgate: change resize to return optional instead of error 2021-11-30 23:45:01 +00:00
Thread update RwLock to use static initialization (#10838) 2022-02-08 23:35:48 -05:00
time std.time.epoch: fix issue in documentation 2021-12-16 19:08:58 -08:00
tz Support legacy TZ format, expose header struct to a potential writer 2022-01-01 12:47:08 +00:00
unicode migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
valgrind
x Check for isDarwin() instead of linked libc 2022-01-14 13:44:38 +01:00
zig Merge pull request #10879 from Vexu/err 2022-02-13 16:15:00 -05:00
array_hash_map.zig std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
array_list.zig Preserve alignment when cloning 2022-01-27 19:35:08 +02:00
ascii.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
atomic.zig migrate from std.Target.current to @import("builtin").target 2021-10-04 23:48:55 -07:00
base64.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
bit_set.zig std.bit_set: add setRangeValue(Range, bool) 2022-02-07 14:58:07 -05:00
bounded_array.zig Slice function of BoundedArray now returns slice based on self pointer 2022-01-16 01:37:37 -05:00
buf_map.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
buf_set.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
build.zig Avoid depending on child process execution when not supported by host OS 2022-02-06 22:21:46 -07:00
builtin.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00
c.zig std: validate frame-pointer address in stack walking 2022-02-11 15:28:36 +01:00
child_process.zig Merge pull request #10813 from marler8997/windowsChildHang 2022-02-07 17:33:26 -05:00
coff.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
compress.zig compress: add a deflate compressor 2022-01-23 19:30:06 +01:00
comptime_string_map.zig
crypto.zig a small crusade against std.meta.declarations 2022-01-31 22:25:49 -07:00
cstr.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
debug.zig validate in Windows using VirtualQuery 2022-02-11 22:15:46 +01:00
dwarf.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
dynamic_library.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
elf.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
enums.zig stage1: avoid anytype fields for type info 2022-02-01 18:10:19 -07:00
event.zig
fifo.zig allocgate: std Allocator interface refactor 2021-11-30 23:32:47 +00:00
fmt.zig std.fmt: fix out-of-bounds array write in float printing 2022-01-29 12:25:25 +01:00
fs.zig Merge pull request #10404 from ominitay/iterator 2022-01-30 14:25:50 +01:00
hash.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
hash_map.zig std: make ArrayHashMap eql function accept an additional param 2022-01-31 01:20:45 -07:00
heap.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
io.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
json.zig stage2: remove anytype fields from the language 2022-02-01 19:06:40 -07:00
leb128.zig I'm working on a WebAssembly interpreter in zig. WebAssembly uses LEB128 encoding throughout its specification. 2021-09-20 01:58:18 -04:00
linked_list.zig
log.zig std lib API deprecations for the upcoming 0.9.0 release 2021-11-30 00:13:07 -07:00
macho.zig macho: put LC_* consts in a typed enum(u32) LC 2021-12-15 08:59:20 +01:00
math.zig Simplify implementation of floorPowerOfTwo in std.math 2022-02-13 14:47:58 +02:00
mem.zig std: Allow mem.zeroes to work at comptime with extern union 2022-02-07 11:34:20 +02:00
meta.zig stage1: avoid anytype fields for type info 2022-02-01 18:10:19 -07:00
multi_array_list.zig Revert "MultiArrayList: Fix error when struct is 0 sized" 2022-01-24 21:29:04 -07:00
net.zig Merge pull request #10576 from schmee/macos-resolve-ip 2022-01-15 00:47:12 +01:00
once.zig std.Thread.Mutex: change API to lock() and unlock() 2021-11-09 18:31:03 -07:00
os.zig std: validate frame-pointer address in stack walking 2022-02-11 15:28:36 +01:00
packed_int_array.zig Better documentation, use of len field instead of function, @bitSizeOf instead of meta.bitCout 2021-10-09 03:15:34 -04:00
pdb.zig Only check the file's length once in pdb.Msf.init 2021-12-21 17:29:23 -08:00
priority_dequeue.zig std.priority_dequeue: allow comparator to take a context parameter 2021-12-15 17:46:10 -08:00
priority_queue.zig std.priority_queue: allow comparator to take a context parameter 2021-12-15 17:46:04 -08:00
process.zig Avoid depending on child process execution when not supported by host OS 2022-02-06 22:21:46 -07:00
Progress.zig std.Progress: fix suffix printing 2022-02-14 12:14:50 +02:00
rand.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
SemanticVersion.zig
sort.zig std.rand: Refactor Random interface 2021-10-27 16:07:48 -04:00
start.zig wasm: update test runner 2022-02-08 10:03:29 +01:00
start_windows_tls.zig stage1, stage2: rename c_void to anyopaque (#10316) 2021-12-19 00:24:45 -05:00
std.zig tz parsing reader interface, test thicc files, and exclude tzif 2021-12-31 17:17:49 +00:00
target.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00
testing.zig a small crusade against std.meta.declarations 2022-01-31 22:25:49 -07:00
Thread.zig update RwLock to use static initialization (#10838) 2022-02-08 23:35:48 -05:00
time.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
tz.zig Rename mem.bswapAllFields to byteSwapAllFields 2022-01-28 21:03:21 -05:00
unicode.zig Full response file (*.rsp) support 2022-01-30 21:27:52 +02:00
valgrind.zig lint: duplicate import (#10519) 2022-01-07 00:06:06 -05:00
wasm.zig wasm: Implement memset, and sret arguments. 2022-01-04 17:59:05 +01:00
x.zig
zig.zig stage2: add support for Nvptx target 2022-02-05 16:33:00 +02:00