aboutsummaryrefslogtreecommitdiff
path: root/lib/std/special/start.zig
AgeCommit message (Collapse)Author
2019-12-12un-special-case startup code in the std libAndrew Kelley
Previously, the compiler had special logic to determine whether to include the startup code, which was in `std/special/start.zig`. Now, the file is moved to `std/start.zig`, and there is no special logic in the compiler. Instead, the standard library unconditionally imports the `start.zig` file, which then has a `comptime` block that does the logic of determining what, if any, start symbols to export. Instead of `start.zig` being in its own special package, it is just another normal file that is part of the standard library. `std.builtin.TestFn` is now part of the standard library rather than specially generated by the compiler.
2019-12-12allow custom OS entrypointChristine Dodrill
Also: * Expose `std.start.callMain`. * Other fixes added to fix issues found in development.
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-08std.fmt.format: tuple parameter instead of var argsAndrew Kelley
2019-12-06Merge pull request #3856 from ziglang/builtin-callAndrew Kelley
introduce `@call` and remove other builtin calls
2019-12-06remove `@newStackCall` from zigAndrew Kelley
2019-12-06remove `@inlineCall` from zigAndrew Kelley
2019-12-05remove `@noInlineCall` from zigAndrew Kelley
2019-12-04add `other` OS and fix regression in build-exe for freestandingAndrew Kelley
2019-12-03correct the calling convention of WinMainCRTStartupAndrew Kelley
2019-12-03correct startup logic for exporting libc mainAndrew Kelley
2019-12-03activate start code when pub main existsAndrew Kelley
and rename LinkType->LinkMode, OutType->OutputMode
2019-12-03exported main must be pubVexu
2019-12-03move more startup code to std libVexu
2019-11-24make std.mem.toSlice use null terminated pointersAndrew Kelley
and fix the fallout
2019-11-07make callMainAsync asyncVexu
2019-11-06improve the start code for evented I/OAndrew Kelley
When evented I/O is being used, prevent event loop from terminating at least until main() has returned.
2019-10-31startup code respects root source file's event_loop if presentAndrew Kelley
2019-10-31startup code sets up event loop if I/O mode is declared eventedAndrew Kelley
2019-10-28remove dead tls codeAndrew Kelley
2019-09-26Export _start as __start for MIPS targetsLemonBoy
2019-09-26Initial support for mipsel architecture¬LemonBoy
2019-09-25mv std/ lib/Andrew Kelley
that's all this commit does. further commits will fix cli flags and such. see #2221