diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-08-23 17:06:56 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-08-24 01:23:28 -0400 |
| commit | a98fa56ae9ad437d3e4241bc2c231e0745766ba9 (patch) | |
| tree | fa621754f81e0007a6f894c0f726e810f0462d95 /lib/std/std.zig | |
| parent | 9e3ec98937de07d0e06f483ba8f7e6592b4dd152 (diff) | |
| download | zig-a98fa56ae9ad437d3e4241bc2c231e0745766ba9.tar.gz zig-a98fa56ae9ad437d3e4241bc2c231e0745766ba9.zip | |
std: [breaking] move errno to become an nonexhaustive enum
The primary purpose of this change is to eliminate one usage of
`usingnamespace` in the standard library - specifically the usage for
errno values in `std.os.linux`.
This is accomplished by truncating the `E` prefix from error values, and
making errno a proper enum.
A similar strategy can be used to eliminate some other `usingnamespace`
sites in the std lib.
Diffstat (limited to 'lib/std/std.zig')
0 files changed, 0 insertions, 0 deletions
