zig/lib/std
Jakub Konka 6f48842ddb Make ArgIterator.init() a compile error in WASI
Given that the previous design would require the use of a default
allocator to have `ArgIterator.init()` work in WASI, and since in
Zig we're trying to avoid default allocators, I've changed the design
slightly in that now `init()` is a compile error in WASI, and instead
in its message it points to `initWithAllocator(*mem.Allocator)`.
The latter by virtue of requiring an allocator as an argument can
safely be used in WASI as well as on other OSes (where the allocator
argument is simply unused). When using `initWithAllocator` it is then
natural to remember to call `deinit()` after being done with the
iterator. Also, to make use of this, I've also added `argsWithAllocator`
function which is equivalent to `args` minus the requirement of supplying
an allocator and being fallible.

Finally, I've also modified the WASI only test `process.ArgWasiIterator`
to test all OSes.
2020-05-29 10:48:03 +02:00
..
atomic Adds some documentation to std.atomic.Queue. 2020-04-04 13:47:07 -04:00
build Added and id and a cast function to build steps 2020-05-25 11:20:31 +03:00
c Use std.ComptimeStringMap in the C tokenizer 2020-05-26 23:10:08 -07:00
crypto Merge pull request #5189 from zigazeljko/patch-1 2020-05-16 13:20:14 +03:00
debug std.meta.IntType -> std.meta.Int 2020-04-28 19:11:31 -06:00
event (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
fmt std.meta.IntType -> std.meta.Int 2020-04-28 19:11:31 -06:00
fs improvements to self-hosted cache hash system 2020-05-25 19:29:03 -04:00
hash Optimization of vectors hashing 2020-05-06 17:08:49 +05:00
heap small bump to ArenaAllocator minimum alloc size 2020-05-20 16:30:28 -04:00
http ArrayList: remove old (before span) API 2020-04-11 20:40:34 -04:00
io run zig fmt on std lib 2020-05-24 10:04:09 -04:00
json run zig fmt on std lib 2020-05-24 10:04:09 -04:00
math fix off-by-one error in sizeInBaseUpperBound 2020-05-01 13:33:46 -04:00
meta Use tuples in multiTrait 2020-05-28 23:10:44 -04:00
net Add/fix missing WASI functionality to pass libstd tests 2020-05-18 16:09:49 +02:00
os fix pwrite on 32-bit linux 2020-05-25 19:59:39 -04:00
rand ziggurat uses @truncate instead of & 0xff 2020-04-18 14:41:33 -04:00
special Merge pull request #5020 from jinroh/docs/search-perf 2020-05-16 16:43:41 +03:00
target
testing
time (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
unicode Update all remaining uses of &outStream().stream 2020-04-03 12:12:23 -04:00
valgrind
zig Merge pull request #5452 from squeek502/comptime-string-map 2020-05-28 23:06:40 -04:00
array_list.zig Remove unimplemented init call from ArrayListUnmanaged. 2020-05-26 15:59:56 -04:00
array_list_sentineled.zig new ArrayList API: fix std.ArrayListSentineled 2020-04-02 15:14:28 +02:00
ascii.zig Creates std.ascii.control_code that contains the C0 control codes as named constants. 2020-05-16 12:46:44 -04:00
atomic.zig
base64.zig
bloom_filter.zig Add mips support to standard library 2020-04-24 15:28:55 -04:00
buf_map.zig
buf_set.zig
build.zig Added custom build step id, made tests.zig steps use it 2020-05-25 11:36:12 +03:00
builtin.zig rename mem.separate to mem.split 2020-04-04 17:37:51 -04:00
c.zig macos: use realpath$DARWIN_EXTSN 2020-05-16 12:41:53 -04:00
cache_hash.zig fix std lib tests for WASI 2020-05-25 19:46:28 -04:00
child_process.zig update windows impl of child process to new File API 2020-05-02 04:31:26 -04:00
coff.zig new ArrayList API: fix everything else 2020-04-02 16:12:08 +02:00
comptime_string_map.zig std.ComptimeStringMap: Add support for void value type (i.e. a set) 2020-05-26 23:10:12 -07:00
crypto.zig
cstr.zig
debug.zig Make StackIterator next public 2020-05-13 16:21:15 +01:00
dwarf.zig publicize member functions affected by #4909 2020-05-08 14:26:28 +03:00
dwarf_bits.zig
dynamic_library.zig publicize member functions affected by #4909 2020-05-08 14:26:28 +03:00
elf.zig std: handle ConnectionTimedOut in switch 2020-05-06 12:52:26 +03:00
event.zig
fifo.zig self-hosted: fix codegen and resolve some analysis bugs 2020-05-14 13:20:27 -04:00
fmt.zig Fix skipping condition (skip when wasm32) 2020-05-29 00:06:26 +02:00
fs.zig Put base64 alphabet into a named constant 2020-05-25 13:48:43 -04:00
hash.zig
hash_map.zig Remove reliance on hashing algorithm for iterator reset test. 2020-05-28 23:09:21 -04:00
heap.zig rework self-hosted compiler for incremental builds 2020-05-10 02:05:54 -04:00
http.zig
io.zig Merge pull request #5175 from daurnimator/multi-out-stream 2020-05-16 13:43:50 +03:00
json.zig Support stringify for vectors (#5441) 2020-05-28 23:10:16 -04:00
linked_list.zig run zig fmt on std lib 2020-05-24 10:04:09 -04:00
macho.zig
math.zig ZIR: add cmp and condbr instructions 2020-05-01 06:47:20 -04:00
mem.zig Supports vectors in mem.zeroes 2020-05-24 20:48:29 -04:00
meta.zig Not sure how a tab snuck in there 2020-05-26 23:26:19 -07:00
mutex.zig
net.zig (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
once.zig std: Introduce the Once synchronization primitive 2020-04-18 15:48:32 -04:00
os.zig (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
packed_int_array.zig Add/fix missing WASI functionality to pass libstd tests 2020-05-18 16:09:49 +02:00
pdb.zig fix more private member access 2020-05-08 15:10:38 +03:00
priority_queue.zig Make PriorityQueue.Iterator public 2020-05-13 18:38:03 +03:00
process.zig Make ArgIterator.init() a compile error in WASI 2020-05-29 10:48:03 +02:00
progress.zig (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
rand.zig make rand function public, fixes crypto benchmark 2020-05-20 21:27:08 -04:00
rb.zig
reset_event.zig (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
segmented_list.zig Add writeToSlice method to SegmentedList. (#5405) 2020-05-26 13:04:25 -04:00
sort.zig sort.binarySearch: Remove unneeded edge case check 2020-04-09 09:13:47 +01:00
spinlock.zig
start.zig zig fmt 2020-05-05 09:38:02 -06:00
start_windows_tls.zig
std.zig Add std.ComptimeStringMap 2020-05-26 21:34:55 -07:00
target.zig link: introduce the concept of output mode and link mode 2020-05-01 06:47:20 -04:00
testing.zig std.testing: fix a crash when printing diffs 2020-05-22 00:27:51 -04:00
thread.zig Update ErrorUnion thread spawn result to return null instead of 0 2020-05-05 04:15:43 -04:00
time.zig (breaking) std.time fixups and API changes 2020-05-24 21:40:08 -04:00
unicode.zig Add mips support to standard library 2020-04-24 15:28:55 -04:00
valgrind.zig
zig.zig add ZIR compare output test case to test suite 2020-05-01 06:47:20 -04:00