zig/src-self-hosted
Andrew Kelley a2bd9f8912 std lib: modify allocator idiom
Before we accepted a nullable allocator for some stuff like
opening files. Now we require an allocator.

Use the mem.FixedBufferAllocator pattern if a bound on the amount
to allocate is known.

This also establishes the pattern that usually an allocator is the
first argument to a function (possibly after "self").

fix docs for std.cstr.addNullByte

self hosted compiler:
 * only build docs when explicitly asked to
 * clean up main
 * stub out zig fmt
2018-02-09 18:27:50 -05:00
..
c.zig fix self hosted compiler on windows 2018-01-03 04:55:49 -05:00
ir.zig rename "debug safety" to "runtime safety" 2018-01-25 01:46:12 -05:00
llvm.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00
main.zig std lib: modify allocator idiom 2018-02-09 18:27:50 -05:00
module.zig std lib: modify allocator idiom 2018-02-09 18:27:50 -05:00
scope.zig self-hosted: build against zig_llvm and embedded LLD 2017-12-26 19:44:08 -05:00
target.zig syntax: functions require return type. remove -> 2018-01-25 04:10:11 -05:00