zig/lib/std/os
Andrew Kelley a31748b29e std.os.uefi: reorganize namespaces
This is a breaking change.

This commit applies the following rules to std.os.uefi:
* avoid redundant names in the namespace such as "protocol.FooProtocol"
* don't initialize struct field to undefined. do that at the
  initialization site if you want that, or create a named constant that
  sets all the fields to undefined.
* avoid the word "data", "info", "context", "state", "details", or
  "config" in the type name, especially if a word from that category is
  already in the type name.
* embrace tree structure

After following these rules, `usingnamespace` disappeared naturally.
This commit eliminates 26/53 (49%) instances of `usingnamespace` in the
standard library. All these uses were due to not understanding how
to properly use namespaces.

I did not test this commit. The standard library UEFI code is
experimental and pull requests have been accepted with minimal vetting.
Users of std.os.uefi will need to submit follow-up pull requests to fix
up whatever regressions this commit introduces, this time without
abusing namespaces (pun intended).
2023-08-24 22:38:47 -07:00
..
linux std: finish cleanup up asm 2023-07-31 03:49:21 -04:00
plan9 plan 9: filesystem support 2023-08-02 17:39:52 -04:00
uefi std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
windows Windows: Fix TooManyParentDirs handling for paths that shouldn't be cwd-relative 2023-08-11 18:58:40 -07:00
linux.zig linux: add setsid 2023-08-09 11:33:06 -07:00
plan9.zig Plan 9: add more features to std.os.plan9 2023-08-02 18:19:07 -04:00
test.zig Fix windows.CreateSymbolicLink/ReadLink for non-relative paths 2023-08-15 15:52:33 -07:00
uefi.zig std.os.uefi: reorganize namespaces 2023-08-24 22:38:47 -07:00
wasi.zig all: migrate code to new cast builtin syntax 2023-06-24 16:56:39 -07:00
windows.zig std.windows: use atomic rename, if possible (#16717) 2023-08-23 20:11:01 -04:00